Browse Source

controller去除多余映射

mashengyi 2 years ago
parent
commit
c99b6be042

+ 0 - 42
src/main/java/com/jkcredit/invoice/controller/business/CustomerController.java

@@ -165,48 +165,6 @@ public class CustomerController {
     }
 
     /**
-     * 添加客户
-     *
-     * @return 用户集合
-     */
-    @PostMapping("/addCustomer")
-    @ApiOperation(value = "添加客户", notes = "添加客户")
-    @LoginRequired
-    public RespR addCustomer(@RequestBody Customer customer, User user) {
-        checkHasAuthRole.checkCustomerRole(user, customer.getCustomerName());
-        if (!checkHasAuthRole.checkMessage(customer.getCustomerName(), customer.getCompany())) {
-            return new RespR(false, "客户添加失败,请查看数据是否维护准确");
-        }
-        if (null == customer.getBussinessType()) {
-            return new RespR(false, "客户添加失败,请查看业务类型是否选择");
-        } else if (0 == customer.getBussinessType() && null == customer.getFee()) {
-            return new RespR(false, "客户添加失败,自有车业务必须添加ETC费用");
-        }
-        return new RespR(customerService.addCustomers(customer), "客户添加失败,请查看是否重复");
-    }
-
-    /**
-     * 修改客户状态
-     *
-     * @return 用户集合
-     */
-    @PostMapping("/updateCustomer")
-    @ApiOperation(value = "更新用户", notes = "更新用户")
-    @LoginRequired(role = AuthenticationInterceptor.AUTH_ADMIN)
-    public RespR updateCustomer(@RequestBody Customer customer) {
-        if (!checkHasAuthRole.checkMessage(customer.getCustomerName(), customer.getCompany())) {
-            return new RespR(false, "客户更新失败,请查看数据是否维护准确");
-        }
-        if (null == customer.getBussinessType()) {
-            return new RespR(false, "客户更新失败,请查看业务类型是否选择");
-        } else if (0 == customer.getBussinessType() && null == customer.getFee()) {
-            return new RespR(false, "客户更新失败,自有车业务必须添加ETC费用");
-        }
-
-        return new RespR(customerService.updateCustomer(customer));
-    }
-
-    /**
      * 修改客户状态
      *
      * @return 用户集合