瀏覽代碼

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

傅行帆 6 年之前
父節點
當前提交
c5940caf27
共有 18 個檔案被更改,包括 185 行新增40 行删除
  1. 5
    7
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/IBuildingOwnerInfoController.java
  2. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserVerifyController.java
  3. 12
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingMapper.java
  4. 18
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java
  5. 16
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpLevelMapper.java
  6. 14
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpPhaseMapper.java
  7. 15
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpUnitMapper.java
  8. 2
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/IBuildingOwnerInfo.java
  9. 45
    10
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoImpl.java
  10. 42
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServicelmpl.java
  11. 2
    2
      CODE/smart-community/app-api/src/main/resources/mapper/TaUserVerifyMapper.xml
  12. 2
    2
      CODE/smart-community/app-api/src/main/resources/mapper/TpBuildingMapper.xml
  13. 2
    2
      CODE/smart-community/app-api/src/main/resources/mapper/TpBuildingOwnerInfoMapper.xml
  14. 3
    3
      CODE/smart-community/app-api/src/main/resources/mapper/TpLevelMapper.xml
  15. 2
    2
      CODE/smart-community/app-api/src/main/resources/mapper/TpPhaseMapper.xml
  16. 2
    2
      CODE/smart-community/app-api/src/main/resources/mapper/TpUnitMapper.xml
  17. 2
    2
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java
  18. 二進制
      CODE/smart-community/property-api/src/main/resources/业主资料库.xlsx

+ 5
- 7
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/IBuildingOwnerInfoController.java 查看文件

32
     private IBuildingOwnerInfo iBuildingOwnerInfo;
32
     private IBuildingOwnerInfo iBuildingOwnerInfo;
33
 
33
 
34
     @RequestMapping(value = "/building/select/address", method = RequestMethod.GET)
34
     @RequestMapping(value = "/building/select/address", method = RequestMethod.GET)
35
-    @ApiOperation(value = "根据 小区/期/楼栋/单元/楼层/户号", notes = "根据 小区/期/楼栋/单元/楼层/户号")
35
+    @ApiOperation(value = "根据 小区/期/楼栋/单元/楼层/户号 (申请注册绑定)", notes = "根据 小区/期/楼栋/单元/楼层/户号")
36
     @ApiImplicitParams({
36
     @ApiImplicitParams({
37
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "communityId", value = "小区"),
37
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "communityId", value = "小区"),
38
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "phaseId", value = "期"),
38
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "phaseId", value = "期"),
39
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "buildingId", value = "楼栋"),
39
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "buildingId", value = "楼栋"),
40
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "unitId", value = "单元"),
40
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "unitId", value = "单元"),
41
-            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "levelId", value = "楼层"),
42
-            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "roomNoId", value = "户号"),
41
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "levelId", value = "楼层")
43
     })
42
     })
44
     public ResponseBean selectByAddress(@RequestParam("communityId") Integer communityId,
43
     public ResponseBean selectByAddress(@RequestParam("communityId") Integer communityId,
45
                                         @RequestParam(value = "phaseId", required = false) Integer phaseId,
44
                                         @RequestParam(value = "phaseId", required = false) Integer phaseId,
46
                                         @RequestParam(value = "buildingId",required = false) Integer buildingId,
45
                                         @RequestParam(value = "buildingId",required = false) Integer buildingId,
47
                                         @RequestParam(value = "unitId", required = false) Integer unitId,
46
                                         @RequestParam(value = "unitId", required = false) Integer unitId,
48
-                                        @RequestParam(value = "levelId", required = false) Integer levelId,
49
-                                        @RequestParam(value = "roomNoId", required = false) Integer roomNoId) {
47
+                                        @RequestParam(value = "levelId", required = false) Integer levelId) {
50
 
48
 
51
         ResponseBean responseBean = new ResponseBean();
49
         ResponseBean responseBean = new ResponseBean();
52
-        responseBean = iBuildingOwnerInfo.selectBuildList(communityId, phaseId, buildingId, unitId, levelId, roomNoId);
50
+        responseBean = iBuildingOwnerInfo.selectBuildList(communityId, phaseId, buildingId, unitId, levelId);
53
         return responseBean;
51
         return responseBean;
54
 
52
 
55
     }
53
     }
