|
@@ -336,11 +336,11 @@ public class TaRecommendCustomerController extends BaseController {
|
336
|
336
|
* @param taRecommendCustomer 实体对象
|
337
|
337
|
* @return
|
338
|
338
|
*/
|
339
|
|
- @RequestMapping(value="/wx/customer/recommend/edit/{id}",method= RequestMethod.PUT)
|
340
|
|
- public ResponseBean taRecommendCustomerUpdateWx(@PathVariable String id,
|
|
339
|
+ @RequestMapping(value="/wx/customer/recommend/edit/{customerId}",method= RequestMethod.PUT)
|
|
340
|
+ public ResponseBean taRecommendCustomerUpdateWx(@PathVariable String customerId,
|
341
|
341
|
@RequestBody TaRecommendCustomer taRecommendCustomer){
|
342
|
342
|
ResponseBean responseBean = new ResponseBean();
|
343
|
|
- taRecommendCustomer.setCustomerId(id);
|
|
343
|
+ taRecommendCustomer.setCustomerId(customerId);
|
344
|
344
|
try {
|
345
|
345
|
if (taRecommendCustomerService.updateById(taRecommendCustomer)){
|
346
|
346
|
responseBean.addSuccess(taRecommendCustomer);
|
|
@@ -399,8 +399,8 @@ public class TaRecommendCustomerController extends BaseController {
|
399
|
399
|
// return responseBean;
|
400
|
400
|
// }
|
401
|
401
|
|
402
|
|
- @RequestMapping(value = "/wx/customer/recommend/get/{id}", method = RequestMethod.GET)
|
403
|
|
- public ResponseBean getSingleCustomer(@PathVariable(value = "id") String customerId) {
|
|
402
|
+ @RequestMapping(value = "/wx/customer/recommend/get/{customerId}", method = RequestMethod.GET)
|
|
403
|
+ public ResponseBean getSingleCustomer(@PathVariable(value = "customerId") String customerId) {
|
404
|
404
|
ResponseBean responseBean = new ResponseBean();
|
405
|
405
|
try {
|
406
|
406
|
responseBean.addSuccess(taRecommendCustomerService.getById(customerId));
|