魏熙美 6 years ago
parent
commit
2c78e2aeb1

+ 2
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaUserVerifyMapper.java View File

@@ -50,6 +50,8 @@ public interface TaUserVerifyMapper {
50 50
                                            @Param("roomNoId") Integer roomNoId,
51 51
                                            @Param("verifyStatus") Integer verifyStatus);
52 52
 
53
+
54
+
53 55
     /**
54 56
      * 根据 小区id 、 期、栋、单元、楼层、户号, 角色id(业主), 审核通过(值为1) 进行条件查询
55 57
      * @param communityId

+ 11
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java View File

@@ -329,6 +329,17 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
329 329
             messageMapper.insert(message);
330 330
         }
331 331
 
332
+        try {
333
+            // 推送海康
334
+            ResponseBean pushHKPerson = taUserFeignService.pushHKPerson(appUser.getId(), taUserVerify.getId());
335
+            if (!"0".equals(pushHKPerson.getCode())) {
336
+                throw new WisdomException("设备推送失败!");
337
+            }
338
+        } catch (Exception e) {
339
+            log.info("设备推送失败!,人员id:{}", userVerify.getUserId());
340
+            throw new WisdomException("设备推送失败!");
341
+        }
342
+
332 343
         if (row <= 0) {
333 344
             throw new WisdomException("操作失败!");
334 345
         } else {