ソースを参照

Merge branch '2.0.0' of http://git.ycjcjy.com/fuxingfan/smartCommunity into 2.0.0

傅行帆 6 年 前
コミット
c73e256e85
共有25 個のファイルを変更した977 個の追加333 個の削除を含む
  1. 406
    260
      CODE/smart-community-word/.idea/workspace.xml
  2. 37
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/IBuildingOwnerInfoController.java
  3. 16
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserVerifyController.java
  4. 6
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java
  5. 20
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUser.java
  6. 0
    20
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUserVerify.java
  7. 10
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/IBuildingOwnerInfo.java
  8. 2
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/TaUserVerifyServicel.java
  9. 23
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoImpl.java
  10. 6
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java
  11. 3
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServicelmpl.java
  12. 3
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/vo/TaUserVO.java
  13. 26
    4
      CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml
  14. 8
    30
      CODE/smart-community/app-api/src/main/resources/mapper/TaUserVerifyMapper.xml
  15. 11
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BuildingOwnerInfoController.java
  16. 19
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpBuildingMapper.java
  17. 0
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpAnnouncement.java
  18. 29
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpBuilding.java
  19. 8
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBuildingOwnerInfoService.java
  20. 30
    2
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java
  21. 35
    0
      CODE/smart-community/property-api/src/main/resources/mapper/TpBuildingMapper.xml
  22. 33
    0
      VUECODE/smart-property-manage/src/api/buildingOwnerInfo.js
  23. 6
    0
      VUECODE/smart-property-manage/src/router/index.js
  24. 19
    1
      VUECODE/smart-property-manage/src/store/modules/buildingOwnerInfo.js
  25. 221
    0
      VUECODE/smart-property-manage/src/views/building/buildingdata/index.vue

+ 406
- 260
CODE/smart-community-word/.idea/workspace.xml
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 37
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/IBuildingOwnerInfoController.java ファイルの表示

@@ -1,10 +1,22 @@
1 1
 package com.community.huiju.controller;
2 2
 
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.commom.session.UserElement;
5
+import com.community.huiju.service.IBuildingOwnerInfo;
3 6
 import io.swagger.annotations.Api;
7
+import io.swagger.annotations.ApiImplicitParam;
8
+import io.swagger.annotations.ApiImplicitParams;
9
+import io.swagger.annotations.ApiOperation;
10
+import org.apache.ibatis.annotations.Param;
11
+import org.springframework.beans.factory.annotation.Autowired;
4 12
 import org.springframework.cloud.context.config.annotation.RefreshScope;
13
+import org.springframework.web.bind.annotation.RequestBody;
5 14
 import org.springframework.web.bind.annotation.RequestMapping;
15
+import org.springframework.web.bind.annotation.RequestMethod;
6 16
 import org.springframework.web.bind.annotation.RestController;
7 17
 