56
 
54
 
57
     @RequestMapping(value = "/building/has", method = RequestMethod.GET)
55
     @RequestMapping(value = "/building/has", method = RequestMethod.GET)
58
-    @ApiOperation(value = "根据 小区、期、楼栋、单元、楼层、户号", notes = "根据 小区、期、楼栋、单元、楼层、户号")
56
+    @ApiOperation(value = "根据 小区、期、楼栋、单元、楼层、户号 (并校验这个用户,是否绑定了这个房产)", notes = "根据 小区、期、楼栋、单元、楼层、户号")
59
     @ApiImplicitParams({
57
     @ApiImplicitParams({
60
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "phaseId", value = "期"),
58
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "phaseId", value = "期"),
61
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "buildingId", value = "楼栋"),
59
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "buildingId", value = "楼栋"),

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserVerifyController.java 查看文件

42
     @ApiOperation(value = "添加一个审核的房产", notes = "添加一个审核的房产")
42
     @ApiOperation(value = "添加一个审核的房产", notes = "添加一个审核的房产")
43
     @ApiImplicitParams({
43
     @ApiImplicitParams({
44
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
44
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
45
-            @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter", value = "roleName角色名称;phase期;building楼栋;unit单元;level楼层;roomNo户号")
45
+            @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter", value = "roleName角色名称;phaseId期;buildingId楼栋;unitId单元;levelId楼层;roomNoId户号")
46
     })
46
     })
47
     public ResponseBean addUserVerify(@RequestBody String parameter, HttpSession session) {
47
     public ResponseBean addUserVerify(@RequestBody String parameter, HttpSession session) {
48
         ResponseBean responseBean = new ResponseBean();
48
         ResponseBean responseBean = new ResponseBean();

+ 12
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingMapper.java 查看文件

3
 
3
 
4
 import com.community.huiju.model.TpBuilding;
4
 import com.community.huiju.model.TpBuilding;
5
 import org.apache.ibatis.annotations.Mapper;
5
 import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+import org.apache.ibatis.annotations.ResultMap;
8
+import org.apache.ibatis.annotations.Select;
6
 
9
 
7
 import java.util.List;
10
 import java.util.List;
8
 
11
 
20
 
23
 
21
     int updateByPrimaryKey(TpBuilding record);
24
     int updateByPrimaryKey(TpBuilding record);
22
 
25
 
23
-
26
+    /**
27
+     * 根据小区id,期id
28
+     * @param communityId
29
+     * @param phaseId
30
+     * @return
31
+     */
32
+    @ResultMap("BaseResultMap")
33
+    @Select("select * from tp_building where community_id=#{communityId} and phase_id=#{phaseId}")
34
+    List<TpBuilding> selectByAddress(@Param("communityId") Integer communityId, @Param("phaseId") Integer phaseId);
24
 
35
 
25
 }
36
 }

+ 18
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java 查看文件

44
     @ResultMap("BaseResultMap")
44
     @ResultMap("BaseResultMap")
45
     @Select("select * from tp_building_owner_info where community_id=#{communityId}" +
45
     @Select("select * from tp_building_owner_info where community_id=#{communityId}" +
46
             " and phase_id=#{phaseId} and building_id=#{buildingId} and unit_id=#{unitId}" +
46
             " and phase_id=#{phaseId} and building_id=#{buildingId} and unit_id=#{unitId}" +
47
-            " and level_id=#{levelId} and room_no_id=#{roomNoId} and verify_status=1")
47
+            " and level_id=#{levelId} and id=#{roomNoId} and verify_status=1")
48
     TpBuildingOwnerInfo selectCommunityIdAndAddress(@Param("communityId") Integer communityId, @Param("phaseId") Integer phaseId,
48
     TpBuildingOwnerInfo selectCommunityIdAndAddress(@Param("communityId") Integer communityId, @Param("phaseId") Integer phaseId,
49
                                                     @Param("buildingId") Integer building, @Param("unitId") Integer unitId,
49
                                                     @Param("buildingId") Integer building, @Param("unitId") Integer unitId,
50
                                                     @Param("levelId") Integer level, @Param("roomNoId") Integer roomNoId);
50
                                                     @Param("levelId") Integer level, @Param("roomNoId") Integer roomNoId);
