dingxin il y a 6 ans
Parent
révision
185950a99d

+ 2
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaUserVerifyMapper.java Voir le fichier

@@ -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

+ 13
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoImpl.java Voir le fichier

@@ -96,13 +96,22 @@ public class BuildingOwnerInfoImpl implements IBuildingOwnerInfo {
96 96
     @Override
97 97
     public ResponseBean hasBuild(UserElement userElement, Integer communityId ,Integer phaseId, Integer buildingId, Integer unitId, Integer levelId, Integer roomNoId) {
98 98
         ResponseBean responseBean = new ResponseBean();
99
-        // 1.检验该用户关联有没有这个 户号
100
-        List<TaUserVerify> taUserVerify = taUserVerifyMapper.selectCommunityAndAddress(userElement.getId(),userElement.getCommunityId(), phaseId, buildingId, unitId, levelId, roomNoId, 1);
101
-        if (null != taUserVerify && taUserVerify.size() > 0) {
102
-            responseBean.addError("您已关联此房产,无法再次关联!");
99
+        // 1.检验该用户关联有没有这个 户号,审核通过的
100
+       List<TaUserVerify> taUserVerifyEqVerifyStatus1 = taUserVerifyMapper.selectCommunityAndAddress(userElement.getId(),userElement.getCommunityId(), phaseId, buildingId, unitId, levelId, roomNoId, 1);
101
+        // List<TaUserVerify> taUserVerify = taUserVerifyMapper.selectCommunityAndAddressAndNotVerifyStatus2(userElement.getId(),userElement.getCommunityId(), phaseId, buildingId, unitId, levelId, roomNoId);
102
+        if (null != taUserVerifyEqVerifyStatus1 && taUserVerifyEqVerifyStatus1.size() > 0) {
103
+            responseBean.addError("你已关联此房间,无法再次关联!");
104
+            return  responseBean;
105
+        }
106
+
107
+        // 1.检验该用户关联有没有这个 户号,待审核
108
+        List<TaUserVerify> taUserVerifyEqVerifyStatus0 = taUserVerifyMapper.selectCommunityAndAddress(userElement.getId(),userElement.getCommunityId(), phaseId, buildingId, unitId, levelId, roomNoId, 0);
109
+        if (null != taUserVerifyEqVerifyStatus0 && taUserVerifyEqVerifyStatus0.size() > 0) {
110
+            responseBean.addError("您已提交了这个房产的审核!请等待户主或者物业审核后,再进行下一步操作!");
103 111
             return responseBean;
104 112
         }
105 113
 
114
+
106 115
         Map<String,Object> result = Maps.newHashMap();
107 116
 
108 117
         // 2.检验这个户号是否关联了 户主

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServicelmpl.java Voir le fichier

@@ -138,7 +138,7 @@ public class TaUserVerifyServicelmpl implements TaUserVerifyServicel {
138 138
                 taUserVerify.getPhaseId(), taUserVerify.getBuildingId(), taUserVerify.getUnitId(),
139 139
                 taUserVerify.getLevelId(), taUserVerify.getRoomNoId());
140 140
         if (null != userVerifyList && userVerifyList.size() > 0) {
141
-            responseBean.addError("您已提交了这个房产的审核!请等待户主或者物业审核后,进行下一步操作!");
141
+            responseBean.addError("您已提交了这个房产的审核!请等待户主或者物业审核后,进行下一步操作!");
142 142
             return responseBean;
143 143
         }
144 144
 

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/application.yml Voir le fichier

@@ -31,7 +31,7 @@ welcome:
31 31
 
32 32
 # 登陆的状态跳转url配置
33 33
 login-code-perproties:
34
-  phone: 15988888888
34
+  phone: 15675548888
35 35
   app-url: http://106.14.20.193:8011/#/
36 36
   login-code:
37 37
     1000: linkBuilding?from=index # 无关联房产

+ 11
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java Voir le fichier

@@ -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 {

+ 1
- 0
CODE/smart-community/property-api/src/main/resources/application.yml Voir le fichier

@@ -15,6 +15,7 @@ mybatis-plus:
15 15
 # 二维码生成地址
16 16
 qr-code:
17 17
   url: http://106.14.20.193:8011/#/forum/sign?id=
18
+#  url: http://ycapi.jcjyhn.com/#/forum/sign?id=
18 19
 
19 20
 # 富士E7+云平台
20 21
 fu-shi:

+ 1232
- 1051
文档/MYSQL/smartCommunity.pdb
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 1232
- 1051
文档/MYSQL/smartCommunity.pdm
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier