瀏覽代碼

edit customer

胡轶钦 5 年之前
父節點
當前提交
5a89c987af
共有 1 個檔案被更改,包括 5 行新增5 行删除
  1. 5
    5
      src/main/java/com/huiju/estateagents/controller/TaRecommendCustomerController.java

+ 5
- 5
src/main/java/com/huiju/estateagents/controller/TaRecommendCustomerController.java 查看文件

336
      * @param taRecommendCustomer 实体对象
336
      * @param taRecommendCustomer 实体对象
337
      * @return
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
                                         @RequestBody TaRecommendCustomer taRecommendCustomer){
341
                                         @RequestBody TaRecommendCustomer taRecommendCustomer){
342
         ResponseBean responseBean = new ResponseBean();
342
         ResponseBean responseBean = new ResponseBean();
343
-        taRecommendCustomer.setCustomerId(id);
343
+        taRecommendCustomer.setCustomerId(customerId);
344
         try {
344
         try {
345
             if (taRecommendCustomerService.updateById(taRecommendCustomer)){
345
             if (taRecommendCustomerService.updateById(taRecommendCustomer)){
346
                 responseBean.addSuccess(taRecommendCustomer);
346
                 responseBean.addSuccess(taRecommendCustomer);
399
 //        return responseBean;
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
         ResponseBean responseBean = new ResponseBean();
404
         ResponseBean responseBean = new ResponseBean();
405
         try {
405
         try {
406
             responseBean.addSuccess(taRecommendCustomerService.getById(customerId));
406
             responseBean.addSuccess(taRecommendCustomerService.getById(customerId));