51
 
51
 
52
+    /*
53
+     * 根据 小区,期,楼栋,单元,楼层
54
+     * @param communityId
55
+     * @param phase
56
+     * @param building
57
+     * @param unit
58
+     * @param level
59
+     * @param roomNo
60
+     * @return
61
+     */
62
+    @ResultMap("BaseResultMap")
63
+    @Select("select * from tp_building_owner_info where community_id=#{communityId}" +
64
+            " and phase_id=#{phaseId} and building_id=#{buildingId} and unit_id=#{unitId}" +
65
+            " and level_id=#{levelId} and verify_status=1")
66
+    List<TpBuildingOwnerInfo> selectByAddress(@Param("communityId") Integer communityId, @Param("phaseId") Integer phaseId,
67
+                                                    @Param("buildingId") Integer building, @Param("unitId") Integer unitId,
68
+                                                    @Param("levelId") Integer level);
52
 }
69
 }

+ 16
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpLevelMapper.java 查看文件

2
 
2
 
3
 import com.community.huiju.model.TpLevel;
3
 import com.community.huiju.model.TpLevel;
4
 import org.apache.ibatis.annotations.Mapper;
4
 import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.ResultMap;
6
+import org.apache.ibatis.annotations.Select;
7
+
8
+import java.util.List;
5
 
9
 
6
 @Mapper
10
 @Mapper
7
 public interface TpLevelMapper {
11
 public interface TpLevelMapper {
16
     int updateByPrimaryKeySelective(TpLevel record);
20
     int updateByPrimaryKeySelective(TpLevel record);
17
 
21
 
18
     int updateByPrimaryKey(TpLevel record);
22
     int updateByPrimaryKey(TpLevel record);
23
+
24
+    /**
25
+     * 根据 小区id,期id,楼栋id,单元id 进行查询
26
+     * @param communityId
27
+     * @param phaseId
28
+     * @param buildingId
29
+     * @param unitId
30
+     * @return
31
+     */
32
+    @ResultMap("BaseResultMap")
33
+    @Select("select * from tp_level where community_id=#{communityId} and phase_id=#{phaseId} and building_id=#{buildingId} and unit_id=#{unitId}")
34
+    List<TpLevel> selectByAddress(Integer communityId, Integer phaseId, Integer buildingId, Integer unitId);
19
 }
35
 }

+ 14
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpPhaseMapper.java 查看文件

2
 
2
 
3
 import com.community.huiju.model.TpPhase;
3
 import com.community.huiju.model.TpPhase;
4
 import org.apache.ibatis.annotations.Mapper;
4
 import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import org.apache.ibatis.annotations.ResultMap;
7
+import org.apache.ibatis.annotations.Select;
8
+
9
+import java.util.List;
5
 
10
 
6
 @Mapper
11
 @Mapper
7
 public interface TpPhaseMapper {
12
 public interface TpPhaseMapper {
16
     int updateByPrimaryKeySelective(TpPhase record);
21
     int updateByPrimaryKeySelective(TpPhase record);
17
 
22
 
18
     int updateByPrimaryKey(TpPhase record);
23
     int updateByPrimaryKey(TpPhase record);
24
+
25
+    /**
26
+     * 根据小区查询 期
27
+     * @param communityId
28
+     * @return
29
+     */
30
+    @ResultMap("BaseResultMap")
31
+    @Select("select * from tp_phase where community_id = #{communityId}")
32
+    List<TpPhase> selectByAddress(@Param("communityId") Integer communityId);
19
 }
33
 }

+ 15
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpUnitMapper.java 查看文件

2
 
2
 
3
 import com.community.huiju.model.TpUnit;
3
 import com.community.huiju.model.TpUnit;
4
 import org.apache.ibatis.annotations.Mapper;
4
 import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.ResultMap;
6
+import org.apache.ibatis.annotations.Select;
7
+
8
+import java.util.List;
5
 
9
 
6
 @Mapper
10
 @Mapper
