浏览代码

获取人脸返回单元门数据

魏熙美 6 年前
父节点
当前提交
e22383940a

+ 4
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/FaceServicelimpl.java 查看文件

315
         }
315
         }
316
         TaFace face = taFaceMapper.getByUserVerifyId(userVerifyId);
316
         TaFace face = taFaceMapper.getByUserVerifyId(userVerifyId);
317
         ToCommunities toCommunities = toCommunitiesMapper.selectByPrimaryKey(userElement.getCommunityId());
317
         ToCommunities toCommunities = toCommunitiesMapper.selectByPrimaryKey(userElement.getCommunityId());
318
+        List<Map<String, Object>> unitList = getUnitList(userElement, toCommunities);
318
         if (null != face) {
319
         if (null != face) {
319
-            List<Map<String, Object>> unitList = getUnitList(userElement, toCommunities);
320
             face.setText(unitList);
320
             face.setText(unitList);
321
             responseBean.addSuccess(face);
321
             responseBean.addSuccess(face);
322
             return responseBean;
322
             return responseBean;
323
         }
323
         }
324
-        responseBean.addError("当前用户暂无人脸图片");
324
+        TaFace taFace = new TaFace();
325
+        taFace.setText(unitList);
326
+        responseBean.addError("当前用户暂无人脸图片", taFace, null);
325
         return responseBean;
327
         return responseBean;
326
 
328
 
327
     }
329
     }