|
@@ -87,14 +87,16 @@ public class TaRecommendCustomerController extends BaseController {
|
87
|
87
|
}
|
88
|
88
|
|
89
|
89
|
@PostMapping("/wx/customer/recommend")
|
90
|
|
- public ResponseBean getUnSignedCustomerList (@RequestParam int pageNumber, @RequestParam int pageSize,HttpServletRequest request){
|
|
90
|
+ public ResponseBean getUnSignedCustomerList ( @RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
|
|
91
|
+ @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
|
92
|
+ @RequestParam(value ="today",defaultValue = "false") String buildingId,
|
|
93
|
+ HttpServletRequest request){
|
91
|
94
|
String openid = JWTUtils.getSubject(request);
|
92
|
95
|
List<TaPerson> taPersons = taPersonService.getPersonsByOpenId(openid);
|
93
|
96
|
if (null == taPersons || taPersons.size() != 1) {
|
94
|
97
|
return ResponseBean.error("验证人员信息失败", ResponseBean.ERROR_UNAVAILABLE);
|
95
|
98
|
}
|
96
|
99
|
TaPerson person = taPersons.get(0);
|
97
|
|
- String buildingId = "";
|
98
|
100
|
try{
|
99
|
101
|
return ResponseBean.success(taRecommendCustomerService.getUnSignedCustomerList(pageNumber,pageSize,buildingId,person.getPersonId()));
|
100
|
102
|
}catch (Exception e){
|
|
@@ -104,10 +106,15 @@ public class TaRecommendCustomerController extends BaseController {
|
104
|
106
|
}
|
105
|
107
|
|
106
|
108
|
@PostMapping("/customer/recommend")
|
107
|
|
- public ResponseBean getCustomerList (@RequestParam int pageNumber, @RequestParam int pageSize){
|
|
109
|
+ public ResponseBean getCustomerList (@RequestParam(value ="name",defaultValue = "false") String name,
|
|
110
|
+ @RequestParam(value ="tel",defaultValue = "false") String tel,
|
|
111
|
+ @RequestParam(value ="buildingId",defaultValue = "false") String buildingId,
|
|
112
|
+ @RequestParam(value ="consultName",defaultValue = "false") String consultName,
|
|
113
|
+ @RequestParam(value ="consultTel",defaultValue = "false") String consultTel,
|
|
114
|
+ @RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
|
|
115
|
+ @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize){
|
108
|
116
|
try{
|
109
|
|
- String buildingId="";
|
110
|
|
- return ResponseBean.success(taRecommendCustomerService.getCustomerList(pageNumber,pageSize,buildingId));
|
|
117
|
+ return ResponseBean.success(taRecommendCustomerService.getCustomerList(pageNumber,pageSize,buildingId,name,tel,consultName,consultTel));
|
111
|
118
|
}catch (Exception e){
|
112
|
119
|
e.printStackTrace();
|
113
|
120
|
return ResponseBean.error(e.getMessage(),ResponseBean.ERROR_UNAVAILABLE);
|
|
@@ -193,4 +200,17 @@ public class TaRecommendCustomerController extends BaseController {
|
193
|
200
|
}
|
194
|
201
|
return responseBean;
|
195
|
202
|
}
|
|
203
|
+
|
|
204
|
+ @PostMapping("/customer/recommend/drift")
|
|
205
|
+ public ResponseBean getDriftCustomerList (@RequestParam(value ="buildingId",defaultValue = "false") String buildingId,
|
|
206
|
+ @RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
|
|
207
|
+ @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize){
|
|
208
|
+ try{
|
|
209
|
+ return ResponseBean.success(taPersonService.getDriftCustomerList(pageNumber,pageSize,buildingId));
|
|
210
|
+ }catch (Exception e){
|
|
211
|
+ e.printStackTrace();
|
|
212
|
+ return ResponseBean.error(e.getMessage(),ResponseBean.ERROR_UNAVAILABLE);
|
|
213
|
+ }
|
|
214
|
+ }
|
|
215
|
+
|
196
|
216
|
}
|