Browse Source

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

魏熙美 6 years ago
parent
commit
2f2011fde6

+ 7
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BuildingOwnerInfoController.java View File

@@ -138,7 +138,13 @@ public class BuildingOwnerInfoController extends BaseController {
138 138
     public ResponseBean submitExcel(@RequestParam("file") MultipartFile file, HttpSession session) {
139 139
         ResponseBean responseBean = new ResponseBean();
140 140
         UserElement userElement = getUserElement(session);
141
-        responseBean = iBuildingOwnerInfoService.submitExcelData(file,userElement);
141
+        try {
142
+            responseBean = iBuildingOwnerInfoService.submitExcelData(file,userElement);
143
+        }catch (Exception e){
144
+            responseBean.addError("导入数据失败" + e.getMessage());
145
+            e.printStackTrace();
146
+        }
147
+        
142 148
         return responseBean;
143 149
     }
144 150
 

+ 1
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaUserMapper.java View File

@@ -38,10 +38,9 @@ public interface TaUserMapper extends BaseMapper<TaUser> {
38 38
     /**
39 39
      * 查看是否有未认证数据
40 40
      * @param ownerTel
41
-     * @param communityId
42 41
      * @return
43 42
      */
44
-    TaUser selectByTel(@Param("loginName") String ownerTel,@Param("communityId") Integer communityId);
43
+    TaUser selectByTel(@Param("loginName") String ownerTel);
45 44
     
46 45
     int batchUpdate(List<TaUser> updataTaUserList);
47 46
     

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

@@ -0,0 +1,18 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.TaUserVerify;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * app端用户审核表,存放用户的角色还有房产信息 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author jobob
13
+ * @since 2019-04-03
14
+ */
15
+@Mapper
16
+public interface TaUserVerifyMapper extends BaseMapper<TaUserVerify> {
17
+
18
+}

+ 111
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaUserVerify.java View File

@@ -0,0 +1,111 @@
1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import lombok.Data;
6
+import lombok.EqualsAndHashCode;
7
+import lombok.experimental.Accessors;
8
+
9
+import java.io.Serializable;
10
+import java.time.LocalDateTime;
11
+
12
+/**
13
+ * <p>
14
+ * app端用户审核表,存放用户的角色还有房产信息
15
+ * </p>
16
+ *
17
+ * @author jobob
18
+ * @since 2019-04-03
19
+ */
20
+@Data
21
+@EqualsAndHashCode(callSuper = false)
22
+@Accessors(chain = true)
23
+public class TaUserVerify implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+    
27
+    @TableId(value = "id", type = IdType.AUTO)
28
+    private Integer id;
29
+    
30
+    /**
31
+     * 用户ID
32
+     */
33
+    private Integer userId;
34
+
35
+    /**
36
+     * 小区id
37
+     */
38
+    private Integer communityId;
39
+
40
+    /**
41
+     * 角色ID
42
+     */
43
+    private Integer roleId;
44
+
45
+    /**
46
+     * 期ID
47
+     */
48
+    private Integer phaseId;
49
+
50
+    /**
51
+     * 期
52
+     */
53
+    private String phaseName;
54
+
55
+    /**
56
+     * 楼栋ID
57
+     */
58
+    private Integer buildingId;
59
+
60
+    /**
61
+     * 楼栋
62
+     */
63
+    private String buildingName;
64
+
65
+    /**
66
+     * 单元
67
+     */
68
+    private Integer unitId;
69
+
70
+    /**
71
+     * 单元
72
+     */
73
+    private String unitName;
74
+
75
+    /**
76
+     * 楼层id
77
+     */
78
+    private Integer levelId;
79
+
80
+    /**
81
+     * 楼层
82
+     */
83
+    private String levelName;
84
+
85
+    /**
86
+     * 户号ID
87
+     */
88
+    private Integer roomNoId;
89
+
90
+    /**
91
+     * 户号
92
+     */
93
+    private String roomNoName;
94
+
95
+    /**
96
+     * 认证状态  0 是未审核   1是审核通过   2是审核不通过
97
+     */
98
+    private String verifyStatus;
99
+
100
+    /**
101
+     * 创建时间
102
+     */
103
+    private LocalDateTime createDate;
104
+
105
+    /**
106
+     * 审核人的姓名
107
+     */
108
+    private String verifyName;
109
+
110
+
111
+}

+ 16
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpBuildingOwnerInfo.java View File

@@ -1,6 +1,7 @@
1 1
 package com.community.huiju.model;
2 2
 
3 3
 import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableField;
4 5
 import com.baomidou.mybatisplus.annotation.TableId;
5 6
 import com.baomidou.mybatisplus.annotation.TableName;
6 7
 import lombok.Data;
@@ -131,5 +132,19 @@ public class TpBuildingOwnerInfo implements Serializable {
131 132
      * 更新时间
132 133
      */
133 134
     private LocalDateTime updateDate;
134
-
135
+    
136
+    /**
137
+     * 1代表的是户号的树信息
138
+     */
139
+    private String treeStatus;
140
+    
141
+    /**
142
+     * 1代表的是资料库信息
143
+     */
144
+    private String ownerStatus;
145
+    /**
146
+     * 身份
147
+     */
148
+    @TableField(exist = false)
149
+    private String roleName;
135 150
 }

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

@@ -53,6 +53,7 @@ import java.util.stream.Collectors;
53 53
  */
54 54
 @Service("iBuildingOwnerInfoService")
55 55
 @Slf4j
56
+@Transactional
56 57
 public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInfoMapper, TpBuildingOwnerInfo> implements IBuildingOwnerInfoService {
57 58
 
58 59
     @Autowired
@@ -79,6 +80,9 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
79 80
     @Autowired
80 81
     private TpBuildingMapper tpBuildingMapper;
81 82
     
83
+    @Autowired
84
+    private TaUserVerifyMapper taUserVerifyMapper;
85
+    
82 86
     public static final Logger logger = LoggerFactory.getLogger(BuildingOwnerInfoServiceImpl.class);
83 87
     
84 88
     @Override
@@ -97,20 +101,21 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
97 101
         Map<String, Object> map = Maps.newHashMap();
98 102
         // 小区Id
99 103
         map.put("community_id", userElement.getCommunityId());
104
+        map.put("owner_status", "1");
100 105
         // 期
101
-        map.put("phase", tpBuildingOwnerInfo.getPhaseName());
106
+        //map.put("phase", tpBuildingOwnerInfo.getPhaseName());
102 107
         // 栋
103
-        map.put("building", tpBuildingOwnerInfo.getBuildingName());
108
+        //map.put("building", tpBuildingOwnerInfo.getBuildingName());
104 109
         // 单元
105
-        map.put("unit", tpBuildingOwnerInfo.getUnitName());
110
+        //map.put("unit", tpBuildingOwnerInfo.getUnitName());
106 111
         // 楼层
107
-        map.put("level", tpBuildingOwnerInfo.getLevelName());
112
+        //map.put("level", tpBuildingOwnerInfo.getLevelName());
108 113
         // 房号
109
-        map.put("room_no", tpBuildingOwnerInfo.getName());
114
+        //map.put("room_no", tpBuildingOwnerInfo.getName());
110 115
 
111 116
         QueryWrapper<TpBuildingOwnerInfo> queryWrapper = new QueryWrapper<>();
112 117
         queryWrapper.allEq(map,false);
113
-        queryWrapper.like(tpBuildingOwnerInfo.getOwnerName() != null,"owner_name", tpBuildingOwnerInfo.getOwnerName());
118
+        //queryWrapper.like(tpBuildingOwnerInfo.getOwnerName() != null,"owner_name", tpBuildingOwnerInfo.getOwnerName());
114 119
         queryWrapper.orderByDesc("create_date");
115 120
 
116 121
         // 分页查询
@@ -385,39 +390,19 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
385 390
 
386 391
         // 小区
387 392
         map.put("community_id", communityId);
393
+        map.put("owner_status", "1");
388 394
         // 期
389
-        map.put("phase", tpBuildingOwnerInfo.getPhaseName());
395
+        //map.put("phase", tpBuildingOwnerInfo.getPhaseName());
390 396
         // 栋
391
-        map.put("building", tpBuildingOwnerInfo.getBuildingName());
397
+        //map.put("building", tpBuildingOwnerInfo.getBuildingName());
392 398
         // 单元
393
-        map.put("unit", tpBuildingOwnerInfo.getUnitName());
399
+        //map.put("unit", tpBuildingOwnerInfo.getUnitName());
394 400
         // 楼层
395
-        map.put("level", tpBuildingOwnerInfo.getLevelName());
401
+        //map.put("level", tpBuildingOwnerInfo.getLevelName());
396 402
 
397 403
         QueryWrapper<TpBuildingOwnerInfo> queryWrapper = new QueryWrapper<>();
398 404
         queryWrapper.allEq(map, false);
399 405
 
400
-        /**
401
-         * 通过分组来去重
402
-         *
403
-         * 1. phase 为空表示为 phase 字段进行分组
404
-         * 2. building 为空表示为 building 字段进行分组
405
-         * 3. unit 为空表示为 unit 字段进行分组
406
-         * 4. level 为空表示为 level 字段进行分组
407
-         * 5. room_no 为空表示为 room_no 字段进行分组
408
-         */
409
-        if (null == tpBuildingOwnerInfo.getPhaseName() || "".equals(tpBuildingOwnerInfo.getPhaseName())) {
410
-            queryWrapper.groupBy("phase");
411
-        } else if (null == tpBuildingOwnerInfo.getBuildingName() || "".equals(tpBuildingOwnerInfo.getBuildingName())) {
412
-            queryWrapper.groupBy("building");
413
-        } else if (null == tpBuildingOwnerInfo.getUnitName() || "".equals(tpBuildingOwnerInfo.getUnitName())) {
414
-            queryWrapper.groupBy("unit");
415
-        } else if (null == tpBuildingOwnerInfo.getLevelName() || "".equals(tpBuildingOwnerInfo.getLevelName())) {
416
-            queryWrapper.groupBy("level");
417
-        } else if (null == tpBuildingOwnerInfo.getName() || "".equals(tpBuildingOwnerInfo.getName())) {
418
-            queryWrapper.groupBy("room_no");
419
-        }
420
-
421 406
         /**
422 407
          * 1.如果 楼栋值不存在表示根据小区Id查询时查询楼栋!
423 408
          * 2.如果 楼栋存在表示查询单元
@@ -454,41 +439,92 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
454 439
         //获取要上传的数据
455 440
         Map<String,Object> map = (Map<String, Object>) responseBean.getData();
456 441
         List<TpBuildingOwnerInfo> list = (List<TpBuildingOwnerInfo>) map.get("list");
457
-        list.stream().forEach(BuildingOwnerInfo -> {
458
-            BuildingOwnerInfo.setCommunityId(userElement.getCommunityId());
459
-            BuildingOwnerInfo.setVerifyStatus(Constant.UN_VERIFY_STATUS);
460
-            BuildingOwnerInfo.setCreateUser(userElement.getId());
461
-            BuildingOwnerInfo.setCreateDate(LocalDateTime.now());
462
-            BuildingOwnerInfo.setUpdateUser(userElement.getId());
463
-            BuildingOwnerInfo.setUpdateDate(LocalDateTime.now());
464
-        });
465
-        //批量插入
466
-	    tpBuildingOwnerInfoMapper.batchInsert(list);
467
-        //判断是否认证过
468
-        List<TpBuildingOwnerInfo> updateList = new ArrayList<TpBuildingOwnerInfo>();
469
-        List<TaUser> updataTaUserList = new ArrayList<TaUser>();
470
-        list.stream().forEach(BuildingOwnerInfo -> {
471
-            TaUser taUser = taUserMapper.selectByTel(BuildingOwnerInfo.getOwnerTel(),BuildingOwnerInfo.getCommunityId());
472
-            if (null != taUser){
473
-                BuildingOwnerInfo.setVerifyStatus(Constant.VERIFY_STATUS);
474
-                updateList.add(BuildingOwnerInfo);
475
-                taUser.setVerifyStatus(Constant.VERIFY_STATUS);
476
-                taUser.setBuildingOwnerInfoId(BuildingOwnerInfo.getId());
477
-                updataTaUserList.add(taUser);
478
-            }
479
-        });
442
+        
480 443
         //批量更新
481
-        if (updateList.size() > 0){
482
-	        tpBuildingOwnerInfoMapper.batchUpdate(updateList);
483
-        }
484
-        if (updataTaUserList.size() > 0){
485
-            taUserMapper.batchUpdate(updataTaUserList);
486
-            taUserMapper.batchUpdateRole(updataTaUserList);
444
+        tpBuildingOwnerInfoMapper.batchUpdate(list);
445
+        
446
+        //构造数据
447
+        for (TpBuildingOwnerInfo tpBuildingOwnerInfo : list){
448
+            //根据手机号查询这个手机号是否注册
449
+            TaUser taUser = taUserMapper.selectByTel(tpBuildingOwnerInfo.getOwnerTel());
450
+            if (null == taUser){
451
+                //插入新用户并审核通过
452
+                addNewUser(tpBuildingOwnerInfo,userElement);
453
+            }else {
454
+                //已经有用户的情况下看是否审核通过,是否要添加新的房产
455
+                checkUserVerify(taUser,tpBuildingOwnerInfo,userElement);
456
+            }
487 457
         }
488 458
         responseBean.addSuccess("success");
489 459
         return responseBean;
490 460
     }
491
-
461
+    
462
+    private void checkUserVerify(TaUser taUser, TpBuildingOwnerInfo tpBuildingOwnerInfo, UserElement userElement) {
463
+        //有用户的情况下查看是否有申请的房产
464
+        QueryWrapper<TaUserVerify> queryWrapper = new QueryWrapper<>();
465
+        queryWrapper.eq("community_id",userElement.getCommunityId());
466
+        queryWrapper.eq("user_id",taUser.getId());
467
+        List<TaUserVerify> verifyList = taUserVerifyMapper.selectList(queryWrapper);
468
+        if (verifyList.size() > 0){
469
+            verifyList.stream().forEach(e -> {
470
+                if (e.getRoomNoId().equals(tpBuildingOwnerInfo.getId()) && e.getVerifyStatus().equals("0")){
471
+                    e.setVerifyStatus("1");
472
+                    e.setVerifyName(userElement.getUserName());
473
+                    taUserVerifyMapper.updateById(e);
474
+                }
475
+            });
476
+            return;
477
+        }
478
+        //插入一条房产数据
479
+        saveVerifyData(taUser.getId(),tpBuildingOwnerInfo,userElement);
480
+    }
481
+    
482
+    /**
483
+     * 插入新用户并审核通过
484
+     * @param tpBuildingOwnerInfo
485
+     * @param userElement
486
+     */
487
+    private void addNewUser(TpBuildingOwnerInfo tpBuildingOwnerInfo, UserElement userElement) {
488
+        //插入用户
489
+        TaUser taUser = new TaUser();
490
+        taUser.setUserName(tpBuildingOwnerInfo.getOwnerName());
491
+        taUser.setLoginName(tpBuildingOwnerInfo.getOwnerTel());
492
+        taUser.setStatus("1");
493
+        taUser.setCreateDate(LocalDateTime.now());
494
+        taUser.setFaceStatus("0");
495
+        taUserMapper.insert(taUser);
496
+        //审核通过
497
+        saveVerifyData(taUser.getId(),tpBuildingOwnerInfo,userElement);
498
+        
499
+    }
500
+    
501
+    private void saveVerifyData(Integer userId, TpBuildingOwnerInfo tpBuildingOwnerInfo, UserElement userElement) {
502
+        TaUserVerify taUserVerify = new TaUserVerify();
503
+        taUserVerify.setUserId(userId);
504
+        taUserVerify.setCommunityId(userElement.getCommunityId());
505
+        if (tpBuildingOwnerInfo.getRoleName().equals("户主")){
506
+            taUserVerify.setRoleId(1);
507
+        }else if (tpBuildingOwnerInfo.getRoleName().equals("家属")){
508
+            taUserVerify.setRoleId(3);
509
+        }else if (tpBuildingOwnerInfo.getRoleName().equals("租客")){
510
+            taUserVerify.setRoleId(2);
511
+        }
512
+        taUserVerify.setPhaseId(tpBuildingOwnerInfo.getPhaseId());
513
+        taUserVerify.setPhaseName(tpBuildingOwnerInfo.getPhaseName());
514
+        taUserVerify.setBuildingId(tpBuildingOwnerInfo.getBuildingId());
515
+        taUserVerify.setBuildingName(tpBuildingOwnerInfo.getBuildingName());
516
+        taUserVerify.setUnitId(tpBuildingOwnerInfo.getUnitId());
517
+        taUserVerify.setUnitName(tpBuildingOwnerInfo.getUnitName());
518
+        taUserVerify.setLevelId(tpBuildingOwnerInfo.getLevelId());
519
+        taUserVerify.setLevelName(tpBuildingOwnerInfo.getLevelName());
520
+        taUserVerify.setRoomNoId(tpBuildingOwnerInfo.getId());
521
+        taUserVerify.setRoomNoName(tpBuildingOwnerInfo.getName());
522
+        taUserVerify.setVerifyStatus("1");
523
+        taUserVerify.setCreateDate(LocalDateTime.now());
524
+        taUserVerify.setVerifyName(userElement.getUserName());
525
+        taUserVerifyMapper.insert(taUserVerify);
526
+    }
527
+    
492 528
     @Override
493 529
     public ResponseBean updataApprove(String paramets) {
494 530
         ResponseBean response = new ResponseBean();
@@ -562,7 +598,6 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
562 598
             //从第一行开始第一行一般是标题
563 599
             for (int j = 3; j <= lastRowNum; j++) {
564 600
                 Row row = sheet.getRow(j);
565
-                TpBuildingOwnerInfo tpBuildingOwnerInfo = new TpBuildingOwnerInfo();
566 601
                 String buildingInfo = row.getCell(0).getStringCellValue().trim();
567 602
                 String roomNoId = row.getCell(1).getStringCellValue().trim();
568 603
                 String ownerName = row.getCell(2).getStringCellValue().trim();
@@ -610,14 +645,11 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
610 645
                 //把数据塞入temList校验是否有重复的数据
611 646
                 temBuildingList.add(roomNoId);
612 647
                 //构建数据
613
-                tpBuildingOwnerInfo.setPhaseName(phase);
614
-                tpBuildingOwnerInfo.setBuildingName(building);
615
-                tpBuildingOwnerInfo.setUnitName(unit);
616
-                tpBuildingOwnerInfo.setLevelName(level);
617
-                tpBuildingOwnerInfo.setName(roomNo);
618
-                tpBuildingOwnerInfo.setOwnerName(ownerName);
619
-                tpBuildingOwnerInfo.setOwnerTel(ownerTel);
620
-                list.add(tpBuildingOwnerInfo);
648
+                checkOwnerInfo.setRoleName(ownerRole);
649
+                checkOwnerInfo.setOwnerName(ownerName);
650
+                checkOwnerInfo.setOwnerTel(ownerTel);
651
+                checkOwnerInfo.setOwnerStatus("1");
652
+                list.add(checkOwnerInfo);
621 653
             }
622 654
         }
623 655
         //构建分页

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

@@ -351,6 +351,7 @@ public class BuildingTreeServiceImpl implements BuildingTreeServiceI {
351 351
 				tpBuildingOwnerInfoNew.setLevelName(lastLevelName);
352 352
 				tpBuildingOwnerInfoNew.setName(tpBuildingOwnerInfo.getName());
353 353
 				tpBuildingOwnerInfoNew.setCreateDate(LocalDateTime.now());
354
+				tpBuildingOwnerInfoNew.setTreeStatus("1");
354 355
 				tpBuildingOwnerInfoMapper.insert(tpBuildingOwnerInfoNew);
355 356
 			}
356 357
 		}

+ 0
- 1
CODE/smart-community/property-api/src/main/resources/mapper/TaUserMapper.xml View File

@@ -315,7 +315,6 @@
315 315
     <include refid="Base_Column_List" />
316 316
     from ta_user
317 317
     where login_name = #{loginName,jdbcType=VARCHAR}
318
-    and community_id = #{communityId,jdbcType=INTEGER}
319 318
     and verify_status = 0
320 319
   </select>
321 320
 

+ 5
- 0
CODE/smart-community/property-api/src/main/resources/mapper/TaUserVerifyMapper.xml View File

@@ -0,0 +1,5 @@
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.TaUserVerifyMapper">
4
+
5
+</mapper>

+ 4
- 2
CODE/smart-community/property-api/src/main/resources/mapper/TpBuildingOwnerInfoMapper.xml View File

@@ -50,9 +50,11 @@
50 50
         <foreach collection="list" item="item" index="index" open="" close="" separator=";">
51 51
             update tp_building_owner_info
52 52
             <set>
53
-                verify_status=${item.verifyStatus}
53
+                owner_name = #{item.ownerName},
54
+                owner_tel = #{item.ownerTel},
55
+                owner_status = #{item.ownerStatus}
54 56
             </set>
55
-            where id = ${item.id}
57
+            where id = #{item.id}
56 58
         </foreach>
57 59
     </update>
58 60
 

+ 8
- 5
VUECODE/smart-property-manage/src/views/building/batch/batchImport.vue View File

@@ -14,23 +14,26 @@
14 14
     </el-form>
15 15
     <el-table ref="multipleTable" :data="list" border tooltip-effect="dark" style="width: 100%; margin-top: 20px;">
16 16
       <el-table-column label="期/区" align="center">
17
-        <template slot-scope="scope">{{ scope.row.phase }}</template>
17
+        <template slot-scope="scope">{{ scope.row.phaseName }}</template>
18 18
       </el-table-column>
19 19
       <el-table-column label="栋" align="center">
20
-        <template slot-scope="scope">{{ scope.row.building }}</template>
20
+        <template slot-scope="scope">{{ scope.row.buildingName }}</template>
21 21
       </el-table-column>
22 22
       <el-table-column label="单元" align="center">
23
-        <template slot-scope="scope">{{ scope.row.unit }}</template>
23
+        <template slot-scope="scope">{{ scope.row.unitName }}</template>
24 24
       </el-table-column>
25 25
       <el-table-column label="楼层" align="center">
26
-        <template slot-scope="scope">{{ scope.row.level }}</template>
26
+        <template slot-scope="scope">{{ scope.row.levelName }}</template>
27 27
       </el-table-column>
28 28
       <el-table-column label="户号" align="center">
29
-        <template slot-scope="scope">{{ scope.row.roomNo }}</template>
29
+        <template slot-scope="scope">{{ scope.row.name }}</template>
30 30
       </el-table-column>
31 31
       <el-table-column label="业主姓名" align="center">
32 32
         <template slot-scope="scope">{{ scope.row.ownerName }}</template>
33 33
       </el-table-column>
34
+      <el-table-column label="身份" align="center">
35
+        <template slot-scope="scope">{{ scope.row.roleName }}</template>
36
+      </el-table-column>
34 37
       <el-table-column label="手机号码" align="center">
35 38
         <template slot-scope="scope">{{ scope.row.ownerTel }}</template>
36 39
       </el-table-column>

+ 317
- 293
文档/MYSQL/smartCommunity.pdb
File diff suppressed because it is too large
View File


+ 317
- 293
文档/MYSQL/smartCommunity.pdm
File diff suppressed because it is too large
View File