7
 public interface TpUnitMapper {
11
 public interface TpUnitMapper {
16
     int updateByPrimaryKeySelective(TpUnit record);
20
     int updateByPrimaryKeySelective(TpUnit record);
17
 
21
 
18
     int updateByPrimaryKey(TpUnit record);
22
     int updateByPrimaryKey(TpUnit record);
23
+
24
+    /**
25
+     * 根据 小区id,期id,楼栋id 查询
26
+     * @param communityId
27
+     * @param phaseId
28
+     * @param buildingId
29
+     * @return
30
+     */
31
+    @ResultMap("BaseResultMap")
32
+    @Select("select * from tp_unit where community_id=#{communityId} and phase_id=#{phaseId} and building_id=#{buildingId}")
33
+    List<TpUnit> selectByAddress(Integer communityId, Integer phaseId, Integer buildingId);
19
 }
34
 }

+ 2
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/IBuildingOwnerInfo.java 查看文件

19
      * @param buildingId
19
      * @param buildingId
20
      * @param unitId
20
      * @param unitId
21
      * @param levelId
21
      * @param levelId
22
-     * @param roomNoId
23
      * @return
22
      * @return
24
      */
23
      */
25
-    ResponseBean selectBuildList(Integer communityId, Integer phaseId, Integer buildingId, Integer unitId, Integer levelId, Integer roomNoId);
24
+    ResponseBean selectBuildList(Integer communityId, Integer phaseId, Integer buildingId, Integer unitId, Integer levelId);
26
 
25
 
27
     /**
26
     /**
28
      * 根据 小区/期/楼栋/单元/楼层/户号
27
      * 根据 小区/期/楼栋/单元/楼层/户号
28
+     * 并校验这个用户,是否绑定了这个房产
29
      * @param phaseId
29
      * @param phaseId
30
      * @param buildingId
30
      * @param buildingId
31
      * @param unitId
31
      * @param unitId

+ 45
- 10
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoImpl.java 查看文件

3
 import com.alibaba.fastjson.JSONObject;
3
 import com.alibaba.fastjson.JSONObject;
4
 import com.community.commom.mode.ResponseBean;
4
 import com.community.commom.mode.ResponseBean;
5
 import com.community.commom.session.UserElement;
5
 import com.community.commom.session.UserElement;
6
-import com.community.huiju.dao.TaUserVerifyMapper;
7
-import com.community.huiju.dao.TpBuildingMapper;
8
-import com.community.huiju.dao.TpBuildingOwnerInfoMapper;
9
-import com.community.huiju.model.TaUserVerify;
10
-import com.community.huiju.model.TpBuilding;
11
-import com.community.huiju.model.TpBuildingOwnerInfo;
12
-import com.community.huiju.model.TpTransaction;
6
+import com.community.huiju.dao.*;
7
+import com.community.huiju.model.*;
13
 import com.community.huiju.service.IBuildingOwnerInfo;
8
 import com.community.huiju.service.IBuildingOwnerInfo;
14
 import com.github.pagehelper.Page;
9
 import com.github.pagehelper.Page;
15
 import com.github.pagehelper.PageHelper;
10
 import com.github.pagehelper.PageHelper;
29
 @Service
24
 @Service
30
 public class BuildingOwnerInfoImpl implements IBuildingOwnerInfo {
25
 public class BuildingOwnerInfoImpl implements IBuildingOwnerInfo {
31
 
26
 
27
+    /**
28
+     * 栋
29
+     */
32
     @Autowired
30
     @Autowired
33
     private TpBuildingMapper tpBuildingMapper;
31
     private TpBuildingMapper tpBuildingMapper;
34
 
32
 
33
+    /**
34
+     * 户号 /  楼栋资料库
35
+     */
35
     @Autowired
36
     @Autowired
36
     private TpBuildingOwnerInfoMapper tpBuildingOwnerInfoMapper;
37
     private TpBuildingOwnerInfoMapper tpBuildingOwnerInfoMapper;
37
 
38
 
38
     @Autowired
39
     @Autowired
39
     private TaUserVerifyMapper taUserVerifyMapper;
40
     private TaUserVerifyMapper taUserVerifyMapper;
40
 
41
 
