|
@@ -1,6 +1,8 @@
|
1
|
1
|
package com.huiju.estateagents.property.controller;
|
2
|
2
|
|
3
|
3
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
4
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
5
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
4
|
6
|
import com.huiju.estateagents.base.BaseController;
|
5
|
7
|
import com.huiju.estateagents.base.ResponseBean;
|
6
|
8
|
import com.huiju.estateagents.center.taUser.entity.TaUser;
|
|
@@ -16,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
16
|
18
|
import org.springframework.web.bind.annotation.*;
|
17
|
19
|
|
18
|
20
|
import javax.servlet.http.HttpServletRequest;
|
|
21
|
+import java.util.HashMap;
|
19
|
22
|
import java.util.Map;
|
20
|
23
|
|
21
|
24
|
@RestController
|
|
@@ -122,6 +125,40 @@ public class UserVerifyController extends BaseController {
|
122
|
125
|
return responseBean;
|
123
|
126
|
}
|
124
|
127
|
|
|
128
|
+ @GetMapping("/admin/prop-user/points")
|
|
129
|
+ public ResponseBean getListWithPoints(@RequestParam(value = "communityId") Integer communityId,
|
|
130
|
+ @RequestParam(value = "phaseId", required = false) Integer phaseId,
|
|
131
|
+ @RequestParam(value = "buildingId", required = false)Integer buildingId,
|
|
132
|
+ @RequestParam(value = "unitId", required = false)Integer unitId,
|
|
133
|
+ @RequestParam(value = "levelId", required = false)Integer levelId,
|
|
134
|
+ @RequestParam(value = "roomNoId", required = false)Integer roomNoId,
|
|
135
|
+ @RequestParam(value = "phone", required = false) String phone,
|
|
136
|
+ @RequestParam(value = "ownerName", required = false) String ownerName,
|
|
137
|
+ @RequestParam(value = "idCard", required = false) String idCard,
|
|
138
|
+ @RequestParam(value = "minPoints", required = false) Integer minPoints,
|
|
139
|
+ @RequestParam(value = "maxPoints", required = false) Integer maxPoints,
|
|
140
|
+ @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
141
|
+ @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
|
|
142
|
+ HttpServletRequest request) {
|
|
143
|
+ Map<String, Object> params = new HashMap<>();
|
|
144
|
+ params.put("orgId", getOrgId(request));
|
|
145
|
+ params.put("communityId", communityId);
|
|
146
|
+ params.put("phaseId", phaseId);
|
|
147
|
+ params.put("buildingId", buildingId);
|
|
148
|
+ params.put("unitId", unitId);
|
|
149
|
+ params.put("levelId", levelId);
|
|
150
|
+ params.put("roomNoId", roomNoId);
|
|
151
|
+ params.put("phone", phone);
|
|
152
|
+ params.put("ownerName", ownerName);
|
|
153
|
+ params.put("idCard", idCard);
|
|
154
|
+ params.put("minPoints", minPoints);
|
|
155
|
+ params.put("maxPoints", maxPoints);
|
|
156
|
+ //
|
|
157
|
+ IPage<TaUserVerify> page = new Page<TaUserVerify>(pageNum, pageSize);
|
|
158
|
+ IPage<TaUserVerify> result = iTaUserVerifyService.getListWithPoints(page, params);
|
|
159
|
+ return ResponseBean.success(result);
|
|
160
|
+ }
|
|
161
|
+
|
125
|
162
|
/**
|
126
|
163
|
* 校验该 房产是否有房主
|
127
|
164
|
* @param phaseId
|