dingxin 6 anni fa
parent
commit
314b54d943
17 ha cambiato i file con 255 aggiunte e 29 eliminazioni
  1. 1
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserVerifyController.java
  2. 2
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoImpl.java
  3. 12
    7
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/HKServiceImpl.java
  4. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java
  5. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServicelmpl.java
  6. BIN
      CODE/smart-community/community-common/target/community-common-0.0.1.jar
  7. 4
    0
      CODE/smart-community/community-common/target/maven-archiver/pom.properties
  8. 32
    0
      CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  9. 29
    0
      CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  10. 55
    1
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/model/ToCommunities.java
  11. 5
    1
      CODE/smart-community/operate-api/src/main/resources/mapper/ToCommunitiesMapper.xml
  12. 24
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java
  13. 79
    8
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServiceImpl.java
  14. 2
    1
      VUECODE/smart-operate-manage/src/views/banner/addBanner/index.vue
  15. 2
    1
      VUECODE/smart-operate-manage/src/views/banner/ediBanner/index.vue
  16. 2
    1
      VUECODE/smart-operate-manage/src/views/banner/index.vue
  17. 4
    4
      VUECODE/smart-operate-manage/src/views/community/communityTable.vue

+ 1
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserVerifyController.java Vedi File

@@ -53,12 +53,10 @@ public class UserVerifyController extends BaseController {
53 53
     @RequestMapping(value = "/user/verify/delete/{userVerifyId}", method = RequestMethod.DELETE)
54 54
     @ApiOperation(value = "删除一个审核的房产", notes = "删除一个审核的房产")
55 55
     @ApiImplicitParams({
56
-            @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "userVerifyId", value = "审核房产 id"),
57
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
56
+            @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "userVerifyId", value = "审核房产 id")
58 57
     })
59 58
     public ResponseBean deleteUserVerify(@PathVariable("userVerifyId") Integer userVerifyId, HttpSession session) {
60 59
         ResponseBean responseBean = new ResponseBean();
61
-        UserElement userElement = getUserElement(session);
62 60
         responseBean = taUserVerifyServicel.deleteUserVerify(userVerifyId);
63 61
         return responseBean;
64 62
     }

+ 2
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoImpl.java Vedi File

@@ -115,6 +115,8 @@ public class BuildingOwnerInfoImpl implements IBuildingOwnerInfo {
115 115
             return responseBean;
116 116
         }
117 117
 
118
+        result.put("ownerName",null);
119
+        result.put("roleName", null);
118 120
         responseBean.addSuccess(UserVerifyEnum.NO_OWNER.getMsg(), result, null);
119 121
         return responseBean;
120 122
     }

+ 12
- 7
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/HKServiceImpl.java Vedi File

@@ -12,6 +12,7 @@ import com.community.huiju.service.IHKService;
12 12
 import com.google.common.collect.Lists;
13 13
 import com.google.common.collect.Maps;
14 14
 import lombok.extern.slf4j.Slf4j;
15
+import org.apache.commons.lang.StringUtils;
15 16
 import org.springframework.beans.factory.annotation.Autowired;
16 17
 import org.springframework.stereotype.Service;
17 18
 