42
+    /**
43
+     * 期
44
+     */
45
+    @Autowired
46
+    private TpPhaseMapper tpPhaseMapper;
47
+
48
+    /**
49
+     * 单元
50
+     */
51
+    @Autowired
52
+    private TpUnitMapper tpUnitMapper;
53
+
54
+    /**
55
+     * 楼层
56
+     */
57
+    @Autowired
58
+    private TpLevelMapper tpLevelMapper;
59
+
60
+
41
     @Override
61
     @Override
42
-    public ResponseBean selectBuildList(Integer communityId, Integer phaseId, Integer buildingId, Integer unitId, Integer levelId, Integer roomNoId) {
62
+    public ResponseBean selectBuildList(Integer communityId, Integer phaseId, Integer buildingId, Integer unitId, Integer levelId) {
43
         ResponseBean responseBean = new ResponseBean();
63
         ResponseBean responseBean = new ResponseBean();
44
 
64
 
65
+        // 查询 期 -> 栋 -> 单元 -> 楼层 -> 户号
66
+        if (null == phaseId && null == buildingId && null == unitId && null == levelId) {
67
+            List<TpPhase> phaseList = tpPhaseMapper.selectByAddress(communityId);
68
+            responseBean.addSuccess(phaseList);
69
+        } else if (null == buildingId && null == unitId && null == levelId) {
70
+            List<TpBuilding> buildingList = tpBuildingMapper.selectByAddress(communityId, phaseId);
71
+            responseBean.addSuccess(buildingList);
72
+        } else if (null == unitId && null == levelId) {
73
+            List<TpUnit> unitList = tpUnitMapper.selectByAddress(communityId, phaseId, buildingId);
74
+            responseBean.addSuccess(unitList);
75
+        } else if (null == levelId) {
76
+            List<TpLevel> levelList = tpLevelMapper.selectByAddress(communityId, phaseId, buildingId, unitId);
77
+            responseBean.addSuccess(levelList);
78
+        } else {
79
+            List<TpBuildingOwnerInfo> buildingOwnerInfoList = tpBuildingOwnerInfoMapper.selectByAddress(communityId, phaseId, buildingId, unitId, levelId);
80
+            responseBean.addSuccess(buildingOwnerInfoList);
81
+        }
45
 
82
 
46
-
47
-        responseBean.addSuccess(null);
48
         return responseBean;
83
         return responseBean;
49
     }
84
     }
50
 
85
 

+ 42
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServicelmpl.java 查看文件

33
     @Autowired
33
     @Autowired
34
     private TaSysRoleMapper taSysRoleMapper;
34
     private TaSysRoleMapper taSysRoleMapper;
35
 
35
 
36
-    @Autowired
37
-    private TpBuildingOwnerInfoMapper tpBuildingOwnerInfoMapper;
38
-
39
     @Autowired
36
     @Autowired
40
     private SysNationMapper sysNationMapper;
37
     private SysNationMapper sysNationMapper;
41
 
38
 
42
     @Autowired
39
     @Autowired
43
     private TaUserMapper taUserMapper;
40
     private TaUserMapper taUserMapper;
44
 
41
 
42
+    /**
43
+     * 期
44
+     */
45
+    @Autowired
46
+    private TpPhaseMapper tpPhaseMapper;
47
+
48
+    /**
49
+     * 单元
50
+     */
51
+    @Autowired
52
+    private TpUnitMapper tpUnitMapper;
53
+
54
+    /**
55
+     * 楼层
56
+     */
57
+    @Autowired
58
+    private TpLevelMapper tpLevelMapper;
59
+
60
+    /**
61
+     * 栋
62
+     */
63
+    @Autowired
64
+    private TpBuildingMapper tpBuildingMapper;
65
+
66
+    /**
67
+     * 户号 /  楼栋资料库
68
+     */
69
+    @Autowired
70
+    private TpBuildingOwnerInfoMapper tpBuildingOwnerInfoMapper;
71
+
45
     @Override
72
     @Override