18
+import javax.servlet.http.HttpSession;
19
+
8 20
 /**
9 21
  * version V1.0
10 22
  * class_name: $METHOD_NAME$
@@ -17,5 +29,29 @@ import org.springframework.web.bind.annotation.RestController;
17 29
 @RefreshScope
18 30
 @RequestMapping("/")
19 31
 @Api(value = "楼栋资料库API",description = "楼栋资料库API")
20
-public class IBuildingOwnerInfoController {
32
+public class IBuildingOwnerInfoController extends BaseController {
33
+    @Autowired
34
+    private IBuildingOwnerInfo iBuildingOwnerInfo;
35
+
36
+    @ApiOperation(value = "关联当前用户房产",notes = "关联当前用户房产")
37
+    @ApiImplicitParams({@ApiImplicitParam(dataType = "body",dataTypeClass = String.class,name = "paramet",
38
+            value = "")
39
+    })
40
+    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
41
+    @RequestMapping(value = "/add",method = RequestMethod.POST)
42
+    public ResponseBean add(@RequestBody String paramet, HttpSession session){
43
+                return null;
44
+    }
45
+
46
+    @ApiOperation(value = "当前用户未关联的房屋列表",notes = "当前用户未关联的房屋列表")
47
+    @ApiImplicitParams({@ApiImplicitParam(dataType = "body",dataTypeClass = String.class,name = "paramet",
48
+            value = "")
49
+    })
50
+    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
51
+    @RequestMapping(value = "/buildingownerinfo",method = RequestMethod.POST)
52
+    public ResponseBean buildingownerinfoList(@RequestBody String paramet, HttpSession session){
53
+        UserElement userElement= getUserElement(session);
54
+        ResponseBean buildingownerinfoList= iBuildingOwnerInfo.buildingownerinfoList(paramet,userElement);
55
+        return buildingownerinfoList;
56
+    }
21 57
 }

+ 16
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserVerifyController.java ファイルの表示

@@ -1,14 +1,21 @@
1 1
 package com.community.huiju.controller;
2 2
 
3 3
 import com.community.commom.mode.ResponseBean;
4
+import com.community.commom.session.UserElement;
4 5
 import com.community.huiju.service.ITaUserService;
6
+import com.community.huiju.service.TaUserVerifyServicel;
5 7
 import io.swagger.annotations.Api;
8
+import io.swagger.annotations.ApiImplicitParam;
9
+import io.swagger.annotations.ApiImplicitParams;
6 10
 import io.swagger.annotations.ApiOperation;
7 11
 import org.springframework.beans.factory.annotation.Autowired;
12
+import org.springframework.web.bind.annotation.PathVariable;
8 13
 import org.springframework.web.bind.annotation.RequestMapping;
9 14
 import org.springframework.web.bind.annotation.RequestMethod;
10 15
 import org.springframework.web.bind.annotation.RestController;
11 16
 
17
+import javax.servlet.http.HttpSession;
18
+
12 19
 /**
13 20
  * app端用户审核
14 21
  *
@@ -20,12 +27,17 @@ import org.springframework.web.bind.annotation.RestController;
20 27
 public class UserVerifyController extends BaseController {
21 28
 
22 29
     @Autowired
23
-    private ITaUserService iTaUserService;
30
+    private TaUserVerifyServicel taUserVerifyServicel;
24 31
 
25
-    @RequestMapping(value = "/user/verify", method = RequestMethod.GET)
32
+    @RequestMapping(value = "/user/verify/{userVerifyId}", method = RequestMethod.GET)
26 33
     @ApiOperation(value = "获取当前 一个待审核或审核不通过房产")
27
-    public ResponseBean getUserVerify() {
28
-        return null;
34
+    @ApiImplicitParams({
35
+            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
36
+    })
37
+    public ResponseBean getUserVerify(HttpSession session, @PathVariable("userVerifyId") Integer userVerifyId) {
38
+        UserElement userElement = getUserElement(session);
39
+        ResponseBean responseBean = taUserVerifyServicel.getList(userElement, userVerifyId);
40
+        return responseBean;
29 41
     }
30 42
 
31 43
 

+ 6
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java ファイルの表示

@@ -35,6 +35,12 @@ public interface TpBuildingOwnerInfoMapper {
35 35
     List<TpBuildingOwnerInfo> sellectHouseList(@Param("ownerTel") String ownerTel);
36 36
 
37 37
     /**
38
+     * 查询当前房产所在的小区
39
+     * @return
40
+     */
41
+//    List<TpBuildingOwnerInfo> buildingownerinfoList(@Param("name") String name,@Param("phone") String phone);
42
+
43
+    /*
38 44
      * 根据 小区,期,楼栋,单元,楼层,户号
39 45
      * @param communityId
40 46
      * @param phase

+ 20
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUser.java ファイルの表示

@@ -64,6 +64,10 @@ public class TaUser {
64 64
     // 海康人员编号
65 65
     private Long hkPersonNo;
66 66
 
67
+    private String openid;
68
+
69
+    private String nickname;
70
+
67 71
     // 当前用户下的多套房产
68 72
     private List<TpBuildingOwnerInfo> houseList;
69 73
 
@@ -274,4 +278,20 @@ public class TaUser {
274 278
     public void setIdCard(String idCard) {
275 279
         this.idCard = idCard;
276 280
     }
281
+
282
+    public String getOpenid() {
283
+        return openid;
284
+    }
285
+
286
+    public void setOpenid(String openid) {
287
+        this.openid = openid == null ? null : openid.trim();
288
+    }
289
+
290
+    public String getNickname() {
291
+        return nickname;
292
+    }
293
+
294
+    public void setNickname(String nickname) {
295
+        this.nickname = nickname == null ? null : nickname.trim();
296
+    }
277 297
 }

+ 0
- 20
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUserVerify.java ファイルの表示

@@ -23,10 +23,6 @@ public class TaUserVerify {
23 23
 
24 24
     private String verifyStatus;
25 25
 
26
-    private String openid;
27
-
28
-    private String nickname;
29
-
30 26
     private Date createDate;
31 27
 
32 28
     /**
@@ -127,22 +123,6 @@ public class TaUserVerify {
127 123
         this.verifyStatus = verifyStatus == null ? null : verifyStatus.trim();
128 124
     }
129 125
 
130
-    public String getOpenid() {
131
-        return openid;
132
-    }
133
-
134
-    public void setOpenid(String openid) {
135
-        this.openid = openid == null ? null : openid.trim();
136
-    }
137
-
138
-    public String getNickname() {
139
-        return nickname;
140
-    }
141
-
142
-    public void setNickname(String nickname) {
143
-        this.nickname = nickname == null ? null : nickname.trim();
144
-    }
145
-
146 126
     public Date getCreateDate() {
147 127
         return createDate;
148 128
     }

+ 10
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/IBuildingOwnerInfo.java ファイルの表示

@@ -1,11 +1,19 @@
1 1
 package com.community.huiju.service;
2 2
 
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.commom.session.UserElement;
5
+
3 6
 /**
4 7
  * 楼栋资料库
5 8
  * @author weiximei
6 9
  */
7 10
 public interface IBuildingOwnerInfo {
8 11
 
9
-
10
-
12
+    /**
13
+     * 查询当前用户未关联的房屋
14
+     * @param paramet
15
+     * @param userElement
16
+     * @return
17
+     */
18
+    ResponseBean buildingownerinfoList(String paramet, UserElement userElement);
11 19
 }

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/TaUserVerifyServicel.java ファイルの表示

@@ -12,8 +12,9 @@ public interface TaUserVerifyServicel {
12 12
     /**
13 13
      * 查询 app端用户审核表 的数据
14 14
      * @param userElement
15
+     * @param userVerifyId
15 16
      * @return
16 17
      */
17
-    ResponseBean getList(UserElement userElement);
18
+    ResponseBean getList(UserElement userElement, Integer userVerifyId);
18 19
 
19 20
 }

+ 23
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoImpl.java ファイルの表示

@@ -1,9 +1,22 @@
1 1
 package com.community.huiju.service.impl;
2 2
 
3
+import com.alibaba.fastjson.JSONObject;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.commom.session.UserElement;
6
+import com.community.huiju.dao.TpBuildingOwnerInfoMapper;
7
+import com.community.huiju.model.TpBuildingOwnerInfo;
8
+import com.community.huiju.model.TpTransaction;
3 9
 import com.community.huiju.service.IBuildingOwnerInfo;
