|
@@ -3,13 +3,8 @@ package com.community.huiju.service.impl;
|
3
|
3
|
import com.alibaba.fastjson.JSONObject;
|
4
|
4
|
import com.community.commom.mode.ResponseBean;
|
5
|
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
|
8
|
import com.community.huiju.service.IBuildingOwnerInfo;
|
14
|
9
|
import com.github.pagehelper.Page;
|
15
|
10
|
import com.github.pagehelper.PageHelper;
|
|
@@ -29,19 +24,47 @@ import java.util.Map;
|
29
|
24
|
@Service
|
30
|
25
|
public class BuildingOwnerInfoImpl implements IBuildingOwnerInfo {
|
31
|
26
|
|
|
27
|
+ /**
|
|
28
|
+ * 栋
|
|
29
|
+ */
|
32
|
30
|
@Autowired
|
33
|
31
|
private TpBuildingMapper tpBuildingMapper;
|
34
|
32
|
|
|
33
|
+ /**
|
|
34
|
+ * 户号 / 楼栋资料库
|
|
35
|
+ */
|
35
|
36
|
@Autowired
|
36
|
37
|
private TpBuildingOwnerInfoMapper tpBuildingOwnerInfoMapper;
|
37
|
38
|
|
38
|
39
|
@Autowired
|
39
|
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
|
61
|
@Override
|
42
|
62
|
public ResponseBean selectBuildList(Integer communityId, Integer phaseId, Integer buildingId, Integer unitId, Integer levelId, Integer roomNoId) {
|
43
|
63
|
ResponseBean responseBean = new ResponseBean();
|
44
|
64
|
|
|
65
|
+ // 查询 期 -> 栋 -> 单元 -> 楼层 -> 户号
|
|
66
|
+ List<TpPhase> phaseList = tpPhaseMapper.selectByCommunityId(communityId);
|
|
67
|
+ List<TpBuilding> buildingList = tpBuildingMapper.selectByCommunityIdAndPhaseId(communityId, phaseId);
|
45
|
68
|
|
46
|
69
|
|
47
|
70
|
responseBean.addSuccess(null);
|