| | |
| | | @SaCheckPermission("CreateCustomer.add") |
| | | @PostMapping("/insertCustomer") |
| | | public Result insertCustomer( @RequestBody Map<String,Object> object){ |
| | | if(customerService.insertCustomer(object)){ |
| | | |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"客户新增/修改失败"); |
| | | |
| | | } |
| | | return Result.seccess(customerService.insertCustomer(object)); |
| | | } |
| | | |
| | | @ApiOperation("客户删除接口") |
| | | @SaCheckPermission("selectCustomer.delete") |
| | | @PostMapping("/deleteCustomer") |
| | | public Result deleteCustomer( @RequestBody Map<String,Object> object){ |
| | | if(customerService.deleteCustomer(object)){ |
| | | |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"客户删除失败"); |
| | | |
| | | } |
| | | return Result.seccess(customerService.deleteCustomer(object)); |
| | | } |
| | | |
| | | @ApiOperation("客户订单查询接口") |