|
@@ -105,12 +105,12 @@ public class TaRecommendCustomerController extends BaseController {
|
105
|
105
|
}
|
106
|
106
|
}
|
107
|
107
|
|
108
|
|
- @PostMapping("/customer/recommend")
|
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,
|
|
108
|
+ @GetMapping("/admin/customer/recommend")
|
|
109
|
+ public ResponseBean getCustomerList (@RequestParam(value ="name",required = false) String name,
|
|
110
|
+ @RequestParam(value ="tel",required = false) String tel,
|
|
111
|
+ @RequestParam(value ="buildingId",required = false) String buildingId,
|
|
112
|
+ @RequestParam(value ="consultName",required = false) String consultName,
|
|
113
|
+ @RequestParam(value ="consultTel",required = false) String consultTel,
|
114
|
114
|
@RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
|
115
|
115
|
@RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize){
|
116
|
116
|
try{
|
|
@@ -121,8 +121,8 @@ public class TaRecommendCustomerController extends BaseController {
|
121
|
121
|
}
|
122
|
122
|
}
|
123
|
123
|
|
124
|
|
- @PostMapping("/customer/recommend/{customerId}")
|
125
|
|
- public ResponseBean getCustomersIRecommended (@RequestParam int pageNumber, @RequestParam int pageSize,String customerId){
|
|
124
|
+ @GetMapping("/admin/customer/recommend/{customerId}")
|
|
125
|
+ public ResponseBean getCustomersIRecommended (@RequestParam int pageNumber, @RequestParam int pageSize, @PathVariable String customerId){
|
126
|
126
|
String buildingId="";
|
127
|
127
|
try{
|
128
|
128
|
return ResponseBean.success(taRecommendCustomerService.getCustomersIRecommended(pageNumber,pageSize,customerId,buildingId));
|
|
@@ -159,7 +159,7 @@ public class TaRecommendCustomerController extends BaseController {
|
159
|
159
|
* @param taRecommendCustomer 实体对象
|
160
|
160
|
* @return
|
161
|
161
|
*/
|
162
|
|
- @RequestMapping(value="/customer/recommend/edit/{id}",method= RequestMethod.PUT)
|
|
162
|
+ @RequestMapping(value="/admin/customer/recommend/edit/{id}",method= RequestMethod.PUT)
|
163
|
163
|
public ResponseBean taRecommendCustomerUpdate(@PathVariable String id,
|
164
|
164
|
@RequestBody TaRecommendCustomer taRecommendCustomer){
|
165
|
165
|
ResponseBean responseBean = new ResponseBean();
|
|
@@ -177,8 +177,8 @@ public class TaRecommendCustomerController extends BaseController {
|
177
|
177
|
return responseBean;
|
178
|
178
|
}
|
179
|
179
|
|
180
|
|
- @RequestMapping(value = "/wx/customer/recommend/get/{id}")
|
181
|
|
- public ResponseBean getSingleCustomer(String customerId) {
|
|
180
|
+ @RequestMapping(value = "/wx/customer/recommend/get/{id}", method = RequestMethod.GET)
|
|
181
|
+ public ResponseBean getSingleCustomer(@PathVariable(value = "id") String customerId) {
|
182
|
182
|
ResponseBean responseBean = new ResponseBean();
|
183
|
183
|
try {
|
184
|
184
|
responseBean.addSuccess(taRecommendCustomerService.getById(customerId));
|
|
@@ -189,8 +189,9 @@ public class TaRecommendCustomerController extends BaseController {
|
189
|
189
|
return responseBean;
|
190
|
190
|
}
|
191
|
191
|
|
192
|
|
- @RequestMapping(value = "/customer/recommend/{id}")
|
193
|
|
- public ResponseBean getCustomerById(String customerId) {
|
|
192
|
+
|
|
193
|
+ @RequestMapping(value = "/admin/customer/recommend/getById/{id}", method = RequestMethod.GET)
|
|
194
|
+ public ResponseBean getRecommendCustomerById(@PathVariable(value = "id") String customerId) {
|
194
|
195
|
ResponseBean responseBean = new ResponseBean();
|
195
|
196
|
try {
|
196
|
197
|
responseBean.addSuccess(taRecommendCustomerService.getCustomerById(customerId));
|
|
@@ -201,8 +202,9 @@ public class TaRecommendCustomerController extends BaseController {
|
201
|
202
|
return responseBean;
|
202
|
203
|
}
|
203
|
204
|
|
204
|
|
- @RequestMapping(value = "/customer/recommend/get/{id}")
|
205
|
|
- public ResponseBean getCutomerDetail(String id) {
|
|
205
|
+
|
|
206
|
+ @GetMapping(value = "/admin/customer/recommend/get/{id}")
|
|
207
|
+ public ResponseBean getCutomerDetail(@PathVariable String id) {
|
206
|
208
|
ResponseBean responseBean = new ResponseBean();
|
207
|
209
|
try {
|
208
|
210
|
responseBean.addSuccess(taRecommendCustomerService.getCustomerDetail(id));
|
|
@@ -213,7 +215,7 @@ public class TaRecommendCustomerController extends BaseController {
|
213
|
215
|
return responseBean;
|
214
|
216
|
}
|
215
|
217
|
|
216
|
|
- @PostMapping("/customer/recommend/drift")
|
|
218
|
+ @GetMapping("/admin/customer/recommend/drift")
|
217
|
219
|
public ResponseBean getDriftCustomerList (@RequestParam(value ="buildingId",defaultValue = "false") String buildingId,
|
218
|
220
|
@RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
|
219
|
221
|
@RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize){
|