@@ -40,17 +41,21 @@ public class HKServiceImpl implements IHKService {
40 41
     public ResponseBean pushPerson(String appUserId) {
41 42
         ResponseBean responseBean = new ResponseBean();
42 43
         TaUser user = taUserMapper.selectByPrimaryKey(Integer.parseInt(appUserId));
44
+        // 这两个值一般都是同时存在的
45
+        // 当这两个值不存在的时候,就添加海康人员
46
+        if (StringUtils.isBlank(user.getHkUserId() + "") && StringUtils.isBlank(user.getHkPersonNo() + "")) {
47
+            // 设置 海康id
48
+            user.setHkPersonNo(idGen.nextId());
49
+            /**
50
+             * 1.获取部门(比如 住户)
51
+             * 2.根据部门编号推送 海康
52
+             */
53
+            addUserAndOpenCard(responseBean, user);
54
+        }
43 55
 
44
-        // 设置 海康id
45
-        user.setHkPersonNo(idGen.nextId());
46 56
 
47 57
 
48 58
         // 推送海康
49
-        /**
50
-         * 1.获取部门(比如 住户)
51
-         * 2.根据部门编号推送 海康
52
-         */
53
-        addUserAndOpenCard(responseBean, user);
54 59
 
55 60
         // 给用户添加 海康门禁权限
56 61
         HKOpenApi.addAuthoritiesByPersonIds(String.valueOf(user.getHkUserId()));

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java Vedi File

@@ -885,7 +885,7 @@ public class TaUserServiceImpl implements ITaUserService {
885 885
 
886 886
         // 人脸是否已录入
887 887
         TaFace face = taFaceMapper.getByUserVerifyId(userVerify.getId());
888
-        if (null == face) {
888
+        if (null != face) {
889 889
             userVO.setFace("register");
890 890
         } else {
891 891
             userVO.setFace("unregister");

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServicelmpl.java Vedi File

@@ -210,7 +210,7 @@ public class TaUserVerifyServicelmpl implements TaUserVerifyServicel {
210 210
         ResponseBean responseBean = new ResponseBean();
211 211
 
212 212
         TaUserVerify userVerify = taUserVerifyMapper.selectByPrimaryKey(userVerifyId);
213
-        if (null != userVerify && userElement.getUserVerifyId().intValue()  == userVerify.getId().intValue()) {
213
+        if (null != userVerify && null != userElement.getUserVerifyId()  && userElement.getUserVerifyId().intValue()  == userVerify.getId().intValue()) {
214 214
             responseBean.addError("无法删除当前登录的房产!");
215 215
             return responseBean;
216 216
         }

BIN
CODE/smart-community/community-common/target/community-common-0.0.1.jar Vedi File


+ 4
- 0
CODE/smart-community/community-common/target/maven-archiver/pom.properties Vedi File

@@ -0,0 +1,4 @@
1
+#Created by Apache Maven 3.3.9
2
+version=0.0.1
3
+groupId=com.community
4
+artifactId=community-common

+ 32
- 0
CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst Vedi File

@@ -0,0 +1,32 @@
1
+com\community\commom\redis\RedisTemplate.class
2
+com\community\commom\redis\RedisConfiguration.class
3
+com\community\commom\utils\OssUtil.class
4
+com\community\commom\redis\SingleRedisTemplate.class
5
+com\community\commom\utils\EnumUtils.class
6
+com\community\commom\hk\HttpClientSSLUtils$2.class
7
+com\community\commom\redis\RedisJsonSerializer.class
8
+com\community\commom\uuid\IdGen.class
9
+com\community\commom\utils\BeanTools.class
10
+com\community\commom\hk\HttpClientSSLUtils.class
11
+com\community\commom\session\UserElement.class
12
+com\community\commom\utils\CommonUtils.class
13
+com\community\commom\redis\RedisSerializer.class
14
+com\community\commom\utils\StringConverter.class
15
+com\community\commom\mode\ResponseBean.class
16
+com\community\commom\utils\DESUtils.class
17
+com\community\commom\redis\FastJsonSerializer.class
18
+com\community\commom\utils\DateUtils.class
19
+com\community\commom\utils\HttpClientUtils.class
20
+com\community\commom\constant\Constant.class
21
+com\community\commom\utils\CookieUtil.class
22
+com\community\commom\mode\HkResponseBean.class
23
+com\community\commom\ailiyun\AESDecode.class
24
+com\community\commom\uuid\IdGen$IdGenHolder.class
25
+com\community\commom\utils\PayPriceUtils.class
26
+com\community\commom\hk\HttpClientSSLUtils$1.class
27
+com\community\commom\utils\MD5Utils.class
28
+com\community\commom\redis\RedisObjectSerializer.class
29
+com\community\commom\utils\QRCodeGeneratorUtils.class
30
+com\community\commom\redis\SerializationFailedException.class
31
+com\community\commom\hk\Digests.class
32
+com\community\commom\utils\AccountValidatorUtil.class

+ 29
- 0
CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst Vedi File

@@ -0,0 +1,29 @@
1
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisJsonSerializer.java
2
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\ailiyun\AESDecode.java
3
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\hk\HttpClientSSLUtils.java
4
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\PayPriceUtils.java
5
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\DateUtils.java
6
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\HttpClientUtils.java
7
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\DESUtils.java
8
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisSerializer.java
9
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\BeanTools.java
10
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\OssUtil.java
11
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisObjectSerializer.java
12
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\EnumUtils.java
13
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisTemplate.java
14
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\mode\HkResponseBean.java
15
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\SerializationFailedException.java
16
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\CommonUtils.java
17
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\MD5Utils.java
18
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\session\UserElement.java
19
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\SingleRedisTemplate.java
20
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\hk\Digests.java
21
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\QRCodeGeneratorUtils.java
22
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisConfiguration.java
23
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\AccountValidatorUtil.java
24
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\uuid\IdGen.java
25
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\mode\ResponseBean.java
26
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\StringConverter.java
27
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\FastJsonSerializer.java
28
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\constant\Constant.java
29
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\CookieUtil.java

+ 55
- 1
CODE/smart-community/operate-api/src/main/java/com/community/huiju/model/ToCommunities.java Vedi File

@@ -46,7 +46,29 @@ public class ToCommunities {
46 46
     private String city;
47 47
     
48 48
     private String district;
49
-    
49
+
50
+    // =============================================================
51
+
52
+    /**
53
+     * 物业人员数量
54
+     */
55
+    private Integer propertyNum;
56
+
57
+    /**
58
+     * 已核实业主数量
59
+     */
60
+    private Integer verifyOwnerNum;
61
+
62
+    /**
63
+     * 已核实家属数量
64
+     */
65
+    private Integer verifyRelationNum;
66
+
67
+    /**
68
+     * 已核实租客数量
69
+     */
70
+    private Integer verifyTenantNum;
71
+
50 72
 
51 73
     public Integer getId() {
52 74
         return id;
@@ -183,4 +205,36 @@ public class ToCommunities {
183 205
     public void setDistrict(String district) {
184 206
         this.district = district;
185 207
     }
208
+
209
+    public Integer getPropertyNum() {
210
+        return propertyNum;
211
+    }
212
+
213
+    public void setPropertyNum(Integer propertyNum) {
214
+        this.propertyNum = propertyNum;
215
+    }
216
+
217
+    public Integer getVerifyOwnerNum() {
218
+        return verifyOwnerNum;
219
+    }
220
+
221
+    public void setVerifyOwnerNum(Integer verifyOwnerNum) {
222
+        this.verifyOwnerNum = verifyOwnerNum;
223
+    }
224
+
225
+    public Integer getVerifyRelationNum() {
226
+        return verifyRelationNum;
227
+    }
228
+
229
+    public void setVerifyRelationNum(Integer verifyRelationNum) {
230
+        this.verifyRelationNum = verifyRelationNum;
231
+    }
232
+
233
+    public Integer getVerifyTenantNum() {
234
+        return verifyTenantNum;
235
+    }
236
+
237
+    public void setVerifyTenantNum(Integer verifyTenantNum) {
238
+        this.verifyTenantNum = verifyTenantNum;
239
+    }
186 240
 }

+ 5
- 1
CODE/smart-community/operate-api/src/main/resources/mapper/ToCommunitiesMapper.xml Vedi File

@@ -196,7 +196,11 @@
196 196
       c.update_date,
197 197
       n.province,
198 198
       a.city,
199
-      t.district
199
+      t.district,
200
+      (select count(*) from tp_user where community_id=c.id and status=1) as propertyNum,
201
+      (select count(*) from ta_user_verify where community_id=c.id and role_id=1 and verify_status=1) as verifyOwnerNum,
202
+      (select count(*) from ta_user_verify where community_id=c.id and role_id=3 and verify_status=1) as verifyRelationNum,
203
+      (select count(*) from ta_user_verify where community_id=c.id and role_id=2 and verify_status=1) as verifyTenantNum
200 204
     FROM
201 205
       to_communities c
202 206
     LEFT JOIN sys_nation n ON c.province_id = n.id

+ 24
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java Vedi File

@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6 6
 import com.community.huiju.model.TpBuildingOwnerInfo;
7 7
 import org.apache.ibatis.annotations.Mapper;
8 8
 import org.apache.ibatis.annotations.Param;
9
+import org.apache.ibatis.annotations.ResultType;
10
+import org.apache.ibatis.annotations.Select;
9 11
 
10 12
 import java.util.List;
11 13
 
@@ -31,4 +33,26 @@ public interface TpBuildingOwnerInfoMapper extends BaseMapper<TpBuildingOwnerInf
31 33
     int batchUpdate(List<TpBuildingOwnerInfo> list);
32 34
 	
33 35
 	List<TpBuildingOwnerInfo> selectListByParams(Page page,@Param("tpBuildingOwnerInfo") TpBuildingOwnerInfo tpBuildingOwnerInfo);
36
+
37
+    /**
38
+     * 更具 小区、期、楼栋、单元、楼层、户号、手机号 查询
39
+     * @param communityId
40
+     * @param phaseId
41
+     * @param buildingId
42
+     * @param unitId
43
+     * @param levelId
44
+     * @param roomNoId
45
+     * @param ownerTel
46
+     * @return
47
+     */
48
+	@ResultType(TpBuildingOwnerInfo.class)
49
+	@Select("select * FROM tp_building_owner_info tpio " +
50
+            "WHERE tpio.community_id = #{communityId} " +
51
+            "and tpio.phase_id = #{phaseId} " +
52
+            "and tpio.building_id = #{buildingId} " +
53
+            "and tpio.unit_id = #{unitId} " +
54
+            "and tpio.level_id = #{levelId} " +
55
+            "AND tpio.room_no_id = #{roomNoId} " +
56
+            "AND tpio.owner_tel = #{ownerTel}")
57
+    TpBuildingOwnerInfo selectCommunityIdAndAddress(@Param("communityId") Integer communityId, @Param("phaseId") Integer phaseId, @Param("buildingId") Integer buildingId, @Param("unitId") Integer unitId, @Param("levelId") Integer levelId, @Param("roomNoId") Integer roomNoId, @Param("ownerTel") String ownerTel);
34 58
 }

+ 79
- 8
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServiceImpl.java Vedi File

@@ -39,6 +39,21 @@ public class TaUserVerifyServiceImpl extends ServiceImpl<TaUserVerifyMapper, TaU
39 39
     @Autowired
40 40
     private TpBuildingOwnerInfoMapper tpBuildingOwnerInfoMapper;
41 41
 
42
+    @Autowired
43
+    private TpPhaseMapper tpPhaseMapper;
44
+
45
+    @Autowired
46
+    private TpBuildingMapper tpBuildingMapper;
47
+
48
+    @Autowired
49
+    private TpUnitMapper tpUnitMapper;
50
+
51
+    @Autowired
52
+    private TpLevelMapper tpLevelMapper;
53
+
54
+    @Autowired
55
+    private TpRoomNoMapper tpRoomNoMapper;
56
+
42 57
     @Override
43 58
     public ResponseBean selectAll(String phone, String userName, String idCard, Integer pageNum, Integer pageSize) {
44 59
         ResponseBean responseBean = new ResponseBean();
@@ -70,6 +85,17 @@ public class TaUserVerifyServiceImpl extends ServiceImpl<TaUserVerifyMapper, TaU
70 85
 
71 86
         User user = userMapper.selectById(userElement.getId());
72 87
         String status = verifyStatus == true ? Constant.APPROVED : Constant.REJECTED;
88
+
89
+        TaUser taUser = taUserMapper.selectById(userVerify.getUserId());
90
+        TpBuildingOwnerInfo tpBuildingOwnerInfo = tpBuildingOwnerInfoMapper.selectCommunityIdAndAddress(userVerify.getCommunityId(), userVerify.getPhaseId(),
91
+                userVerify.getBuildingId(), userVerify.getUnitId(),
92
+                userVerify.getLevelId(), userVerify.getRoomNoId(),
93
+                taUser.getLoginName());
94
+        // 插入楼栋资料库
95
+        // 保证这个用户在这个小区的房产中只存在一个数据
96
+        if (verifyStatus && null == tpBuildingOwnerInfo) {
97
+            insertBuildingOwnerInfo(userVerify, user);
98
+        }
73 99
         userVerify.setVerifyStatus(status);
74 100
         userVerify.setVerifyName(user.getUserName());
75 101
         taUserVerifyMapper.updateById(userVerify);
@@ -78,6 +104,46 @@ public class TaUserVerifyServiceImpl extends ServiceImpl<TaUserVerifyMapper, TaU
78 104
         return responseBean;
79 105
     }
80 106
 
107
+    /**
108
+     * 插入楼栋资料库
109
+     *
110
+     * @param user 物业人员
111
+     * @param userVerify 审核数据
112
+     * @return TpBuildingOwnerInfo
113
+     */
114
+    private TpBuildingOwnerInfo insertBuildingOwnerInfo(TaUserVerify userVerify, User user) {
115
+        TaUser taUser = taUserMapper.selectById(userVerify.getUserId());
116
+        TpPhase tpPhase = tpPhaseMapper.selectById(userVerify.getPhaseId());
117
+        TpBuilding tpBuilding = tpBuildingMapper.selectById(userVerify.getBuildingId());
118
+        TpUnit tpUnit = tpUnitMapper.selectById(userVerify.getUnitId());
119
+        TpLevel tpLevel = tpLevelMapper.selectById(userVerify.getLevelId());
120
+        TpRoomNo tpRoomNo = tpRoomNoMapper.selectById(userVerify.getRoomNoId());
121
+
122
+        TpBuildingOwnerInfo tpBuildingOwnerInfo = new TpBuildingOwnerInfo();
123
+        tpBuildingOwnerInfo.setCommunityId(userVerify.getCommunityId());
124
+        tpBuildingOwnerInfo.setIdCard(taUser.getIdCard());
125
+        tpBuildingOwnerInfo.setPhaseId(tpPhase.getId());
126
+        tpBuildingOwnerInfo.setPhaseName(tpPhase.getName());
127
+        tpBuildingOwnerInfo.setBuildingId(tpBuilding.getId());
128
+        tpBuildingOwnerInfo.setBuildingName(tpBuilding.getName());
129
+        tpBuildingOwnerInfo.setUnitId(tpUnit.getId());
130
+        tpBuildingOwnerInfo.setUnitName(tpUnit.getName());
131
+        tpBuildingOwnerInfo.setLevelId(tpLevel.getId());
132
+        tpBuildingOwnerInfo.setLevelName(tpLevel.getName());
133
+        tpBuildingOwnerInfo.setRoomNoId(tpRoomNo.getId());
134
+        tpBuildingOwnerInfo.setRoomNoName(tpRoomNo.getName());
135
+        tpBuildingOwnerInfo.setOwnerName(taUser.getUserName());
136
+        tpBuildingOwnerInfo.setOwnerTel(taUser.getLoginName());
137
+        tpBuildingOwnerInfo.setGender(taUser.getGender());
138
+        tpBuildingOwnerInfo.setPairStatus("1");
139
+        tpBuildingOwnerInfo.setVerifyStatus("1");
140
+        tpBuildingOwnerInfo.setCreateDate(LocalDateTime.now());
141
+        tpBuildingOwnerInfo.setCreateUser(user.getId());
142
+
143
+        tpBuildingOwnerInfoMapper.insert(tpBuildingOwnerInfo);
144
+        return tpBuildingOwnerInfo;
145
+    }
146
+
81 147
     @Override
82 148
     @Transactional(rollbackFor = Exception.class)
83 149
     public ResponseBean verifyinfoAdd(UserElement userElement, Integer userVerifyId, String verifyStatus, String roleState) {
@@ -88,23 +154,28 @@ public class TaUserVerifyServiceImpl extends ServiceImpl<TaUserVerifyMapper, TaU
88 154
             responseBean.addError("审核数据不存在!");
89 155
             return responseBean;
90 156
         }
157
+        // 被审核的用户(APP端)
158
+        TaUser taUser = taUserMapper.selectById(userVerify.getUserId());
159
+        // 物业人员
160
+        User user = userMapper.selectById(userElement.getId());
161
+        TpBuildingOwnerInfo tpBuildingOwnerInfo = tpBuildingOwnerInfoMapper.selectCommunityIdAndAddress(userVerify.getCommunityId(), userVerify.getPhaseId(),
162
+                userVerify.getBuildingId(), userVerify.getUnitId(),
163
+                userVerify.getLevelId(), userVerify.getRoomNoId(),
164
+                taUser.getLoginName());
91 165
 
92 166
         userVerify.setVerifyStatus(verifyStatus);
93 167
         userVerify.setRoleId(Integer.valueOf(roleState));
94 168
         // 审核通过的情况
95 169
         if ("1".equals(verifyStatus) && StringUtils.isNotBlank(roleState)) {
96 170
             userVerify.setRoleId(Integer.valueOf(roleState));
171
+            // 只有这个人在当前房产没有楼栋资料的时候才添加
172
+            if (null == tpBuildingOwnerInfo) {
173
+                // 添加楼栋数据
174
+                insertBuildingOwnerInfo(userVerify, user);
175
+            }
97 176
         }
98 177
         taUserVerifyMapper.updateById(userVerify);
99 178
 
100
-
101
-        // 审核成功后更新building_owner_info里面的时间
102
-//        Integer BuildingID= taUserMapper.selectById(userVerify.getUserId()).getBuildingOwnerInfoId();
103
-//        TpBuildingOwnerInfo tpBuildingOwnerInfo= tpBuildingOwnerInfoMapper.selectById(BuildingID);
104
-//         LocalDateTime time = LocalDateTime.now();
105
-//         tpBuildingOwnerInfo.setUpdateDate(time);
106
-//        tpBuildingOwnerInfoMapper.updateById(tpBuildingOwnerInfo);
107
-
108 179
         responseBean.addSuccess("操作成功!");
109 180
 
110 181
         return responseBean;

+ 2
- 1
VUECODE/smart-operate-manage/src/views/banner/addBanner/index.vue Vedi File

@@ -156,7 +156,8 @@ export default {
156 156
       showURLVisible: true,
157 157
       bannerPositionArr: [
158 158
         { id: 1, value: '首页banner' },
159
-        { id: 2, value: '服务banner' }
159
+        { id: 2, value: '服务banner' },
160
+        { id: 3, value: '广告banner' }
160 161
       ]
161 162
     }
162 163
   },

+ 2
- 1
VUECODE/smart-operate-manage/src/views/banner/ediBanner/index.vue Vedi File

@@ -159,7 +159,8 @@ export default {
159 159
       showURLVisible: true,
160 160
       bannerPositionArr: [
161 161
         { id: 1, value: '首页banner' },
162
-        { id: 2, value: '服务banner' }
162
+        { id: 2, value: '服务banner' },
163
+        { id: 3, value: '广告banner' }
163 164
       ]
164 165
     }
165 166
   },

+ 2
- 1
VUECODE/smart-operate-manage/src/views/banner/index.vue Vedi File

@@ -163,7 +163,8 @@ export default {
163 163
       formLabelWidth: '120px',
164 164
       bannerPositionArr: [
165 165
         { id: 1, value: '首页banner' },
166
-        { id: 2, value: '服务banner' }
166
+        { id: 2, value: '服务banner' },
167
+        { id: 3, value: '广告banner' }
167 168
       ],
168 169
       deleteBannerId: []
169 170
     }

+ 4
- 4
VUECODE/smart-operate-manage/src/views/community/communityTable.vue Vedi File

@@ -41,22 +41,22 @@
41 41
       </el-table-column>
42 42
       <el-table-column label="物业人员数量" align="center">
43 43
         <template slot-scope="scope">
44
-          <span>52</span>
44
+          <span>{{ scope.row.propertyNum }}</span>
45 45
         </template>
46 46
       </el-table-column>
47 47
       <el-table-column label="已核业主数量" align="center">
48 48
         <template slot-scope="scope">
49
-          <span>123</span>
49
+          <span>{{ scope.row.verifyOwnerNum }}</span>
50 50
         </template>
51 51
       </el-table-column>
52 52
       <el-table-column label="已核家属数量" align="center">
53 53
         <template slot-scope="scope">
54
-          <span>345</span>
54
+          <span>{{ scope.row.verifyRelationNum }}</span>
55 55
         </template>
56 56
       </el-table-column>
57 57
       <el-table-column label="已核租客数量" align="center">
58 58
         <template slot-scope="scope">
59
-          <span>234</span>
59
+          <span>{{ scope.row.verifyTenantNum }}</span>
60 60
         </template>
61 61
       </el-table-column>
62 62
       <el-table-column label="物业管理员" align="center">