10
+import com.github.pagehelper.Page;
11
+import com.github.pagehelper.PageHelper;
12
+import com.google.common.collect.Maps;
4 13
 import lombok.extern.slf4j.Slf4j;
14
+import org.springframework.beans.factory.annotation.Autowired;
5 15
 import org.springframework.stereotype.Service;
6 16
 
17
+import java.util.List;
18
+import java.util.Map;
19
+
7 20
 /**
8 21
  * 楼栋资料库实现
9 22
  * @author weiximei
@@ -11,4 +24,14 @@ import org.springframework.stereotype.Service;
11 24
 @Slf4j
12 25
 @Service
13 26
 public class BuildingOwnerInfoImpl implements IBuildingOwnerInfo {
27
+    @Autowired
28
+    private TpBuildingOwnerInfoMapper tpBuildingOwnerInfoMapper;
29
+    @Override
30
+    public ResponseBean buildingownerinfoList(String paramet, UserElement userElement) {
31
+        JSONObject object= JSONObject.parseObject(paramet);
32
+        Map<String, Object> parameter = Maps.newHashMap();
33
+        Page<TpTransaction> pageLsit= PageHelper.startPage(object.getInteger("pageNum"), object.getInteger("paeSize"));
34
+//        List<TpBuildingOwnerInfo> TpBuildingOwnerInfoList= tpBuildingOwnerInfoMapper.buildingownerinfoList(object.getString("name"),object.getString("phone"));
35
+        return null;
36
+    }
14 37
 }

+ 6
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java ファイルの表示

@@ -129,12 +129,15 @@ public class TaUserServiceImpl implements ITaUserService {
129 129
         // 关联一个审核通过的房产/关联一个待审核房产/关联一个审核未通过房产
130 130
         if (taUserVerifies.size() == 1) {
131 131
             BeanUtils.copyProperties(currentUser, taUserVO);
132
+            TaUserVerify userVerify = taUserVerifies.get(0);
133
+
134
+            // 设置 这个审核id (这个要返给前端)
135
+            taUserVO.setUserVerifyId(userVerify.getId());
136
+
132 137
             // 认证状态  0 是未审核   1是审核通过   2是审核不通过
133
-            String verifyStatus = taUserVerifies.get(0).getVerifyStatus();
138
+            String verifyStatus = userVerify.getVerifyStatus();
134 139
             // 有一个审核通过的房产
135 140
             if ("1".equals(verifyStatus)) {
136
-
137
-                TaUserVerify userVerify = taUserVerifies.get(0);
138 141
                 // 设置 userVO 信息
139 142
                 setUserVoProperties(userVerify.getCommunityId(), taUserVO);
140 143
 

+ 3
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServicelmpl.java ファイルの表示

@@ -39,10 +39,9 @@ public class TaUserVerifyServicelmpl implements TaUserVerifyServicel {
39 39
     private TpBuildingOwnerInfoMapper tpBuildingOwnerInfoMapper;
40 40
 
41 41
     @Override
42
-    public ResponseBean getList(UserElement userElement) {
42
+    public ResponseBean getList(UserElement userElement, Integer userVerifyId) {
43 43
         ResponseBean responseBean = new ResponseBean();
44
-        List<TaUserVerify> taUserVerifies = taUserVerifyMapper.selectByUserId(userElement.getId());
45
-        TaUserVerify taUserVerify = taUserVerifies.get(0);
44
+        TaUserVerify taUserVerify = taUserVerifyMapper.selectByPrimaryKey(userVerifyId);
46 45
         TaSysRole taSysRole = taSysRoleMapper.selectByPrimaryKey(taUserVerify.getRoleId());
47 46
         taUserVerify.setRoleName(taSysRole.getRoleName());
48 47
         if ("2".equals(taUserVerify.getVerifyStatus())) {
@@ -51,7 +50,7 @@ public class TaUserVerifyServicelmpl implements TaUserVerifyServicel {
51 50
             taUserVerify.setOwnerName(tpBuildingOwnerInfo.getOwnerName());
52 51
         }
53 52
 
54
-        responseBean.addSuccess(taUserVerifies);
53
+        responseBean.addSuccess(taUserVerify);
55 54
         return responseBean;
56 55
     }
57 56
 }

+ 3
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/vo/TaUserVO.java ファイルの表示

@@ -70,4 +70,7 @@ public class TaUserVO {
70 70
     /** 身份证 **/
71 71
     private String idCard;
72 72
 
73
+    /** 审核的id **/
74
+    private Integer userVerifyId;
75
+
73 76
 }

+ 26
- 4
CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml ファイルの表示

@@ -25,11 +25,13 @@
25 25
     <result column="hk_card_no" property="hkCardNo" jdbcType="VARCHAR" />
26 26
     <result column="face_status" property="faceStatus" jdbcType="CHAR" />
27 27
     <result column="id_card" property="idCard" jdbcType="INTEGER"/>
28
+    <result column="openid" property="openid" jdbcType="VARCHAR" />
29
+    <result column="nickname" property="nickname" jdbcType="VARCHAR" />
28 30
   </resultMap>
29 31
   <sql id="Base_Column_List" >
30 32
     id, community_id, building_owner_info_id, head_portrait, user_name, login_name, login_password,
31 33
     email, gender, status, remark, parent_id, accept_agreement_status, verify_status,
