|
@@ -105,7 +105,7 @@ public class FaceServicelimpl implements FaceServiceI {
|
105
|
105
|
* 删除的时候,将所有的海康设备的关联关系删除了,需要重新下发一次
|
106
|
106
|
*/
|
107
|
107
|
// 下发门禁
|
108
|
|
- ihkService.pushPerson(activeUser + "", taUserVerify.getId());
|
|
108
|
+ ihkService.pushPerson(activeUser + "", userVerifyId);
|
109
|
109
|
|
110
|
110
|
TaUser user = taUserMapper.selectByPrimaryKey(activeUser);
|
111
|
111
|
TaFace taFace = new TaFace();
|
|
@@ -142,6 +142,12 @@ public class FaceServicelimpl implements FaceServiceI {
|
142
|
142
|
|
143
|
143
|
Integer activeUser = otherUserId == null ? userElement.getId() : otherUserId;
|
144
|
144
|
|
|
145
|
+ // 如果家属不为空,获取家属/租客 的房产审核id
|
|
146
|
+ if (null != otherUserId) {
|
|
147
|
+ TaUserVerify otherUserVerify = getTaFaceParentId(userElement, otherUserId);
|
|
148
|
+ userVerifyId = otherUserVerify.getId();
|
|
149
|
+ }
|
|
150
|
+
|
145
|
151
|
/**
|
146
|
152
|
* 删除的时候,将所有的海康设备的关联关系删除了,需要重新下发一次
|
147
|
153
|
*/
|
|
@@ -205,7 +211,8 @@ public class FaceServicelimpl implements FaceServiceI {
|
205
|
211
|
/*boolean isA为true进行添加,为false进行修改*/
|
206
|
212
|
if (0 == type && 1 == faceNum) {
|
207
|
213
|
if (null == data) {
|
208
|
|
- throw new RuntimeException("海康人脸推送失敗!");
|
|
214
|
+ log.error("海康人脸推送失败!");
|
|
215
|
+ throw new RuntimeException("人脸推送失败!");
|
209
|
216
|
}
|
210
|
217
|
if (isA) {
|
211
|
218
|
taFaceMapper.insertSelective(taFace);
|
|
@@ -219,6 +226,9 @@ public class FaceServicelimpl implements FaceServiceI {
|
219
|
226
|
// 所有设备
|
220
|
227
|
// List<TpEquipment> tpEquipments = tpEquipmentMapper.selectByCommunityIdAndUnitId(communityId, unitId, 4);
|
221
|
228
|
List<TpEquipment> tpEquipments = tpEquipmentMapper.selectByCommunityIdAndUnitIdAndFace(communityId, unitId, 4);
|
|
229
|
+ if (CollectionUtils.isEmpty(tpEquipments)) {
|
|
230
|
+ throw new WisdomException("未配置设备!");
|
|
231
|
+ }
|
222
|
232
|
List<Map<String, Object>> equipmentUUID = getEquipmentUUID(tpEquipments);
|
223
|
233
|
StringBuilder doorUuids = new StringBuilder();
|
224
|
234
|
StringBuilder deviceUuids = new StringBuilder();
|