46
     public ResponseBean getToAuditNotApproved(UserElement userElement, Integer userVerifyId) {
73
     public ResponseBean getToAuditNotApproved(UserElement userElement, Integer userVerifyId) {
47
         ResponseBean responseBean = new ResponseBean();
74
         ResponseBean responseBean = new ResponseBean();
71
         String roleName = jsonObject.getString("roleName");
98
         String roleName = jsonObject.getString("roleName");
72
         TaSysRole sysRole = taSysRoleMapper.selectByRoleName(roleName);
99
         TaSysRole sysRole = taSysRoleMapper.selectByRoleName(roleName);
73
 
100
 
101
+        // 查询 期/栋/单元/楼层/户号 -> 设置 相应 id 和 name
102
+        TpPhase phase = tpPhaseMapper.selectByPrimaryKey(taUserVerify.getPhaseId());
103
+        TpBuilding building = tpBuildingMapper.selectByPrimaryKey(taUserVerify.getBuildingId());
104
+        TpUnit unit = tpUnitMapper.selectByPrimaryKey(taUserVerify.getUnitId());
105
+        TpLevel level = tpLevelMapper.selectByPrimaryKey(taUserVerify.getLevelId());
106
+        TpBuildingOwnerInfo buildingOwnerInfo = tpBuildingOwnerInfoMapper.selectByPrimaryKey(taUserVerify.getRoomNoId());
107
+
74
         taUserVerify.setRoleId(sysRole.getId());
108
         taUserVerify.setRoleId(sysRole.getId());
75
         taUserVerify.setCommunityId(userElement.getCommunityId());
109
         taUserVerify.setCommunityId(userElement.getCommunityId());
76
         taUserVerify.setUserId(userElement.getId());
110
         taUserVerify.setUserId(userElement.getId());
77
         taUserVerify.setVerifyStatus("0");
111
         taUserVerify.setVerifyStatus("0");
78
         taUserVerify.setCreateDate(new Date());
112
         taUserVerify.setCreateDate(new Date());
113
+        taUserVerify.setPhaseName(phase.getName());
114
+        taUserVerify.setBuildingName(building.getName());
115
+        taUserVerify.setUnitName(unit.getName());
116
+        taUserVerify.setLevelName(level.getName());
117
+        taUserVerify.setRoomNoName(buildingOwnerInfo.getName());
79
 
118
 
80
         int rows = taUserVerifyMapper.insertSelective(taUserVerify);
119
         int rows = taUserVerifyMapper.insertSelective(taUserVerify);
81
         if (rows <= 0) {
120
         if (rows <= 0) {

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TaUserVerifyMapper.xml 查看文件

35
     delete from ta_user_verify
35
     delete from ta_user_verify
36
     where id = #{id,jdbcType=INTEGER}
36
     where id = #{id,jdbcType=INTEGER}
37
   </delete>
37
   </delete>
38
-  <insert id="insert" parameterType="com.community.huiju.model.TaUserVerify" >
38
+  <insert id="insert" parameterType="com.community.huiju.model.TaUserVerify"  keyColumn="id" useGeneratedKeys="true" >
39
     insert into ta_user_verify (id, user_id, community_id,
39
     insert into ta_user_verify (id, user_id, community_id,
40
       role_id, phase_id, phase_name,
40
       role_id, phase_id, phase_name,
41
       building_id, building_name, unit_id,
41
       building_id, building_name, unit_id,
49
       #{roomNoId,jdbcType=INTEGER}, #{roomNoName,jdbcType=VARCHAR}, #{verifyStatus,jdbcType=VARCHAR},
49
       #{roomNoId,jdbcType=INTEGER}, #{roomNoName,jdbcType=VARCHAR}, #{verifyStatus,jdbcType=VARCHAR},
50
       #{createDate,jdbcType=TIMESTAMP}, #{verifyName,jdbcType=VARCHAR})
50
       #{createDate,jdbcType=TIMESTAMP}, #{verifyName,jdbcType=VARCHAR})
51
   </insert>
51
   </insert>
52
-  <insert id="insertSelective" parameterType="com.community.huiju.model.TaUserVerify" >
52
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TaUserVerify" keyColumn="id" useGeneratedKeys="true">
53
     insert into ta_user_verify
53
     insert into ta_user_verify
54
     <trim prefix="(" suffix=")" suffixOverrides="," >
54
     <trim prefix="(" suffix=")" suffixOverrides="," >
55
       <if test="id != null" >
55
       <if test="id != null" >

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpBuildingMapper.xml 查看文件

23
     delete from tp_building
23
     delete from tp_building
24
     where id = #{id,jdbcType=INTEGER}
24
     where id = #{id,jdbcType=INTEGER}
25
   </delete>
25
   </delete>
26
-  <insert id="insert" parameterType="com.community.huiju.model.TpBuilding" >
26
+  <insert id="insert" parameterType="com.community.huiju.model.TpBuilding"  keyColumn="id" useGeneratedKeys="true" >
27
     insert into tp_building (id, community_id, phase_id,
27
     insert into tp_building (id, community_id, phase_id,
28
       phase_name, name, sort,
28
       phase_name, name, sort,
29
       create_date)
29
       create_date)
31
       #{phaseName,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{sort,jdbcType=VARCHAR},
31
       #{phaseName,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{sort,jdbcType=VARCHAR},
32
       #{createDate,jdbcType=TIMESTAMP})
32
       #{createDate,jdbcType=TIMESTAMP})
33
   </insert>
33
   </insert>
34
-  <insert id="insertSelective" parameterType="com.community.huiju.model.TpBuilding" >
34
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpBuilding"  keyColumn="id" useGeneratedKeys="true" >
35
     insert into tp_building
35
     insert into tp_building
36
     <trim prefix="(" suffix=")" suffixOverrides="," >
36
     <trim prefix="(" suffix=")" suffixOverrides="," >
37
       <if test="id != null" >
37
       <if test="id != null" >

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpBuildingOwnerInfoMapper.xml 查看文件

40
     delete from tp_building_owner_info
40
     delete from tp_building_owner_info
41
     where id = #{id,jdbcType=INTEGER}
41
     where id = #{id,jdbcType=INTEGER}
42
   </delete>
42
   </delete>
43
-  <insert id="insert" parameterType="com.community.huiju.model.TpBuildingOwnerInfo" >
43
+  <insert id="insert" parameterType="com.community.huiju.model.TpBuildingOwnerInfo"  keyColumn="id" useGeneratedKeys="true" >
44
     insert into tp_building_owner_info (id, community_id, id_card,
44
     insert into tp_building_owner_info (id, community_id, id_card,
45
       phase_id, phase_name, building_id,
45
       phase_id, phase_name, building_id,
46
       building_name, unit_id, unit_name,
46
       building_name, unit_id, unit_name,
58
       #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER},
58
       #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER},
59
       #{updateDate,jdbcType=TIMESTAMP})
59
       #{updateDate,jdbcType=TIMESTAMP})
60
   </insert>
60
   </insert>
61
-  <insert id="insertSelective" parameterType="com.community.huiju.model.TpBuildingOwnerInfo" >
61
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpBuildingOwnerInfo"  keyColumn="id" useGeneratedKeys="true" >
62
     insert into tp_building_owner_info
62
     insert into tp_building_owner_info
63
     <trim prefix="(" suffix=")" suffixOverrides="," >
63
     <trim prefix="(" suffix=")" suffixOverrides="," >
64
       <if test="id != null" >
64
       <if test="id != null" >

+ 3
- 3
CODE/smart-community/app-api/src/main/resources/mapper/TpLevelMapper.xml 查看文件

18
     id, community_id, phase_id, phase_name, building_id, building_name, unit_id, unit_name, 
18
     id, community_id, phase_id, phase_name, building_id, building_name, unit_id, unit_name, 
19
     name, sort, create_date
19
     name, sort, create_date
20
   </sql>
20
   </sql>
21
-  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
21
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer"  >
22
     select 
22
     select 
23
     <include refid="Base_Column_List" />
23
     <include refid="Base_Column_List" />
24
     from tp_level
24
     from tp_level
28
     delete from tp_level
28
     delete from tp_level
29
     where id = #{id,jdbcType=INTEGER}
29
     where id = #{id,jdbcType=INTEGER}
30
   </delete>
30
   </delete>
31
-  <insert id="insert" parameterType="com.community.huiju.model.TpLevel" >
31
+  <insert id="insert" parameterType="com.community.huiju.model.TpLevel"  keyColumn="id" useGeneratedKeys="true" >
32
     insert into tp_level (id, community_id, phase_id, 
32
     insert into tp_level (id, community_id, phase_id, 
33
       phase_name, building_id, building_name, 
33
       phase_name, building_id, building_name, 
34
       unit_id, unit_name, name, 
34
       unit_id, unit_name, name, 
38
       #{unitId,jdbcType=INTEGER}, #{unitName,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
38
       #{unitId,jdbcType=INTEGER}, #{unitName,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
39
       #{sort,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP})
39
       #{sort,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP})
40
   </insert>
40
   </insert>
41
-  <insert id="insertSelective" parameterType="com.community.huiju.model.TpLevel" >
41
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpLevel"  keyColumn="id" useGeneratedKeys="true" >
42
     insert into tp_level
42
     insert into tp_level
43
     <trim prefix="(" suffix=")" suffixOverrides="," >
43
     <trim prefix="(" suffix=")" suffixOverrides="," >
44
       <if test="id != null" >
44
       <if test="id != null" >

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpPhaseMapper.xml 查看文件

21
     delete from tp_phase
21
     delete from tp_phase
22
     where id = #{id,jdbcType=INTEGER}
22
     where id = #{id,jdbcType=INTEGER}
23
   </delete>
23
   </delete>
24
-  <insert id="insert" parameterType="com.community.huiju.model.TpPhase" >
24
+  <insert id="insert" parameterType="com.community.huiju.model.TpPhase"  keyColumn="id" useGeneratedKeys="true" >
25
     insert into tp_phase (id, community_id, NAME, 
25
     insert into tp_phase (id, community_id, NAME, 
26
       sort, create_date)
26
       sort, create_date)
27
     values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, 
27
     values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, 
28
       #{sort,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP})
28
       #{sort,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP})
29
   </insert>
29
   </insert>
30
-  <insert id="insertSelective" parameterType="com.community.huiju.model.TpPhase" >
30
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpPhase"  keyColumn="id" useGeneratedKeys="true" >
31
     insert into tp_phase
31
     insert into tp_phase
32
     <trim prefix="(" suffix=")" suffixOverrides="," >
32
     <trim prefix="(" suffix=")" suffixOverrides="," >
33
       <if test="id != null" >
33
       <if test="id != null" >

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpUnitMapper.xml 查看文件

25
     delete from tp_unit
25
     delete from tp_unit
26
     where id = #{id,jdbcType=INTEGER}
26
     where id = #{id,jdbcType=INTEGER}
27
   </delete>
27
   </delete>
28
-  <insert id="insert" parameterType="com.community.huiju.model.TpUnit" >
28
+  <insert id="insert" parameterType="com.community.huiju.model.TpUnit"  keyColumn="id" useGeneratedKeys="true" >
29
     insert into tp_unit (id, community_id, phase_id, 
29
     insert into tp_unit (id, community_id, phase_id, 
30
       phase_name, building_id, building_name, 
30
       phase_name, building_id, building_name, 
31
       name, sort, create_date
31
       name, sort, create_date
35
       #{name,jdbcType=VARCHAR}, #{sort,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}
35
       #{name,jdbcType=VARCHAR}, #{sort,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}
36
       )
36
       )
37
   </insert>
37
   </insert>
38
-  <insert id="insertSelective" parameterType="com.community.huiju.model.TpUnit" >
38
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpUnit"  keyColumn="id" useGeneratedKeys="true" >
39
     insert into tp_unit
39
     insert into tp_unit
40
     <trim prefix="(" suffix=")" suffixOverrides="," >
40
     <trim prefix="(" suffix=")" suffixOverrides="," >
41
       <if test="id != null" >
41
       <if test="id != null" >

+ 2
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java 查看文件

866
         Long pages = infoIPage.getPages();
866
         Long pages = infoIPage.getPages();
867
 
867
 
868
 
868
 
869
-        // 行数 默认从 第 5 行开始
870
-        int currentRow = 5;
869
+        // 行数 默认从 第 3 行开始
870
+        int currentRow = 3;
871
         // 记录坐标
871
         // 记录坐标
872
         int index = 0;
872
         int index = 0;
873
 
873
 

二進制
CODE/smart-community/property-api/src/main/resources/业主资料库.xlsx 查看文件