32
-    create_user, create_date, update_user, update_date, hk_person_no, hk_user_id, hk_card_no, face_status, id_card
34
+    create_user, create_date, update_user, update_date, hk_person_no, hk_user_id, hk_card_no, face_status, id_card, openid, nickname
33 35
   </sql>
34 36
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
35 37
     select
@@ -48,7 +50,7 @@
48 50
       status, remark, parent_id,
49 51
       accept_agreement_status, verify_status, create_user,
50 52
       create_date, update_user, update_date, hk_person_no,
51
-      hk_user_id, hk_card_no, face_status, id_card
53
+      hk_user_id, hk_card_no, face_status, id_card, openid, nickname
52 54
       )
53 55
     values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{buildingOwnerInfoId,jdbcType=INTEGER},
54 56
       #{headPortrait,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{loginName,jdbcType=VARCHAR},
@@ -57,7 +59,7 @@
57 59
       #{acceptAgreementStatus,jdbcType=CHAR}, #{verifyStatus,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER},
58 60
       #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP},
59 61
       #{hkPersonNo,jdbcType=BIGINT}, #{hkUserId,jdbcType=INTEGER}, #{hkCardNo,jdbcType=VARCHAR}, #{faceStatus,jdbcType=CHAR},
60
-      #{idCard,jdbcType=VARCHAR}
62
+      #{idCard,jdbcType=VARCHAR}, #{openid,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR},
61 63
       )
62 64
   </insert>
63 65
   <insert id="insertSelective" parameterType="com.community.huiju.model.TaUser" useGeneratedKeys="true" keyProperty="id" >
@@ -132,6 +134,12 @@
132 134
       <if test="idCard != null">
133 135
         id_card,
134 136
       </if>
137
+      <if test="openid != null" >
138
+        openid,
139
+      </if>
140
+      <if test="nickname != null" >
141
+        nickname,
142
+      </if>
135 143
     </trim>
136 144
     <trim prefix="values (" suffix=")" suffixOverrides="," >
137 145
       <if test="id != null" >
@@ -203,6 +211,12 @@
203 211
       <if test="idCard != null">
204 212
         #{idCard,jdbcType=VARCHAR},
205 213
       </if>
214
+      <if test="openid != null" >
215
+        #{openid,jdbcType=VARCHAR},
216
+      </if>
217
+      <if test="nickname != null" >
218
+        #{nickname,jdbcType=VARCHAR},
219
+      </if>
206 220
     </trim>
207 221
   </insert>
208 222
   <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TaUser" >
@@ -274,6 +288,12 @@
274 288
       <if test="idCard != null">
275 289
         id_card = #{idCard,jdbcType=VARCHAR},
276 290
       </if>
291
+      <if test="openid != null" >
292
+        openid = #{openid,jdbcType=VARCHAR},
293
+      </if>
294
+      <if test="nickname != null" >
295
+        nickname = #{nickname,jdbcType=VARCHAR},
296
+      </if>
277 297
     </set>
278 298
     where id = #{id,jdbcType=INTEGER}
279 299
   </update>
@@ -300,7 +320,9 @@
300 320
       hk_user_id = #{hkUserId,jdbcType=INTEGER},
301 321
       hk_card_no = #{hkCardNo,jdbcType=VARCHAR},
302 322
       face_status = #{faceStatus,jdbcType=CHAR},
303
-      id_card = #{idCard,jdbcType=VARCHAR}
323
+      id_card = #{idCard,jdbcType=VARCHAR},
324
+      openid = #{openid,jdbcType=VARCHAR},
325
+      nickname = #{nickname,jdbcType=VARCHAR}
304 326
     where id = #{id,jdbcType=INTEGER}
305 327
   </update>
306 328
 

+ 8
- 30
CODE/smart-community/app-api/src/main/resources/mapper/TaUserVerifyMapper.xml ファイルの表示

@@ -12,14 +12,12 @@
12 12
     <result column="level" property="level" jdbcType="VARCHAR" />
13 13
     <result column="room_no" property="roomNo" jdbcType="VARCHAR" />
14 14
     <result column="verify_status" property="verifyStatus" jdbcType="VARCHAR" />
15
-    <result column="openid" property="openid" jdbcType="VARCHAR" />
16
-    <result column="nickname" property="nickname" jdbcType="VARCHAR" />
17 15
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
18
-      <result column="verify_name" property="verifyName" javaType="VARCHAR" />
16
+    <result column="verify_name" property="verifyName"/>
19 17
   </resultMap>
20 18
   <sql id="Base_Column_List" >
21 19
     id, user_id, community_id, role_id, phase, building, unit, level, room_no, verify_status, 
22
-    openid, nickname, create_date, verify_name
20
+     create_date, verify_name
23 21
   </sql>
24 22
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
25 23
     select 
@@ -35,13 +33,13 @@
35 33
     insert into ta_user_verify (id, user_id, community_id, 
36 34
       role_id, phase, building, 
37 35
       unit, level, room_no, 
38
-      verify_status, openid, nickname, 
36
+      verify_status,
39 37
       create_date, verify_name)
40 38
     values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, 
41 39
       #{roleId,jdbcType=INTEGER}, #{phase,jdbcType=VARCHAR}, #{building,jdbcType=VARCHAR}, 
42 40
       #{unit,jdbcType=VARCHAR}, #{level,jdbcType=VARCHAR}, #{roomNo,jdbcType=VARCHAR}, 
43
-      #{verifyStatus,jdbcType=VARCHAR}, #{openid,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, 
44
-      #{createDate,jdbcType=TIMESTAMP}, #{verifyName,jdbcType=VARCHAR})
41
+      #{verifyStatus,jdbcType=VARCHAR},
42
+      #{createDate,jdbcType=TIMESTAMP}, #{verifyName})
45 43
   </insert>
