|
@@ -177,8 +177,20 @@ 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
|
+ ResponseBean responseBean = new ResponseBean();
|
|
183
|
+ try {
|
|
184
|
+ responseBean.addSuccess(taRecommendCustomerService.getById(customerId));
|
|
185
|
+ }catch (Exception e){
|
|
186
|
+ e.printStackTrace();
|
|
187
|
+ responseBean.addError(e.getMessage());
|
|
188
|
+ }
|
|
189
|
+ return responseBean;
|
|
190
|
+ }
|
|
191
|
+
|
|
192
|
+ @RequestMapping(value = "/admin/customer/recommend/getById/{id}", method = RequestMethod.GET)
|
|
193
|
+ public ResponseBean getRecommendCustomerById(@PathVariable(value = "id") String customerId) {
|
182
|
194
|
ResponseBean responseBean = new ResponseBean();
|
183
|
195
|
try {
|
184
|
196
|
responseBean.addSuccess(taRecommendCustomerService.getById(customerId));
|