|
@@ -49,21 +49,34 @@ public class CustomerController {
|
|
|
}*/
|
|
|
|
|
|
|
|
|
- @ApiOperation("客户修改(包含逻辑删除)")
|
|
|
+ @ApiOperation("客户修改")
|
|
|
@PutMapping("/update")
|
|
|
public BaseResponse updCustomer(@RequestBody CustomerDto customerDto) {
|
|
|
customerService.updateCustomerInfo(customerDto);
|
|
|
return new BaseResponse();
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("客户逻辑删除")
|
|
|
+ @PutMapping("/del/{customerId}")
|
|
|
+ public BaseResponse makeDelCustomer(@PathVariable Long customerId) {
|
|
|
+ customerService.deleteCustomer(customerId);
|
|
|
+ return new BaseResponse();
|
|
|
+ }
|
|
|
|
|
|
- @ApiOperation("获取所有的客户信息{用于各种对客户条件的查询}")
|
|
|
- @GetMapping("/{customerName}")
|
|
|
- public BaseRestResponse getCustomerInfo( @RequestParam(value = "customerName",required = false) String customerName){
|
|
|
- return new BaseRestResponse<>(customerService.queryCustomerInfo(customerName));
|
|
|
+
|
|
|
+ @ApiOperation("客户置无效")
|
|
|
+ @PutMapping("/valid/{customerId}/{status}")
|
|
|
+ public BaseResponse makeValCustomer(@PathVariable Long customerId, @PathVariable Integer status) {
|
|
|
+ customerService.validCustomer(customerId, status);
|
|
|
+ return new BaseResponse();
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @ApiOperation("获取所有的客户信息{用于各种对客户条件的查询}")
|
|
|
+ @GetMapping("/{customerName}")
|
|
|
+ public BaseRestResponse getCustomerInfo(@RequestParam(value = "customerName", required = false) String customerName) {
|
|
|
+ return new BaseRestResponse<>(customerService.queryCustomerInfo(customerName));
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|