46 44
   <insert id="insertSelective" parameterType="com.community.huiju.model.TaUserVerify" >
47 45
     insert into ta_user_verify
@@ -76,12 +74,6 @@
76 74
       <if test="verifyStatus != null" >
77 75
         verify_status,
78 76
       </if>
79
-      <if test="openid != null" >
80
-        openid,
81
-      </if>
82
-      <if test="nickname != null" >
83
-        nickname,
84
-      </if>
85 77
       <if test="createDate != null" >
86 78
         create_date,
87 79
       </if>
@@ -120,17 +112,11 @@
120 112
       <if test="verifyStatus != null" >
121 113
         #{verifyStatus,jdbcType=VARCHAR},
122 114
       </if>
123
-      <if test="openid != null" >
124
-        #{openid,jdbcType=VARCHAR},
125
-      </if>
126
-      <if test="nickname != null" >
127
-        #{nickname,jdbcType=VARCHAR},
128
-      </if>
129 115
       <if test="createDate != null" >
130 116
         #{createDate,jdbcType=TIMESTAMP},
131 117
       </if>
132 118
       <if test="verifyName != null">
133
-          #{verifyName,jdbcType=VARCHAR},
119
+          #{verifyName},
134 120
       </if>
135 121
     </trim>
136 122
   </insert>
@@ -164,17 +150,11 @@
164 150
       <if test="verifyStatus != null" >
165 151
         verify_status = #{verifyStatus,jdbcType=VARCHAR},
166 152
       </if>
167
-      <if test="openid != null" >
168
-        openid = #{openid,jdbcType=VARCHAR},
169
-      </if>
170
-      <if test="nickname != null" >
171
-        nickname = #{nickname,jdbcType=VARCHAR},
172
-      </if>
173 153
       <if test="createDate != null" >
174 154
         create_date = #{createDate,jdbcType=TIMESTAMP},
175 155
       </if>
176 156
       <if test="verifyName != null">
177
-          verify_name = #{verifyName, jdbcType=VARCHAR}
157
+          verify_name = #{verifyName}
178 158
       </if>
179 159
     </set>
180 160
     where id = #{id,jdbcType=INTEGER}
@@ -190,10 +170,8 @@
190 170
       level = #{level,jdbcType=VARCHAR},
191 171
       room_no = #{roomNo,jdbcType=VARCHAR},
192 172
       verify_status = #{verifyStatus,jdbcType=VARCHAR},
193
-      openid = #{openid,jdbcType=VARCHAR},
194
-      nickname = #{nickname,jdbcType=VARCHAR},
195 173
       create_date = #{createDate,jdbcType=TIMESTAMP},
196
-      verify_name = #{verifyName,jdbcType=VARCHAR}
174
+      verify_name = #{verifyName}
197 175
     where id = #{id,jdbcType=INTEGER}
198 176
   </update>
199 177
   <select id="selectByUserId" resultMap="BaseResultMap" parameterType="integer">

+ 11
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BuildingOwnerInfoController.java ファイルの表示

@@ -158,4 +158,15 @@ public class BuildingOwnerInfoController extends BaseController {
158 158
         ResponseBean userParent=iBuildingOwnerInfoService.updataApprove(paramets);
159 159
         return userParent;
160 160
     }
161
+
162
+    @ApiOperation(value = "小区楼栋资料表",nickname ="小区楼栋资料表")
163
+    @ApiImplicitParams({
164
+            @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="phase:期,building:楼栋 ,unit:单元,level:楼层,roomNo:户号, pageNum:每页显示多少条,pageSzie:当前页数"),
165
+            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")})
166
+    @RequestMapping(value="/buildinglist",method = RequestMethod.POST)
167
+    public ResponseBean buildinglist(@RequestBody String paramets,HttpSession session){
168
+        UserElement userElement = getUserElement(session);
169
+        ResponseBean buildinglist=iBuildingOwnerInfoService.buildinglist(paramets,userElement);
170
+        return buildinglist;
171
+    }
161 172
 }

+ 19
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpBuildingMapper.java ファイルの表示

@@ -0,0 +1,19 @@
1
+package com.community.huiju.dao;
2
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
3
+import com.baomidou.mybatisplus.core.metadata.IPage;
4
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
5
+import com.community.huiju.model.TpBuilding;
6
+import org.apache.ibatis.annotations.Mapper;
7
+import org.apache.ibatis.annotations.Param;
8
+
9
+@Mapper
10
+public interface TpBuildingMapper extends BaseMapper<TpBuilding> {
11
+
12
+    /**
13
+     * 楼栋资料库列表
14
+     * @param page
15
+     * @param tpBuilding
16
+     * @return
17
+     */
18
+    IPage<TpBuilding> buildinglist(Page<TpBuilding> page, @Param("tpBuilding") TpBuilding tpBuilding);
19
+}

+ 0
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpAnnouncement.java ファイルの表示

@@ -1,5 +1,4 @@
1 1
 package com.community.huiju.model;
2
-
3 2
 import com.baomidou.mybatisplus.annotation.IdType;
4 3
 import com.baomidou.mybatisplus.annotation.TableId;
5 4
 import com.baomidou.mybatisplus.annotation.TableName;

+ 29
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpBuilding.java ファイルの表示

@@ -0,0 +1,29 @@
1
+package com.community.huiju.model;
2
+
3
+import lombok.Data;
4
+import lombok.EqualsAndHashCode;
5
+import lombok.experimental.Accessors;
6
+
7
+import java.io.Serializable;
8
+import java.util.Date;
9
+@Data
10
+@EqualsAndHashCode(callSuper = false)
11
+@Accessors(chain = true)
12
+public class TpBuilding implements Serializable {
13
+    private Integer id;
14
+
15
+    private Integer communityId;
16
+
17
+    private String phase;
18
+
19
+    private String building;
20
+
21
+    private String unit;
22
+
23
+    private String level;
24
+
25
+    private String roomNo;
26
+
27
+    private Date createDate;
28
+
29
+}

+ 8
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBuildingOwnerInfoService.java ファイルの表示

@@ -87,4 +87,12 @@ public interface IBuildingOwnerInfoService extends IService<TpBuildingOwnerInfo>
87 87
      * @return
88 88
      */
89 89
     ResponseBean deleteIds(List<Integer> ids, Integer propertyUserId);
90
+
91
+    /**
92
+     * 楼栋资料库列表
93
+     * @param paramets
94
+     * @param userElement
95
+     * @return
96
+     */
97
+    ResponseBean buildinglist(String paramets, UserElement userElement);
90 98
 }

+ 30
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java ファイルの表示

@@ -24,8 +24,7 @@ import com.community.huiju.service.ITaUserService;
24 24
 import com.google.common.collect.Lists;
25 25
 import com.google.common.collect.Maps;
26 26
 import org.apache.commons.collections.CollectionUtils;
27
-import org.apache.ibatis.binding.MapperMethod;
28
-import org.apache.ibatis.session.SqlSession;
27
+
29 28
 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
30 29
 import org.apache.poi.ss.usermodel.Row;
31 30
 import org.apache.poi.ss.usermodel.Sheet;
@@ -78,6 +77,9 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
78 77
 
79 78
     @Autowired
80 79
     private IBillInvoiceService iBillInvoiceService;
80
+
81
+    @Autowired
82
+    private TpBuildingMapper tpBuildingMapper;
81 83
     
82 84
     public static final Logger logger = LoggerFactory.getLogger(BuildingOwnerInfoServiceImpl.class);
83 85
     
@@ -763,6 +765,32 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
763 765
         return responseBean;
764 766
     }
765 767
 
768
+    @Override
769
+    public ResponseBean buildinglist(String paramets, UserElement userElement) {
770
+        ResponseBean responseBean= new ResponseBean();
771
+
772
+        TpBuilding   tpBuilding= JSONObject.parseObject(paramets, TpBuilding.class);
773
+        JSONObject object= JSONObject.parseObject(paramets);
774
+
775
+        Integer pageNum = object.getInteger("pageNum");
776
+        Integer pageSize = object.getInteger("pageSize");
777
+
778
+        Page<TpBuilding> page = new Page<>();
779
+        page.setSize(pageSize == null ? 10 : pageSize);
780
+        page.setCurrent(pageNum == null ? 1 : pageNum);
781
+
782
+        IPage<TpBuilding> pageInfo = tpBuildingMapper.buildinglist(page,tpBuilding);
783
+        List<TpBuilding> tpBuildingList = pageInfo.getRecords();
784
+
785
+        Map<String, Object> map = Maps.newHashMap();
786
+        map.put("list", tpBuildingList);
787
+        map.put("total", pageInfo.getTotal());
788
+        map.put("pageNum", pageInfo.getCurrent());
789
+        map.put("pageSize", pageInfo.getSize());
790
+        responseBean.addSuccess(map);
791
+        return responseBean;
792
+    }
793
+
766 794
     /**
767 795
      * 根据 手机号 和 小区Id 查询用户
768 796
      * @param phone

+ 35
- 0
CODE/smart-community/property-api/src/main/resources/mapper/TpBuildingMapper.xml ファイルの表示

@@ -0,0 +1,35 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TpBuildingMapper" >
4
+  <sql id="Base_Column_List" >
5
+    id, community_id, phase, building, unit, `level`, room_no, create_date
6
+  </sql>
7
+  <select id="buildinglist" resultType="com.community.huiju.model.TpBuilding">
8
+    select
9
+    <include refid="Base_Column_List" />
10
+    from tp_building
11
+    <where>
12
+      <if test="tpBuilding.phase != null and tpBuilding.phase != ''" >
13
+        phase = #{tpBuilding.phase,jdbcType=VARCHAR}
14
+      </if>
15
+      <if test="tpBuilding.building != null and tpBuilding.building != ''" >
16
+        and building = #{tpBuilding.building,jdbcType=VARCHAR}
17
+      </if>
18
+      <if test="tpBuilding.unit != null and tpBuilding.unit != ''" >
19
+        and unit = #{tpBuilding.unit,jdbcType=VARCHAR}
20
+      </if>
21
+      <if test="tpBuilding.level != null and tpBuilding.level != ''" >
22
+        and `level` = #{tpBuilding.level,jdbcType=VARCHAR}
23
+      </if>
24
+      <if test="tpBuilding.roomNo != null and tpBuilding.roomNo != ''" >
25
+       and room_no = #{tpBuilding.roomNo,jdbcType=VARCHAR}
26
+      </if>
27
+    </where>
28
+    ORDER BY
29
+    phase ASC,
30
+    building ASC,
31
+    unit ASC,
32
+    `level` ASC,
33
+    room_no ASC
34
+  </select>
35
+</mapper>

+ 33
- 0
VUECODE/smart-property-manage/src/api/buildingOwnerInfo.js ファイルの表示

@@ -112,3 +112,36 @@ export function getByIdBuildingId(buildingId) {
112 112
   })
113 113
 }
114 114
 
115
+// 获取楼栋业主信息列表
116
+export function communityBuildinglist(data) {
117
+  return request({
118
+    url: '/buildinglist',
119
+    method: 'post',
120
+    data: {
121
+      phase: data.phase,
122
+      building: data.building,
123
+      unit: data.unit,
124
+      level: data.level,
125
+      roomNo: data.roomNo,
126
+      ownerName: data.ownerName,
127
+      pageNum: data.pageNum,
128
+      pageSize: data.pageSize
129
+    }
130
+  })
131
+}
132
+// 查询小区楼栋资料库
133
+export function BuildingHouse(data) {
134
+  const config = {
135
+    url: '/Buildinghouse',
136
+    method: 'post',
137
+    data: {
138
+      phase: data.phase,
139
+      building: data.building,
140
+      unit: data.unit,
141
+      level: data.level,
142
+      roomNo: data.roomNo
143
+    }
144
+  }
145
+  return request(config)
146
+}
147
+

+ 6
- 0
VUECODE/smart-property-manage/src/router/index.js ファイルの表示

@@ -36,6 +36,12 @@ export const constantRouterMap = [
36 36
         name: 'building-index',
37 37
         meta: { title: '楼栋业主资料库', icon: 'building' }
38 38
       },
39
+      {
40
+        path: '/building/buildingdata/index',
41
+        component: () => import('@/views/building/buildingdata/index'),
42
+        name: 'building-data',
43
+        meta: { title: '楼栋树管理', icon: 'building' }
44
+      },
39 45
       {
40 46
         path: '/owner/index',
41 47
         component: () => import('@/views/owner/index'),

+ 19
- 1
VUECODE/smart-property-manage/src/store/modules/buildingOwnerInfo.js ファイルの表示

@@ -1,5 +1,5 @@
1 1
 
2
-import { buildingAddress, buildingList, deleteBuilding, addBuilding, updateBuilding, getByIdBuildingId, userPassCertification, updataPassCertification } from '@/api/buildingOwnerInfo'
2
+import { buildingAddress, buildingList, deleteBuilding, addBuilding, updateBuilding, getByIdBuildingId, userPassCertification, updataPassCertification, communityBuildinglist, puildingHouse } from '@/api/buildingOwnerInfo'
3 3
 
4 4
 const buildingOwnerInfo = {
5 5
   state: {
@@ -86,6 +86,24 @@ const buildingOwnerInfo = {
86 86
           reject(error)
87 87
         })
88 88
       })
89
+    },
90
+    CommunityBuildinglist({ commit }, data) {
91
+      return new Promise((resolve, reject) => {
92
+        communityBuildinglist(data).then(response => {
93
+          resolve(response)
94
+        }).catch(error => {
95
+          reject(error)
96
+        })
97
+      })
98
+    },
99
+    BuildingHouse({ commit }, data) { // 小区楼栋资料 查询 楼栋/单元/楼层/户号
100
+      return new Promise((resolve, reject) => {
101
+        puildingHouse(data).then(response => {
102
+          resolve(response)
103
+        }).catch(error => {
104
+          reject(error)
105
+        })
106
+      })
89 107
     }
90 108
   }
91 109
 }

+ 221
- 0
VUECODE/smart-property-manage/src/views/building/buildingdata/index.vue ファイルの表示

@@ -0,0 +1,221 @@
1
+<template>
2
+    <div>
3
+            <el-form :inline="true"  class="form-listQuery">
4
+      <el-form-item label="楼盘库">
5
+        <el-select v-model="listQuery.phase" placeholder="期/区" @change="buildSelectChange(0)">
6
+          <!--<el-option label="选择楼栋" value="-1" />-->
7
+          <el-option
8
+            v-for="item in phaseList"
9
+            :key="item.id"
10
+            :label="item.phase"
11
+            :value="item.phase"/>
12
+        </el-select>
13
+        <el-select v-model="listQuery.building" placeholder="栋" @change="buildSelectChange(1)">
14
+          <!--<el-option label="选择楼栋" value="-1" />-->
15
+          <el-option
16
+            v-for="item in buildingList"
17
+            :key="item.id"
18
+            :label="item.building"
19
+            :value="item.building"/>
20
+        </el-select>
21
+        <el-select v-model="listQuery.unit" placeholder="单元" @change="buildSelectChange(2)">
22
+          <!--<el-option label="选择单元" value="-1" />-->
23
+          <el-option
24
+            v-for="item in unitList"
25
+            :key="item.id"
26
+            :label="item.unit"
27
+            :value="item.unit"/>
28
+        </el-select>
29
+        <el-select v-model="listQuery.level" placeholder="楼层" @change="buildSelectChange(3)">
30
+          <!--<el-option label="选择楼层" value="-1" />-->
31
+          <el-option
32
+            v-for="item in levelList"
33
+            :key="item.id"
34
+            :label="item.level"
35
+            :value="item.level"/>
36
+        </el-select>
37
+        <el-select v-model="listQuery.roomNo" placeholder="户号">
38
+          <!--<el-option label="选择户号" value="-1" />-->
39
+          <el-option
40
+            v-for="item in roomNoList"
41
+            :key="item.id"
42
+            :label="item.roomNo"
43
+            :value="item.roomNo"/>
44
+        </el-select>
45
+        <el-form-item label="业主名称">
46
+          <el-input v-model="listQuery.ownerName" placeholder="业主名称" />
47
+        </el-form-item>
48
+      </el-form-item>
49
+      <el-form-item>
50
+        <el-button type="info" @click="emptyListQuery">清空</el-button>
51
+        <el-button type="primary" @click="conditionsQuery">查询</el-button>
52
+      </el-form-item>       
53
+    </el-form>
54
+  <el-table
55
+    :data="tableData"
56
+    style="width: 100%"> 
57
+    <el-table-column
58
+      type="selection"
59
+      width="55">
60
+    </el-table-column>
61
+    <!-- <el-table-column type="expand">
62
+      <template slot-scope="props">
63
+        <el-form label-position="left" inline class="demo-table-expand">
64
+          <el-form-item label="楼层">
65
+            <span>{{ props.row.level }}</span>
66
+          </el-form-item>
67
+          <el-form-item label="户号">
68
+            <span>{{ props.row.roomNo }}</span>
69
+            <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
70
+             <el-button
71
+          size="mini"
72
+          type="danger"
73
+          @click="handleDelete(scope.$index, scope.row)">删除</el-button>
74
+          </el-form-item> 
75
+        </el-form>
76
+      </template>
77
+    </el-table-column> -->
78
+    <el-table-column
79
+      label="期"
80
+      prop="phase">
81
+    </el-table-column>
82
+    <el-table-column
83
+      label="楼栋"
84
+      prop="building">
85
+    </el-table-column>
86
+    <el-table-column
87
+      label="单元"
88
+      prop="unit">
89
+    </el-table-column>
90
+    <el-table-column
91
+      label="楼层"
92
+      prop="level">
93
+    </el-table-column>
94
+    <el-table-column
95
+      label="户号"
96
+      prop="roomNo">
97
+    </el-table-column>
98
+    </el-table>
99
+   <div class="block">
100
+        <el-pagination
101
+        :current-page="listQuery.pageNum"
102
+        :page-sizes="[10, 20, 50, 100]"
103
+        :page-size="listQuery.pageSize"
104
+        :total="total"
105
+        layout="total, sizes, prev, pager, next, jumper"
106
+        @size-change="handleSizeChange"
107
+        @current-change="handleCurrentChange"/>
108
+    </div>
109
+  </div>
110
+</template>
111
+
112
+<style>
113
+  .demo-table-expand {
114
+    font-size: 0;
115
+  }
116
+  .demo-table-expand label {
117
+    width: 90px;
118
+    color: #99a9bf;
119
+  }
120
+  .demo-table-expand .el-form-item {
121
+    margin-right: 0;
122
+    margin-bottom: 0;
123
+    width: 50%;
124
+  }
125
+</style>
126
+
127
+
128
+<script>
129
+  export default {
130
+    data() {
131
+      return {
132
+        listQuery: {
133
+        phase: '',
134
+        building: '',
135
+        unit: '',
136
+        level: '',
137
+        roomNo: '',
138
+        ownerName: '',
139
+        pageNum: 1,
140
+        pageSize: 10
141
+      },
142
+      total: 0, // 数据总数
143
+      phaseList: [], // 期 集合
144
+      buildingInfoLists: [], // 表格数据集合
145
+      buildingList: [], // seletc 楼栋集合
146
+      unitList: [], // seletc 单元集合
147
+      levelList: [], // seletc 层 集合
148
+      roomNoList: [], //  seletc 户号集合
149
+      listLoading: true, // 加载圈
150
+      deleteIds: [], // 需要删除的id集合
151
+      tableData: []
152
+      }
153
+    },
154
+      mounted() {
155
+    // 获取数据
156
+    this.dataQuery()
157
+  },
158
+    methods: {
159
+    dataQuery() { // 查询数据
160
+        this.listLoading = true
161
+        this.$store.dispatch('CommunityBuildinglist', this.listQuery).then((res) => {
162
+        const resData = res.data
163
+        this.userPassCertification = resData.list
164
+        this.listQuery.pageNum = resData.pageNum
165
+        this.listQuery.pageSize = 10
166
+        this.total = resData.total
167
+        this.tableData = resData.list
168
+        console.log('this.tableData',this.tableData)
169
+        this.listLoading = false
170
+      }).catch(() => {
171
+        this.listLoading = false
172
+        console.log('error BuildingInfoList')
173
+      })
174
+    }    
175
+    },
176
+    buildSelectChange(value) { // select 的 change
177
+      switch (value) {
178
+        case 0: // 查询栋
179
+          this.buildingList = []
180
+          this.unitList = []
181
+          this.levelList = []
182
+          this.roomNoList = []
183
+          this.listQuery.building = ''
184
+          this.listQuery.unit = ''
185
+          this.listQuery.level = ''
186
+          this.listQuery.roomNo = ''
187
+          this.getBuild()
188
+          break
189
+        case 1: // 查询 单元
190
+          this.unitList = []
191
+          this.levelList = []
192
+          this.roomNoList = []
193
+          this.listQuery.unit = ''
194
+          this.listQuery.level = ''
195
+          this.listQuery.roomNo = ''
196
+          this.getUnit()
197
+          break
198
+        case 2: // 查询 楼层
199
+          this.levelList = []
200
+          this.roomNoList = []
201
+          this.listQuery.level = ''
202
+          this.listQuery.roomNo = ''
203
+          this.getLevel()
204
+          break
205
+        case 3: // 查询 户号
206
+          this.roomNoList = []
207
+          this.listQuery.roomNo = ''
208
+          this.getRoomNo()
209
+          break
210
+      }
211
+    },
212
+  }
213
+  
214
+</script>
215
+<style>
216
+.block{
217
+  display: flex;
218
+  justify-content: flex-end;
219
+  margin-top: 10px;
220
+}
221
+</style>