| | |
| | | return Result.OK("编辑成功!"); |
| | | } |
| | | |
| | | @AutoLog(value = "停止服务合同") |
| | | @Operation(summary="停止服务合同") |
| | | @RequiresPermissions("contract:contract:dropService") |
| | | @RequestMapping(value = "/dropService", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> dropService(@RequestBody ContractPage contractPage) { |
| | | Contract contract = new Contract(); |
| | | contract.setId(contractPage.getId()); |
| | | contract.setIsDropService(contractPage.getIsDropService().isEmpty() ? "是" : contractPage.getIsDropService()); |
| | | boolean b = contractService.updateById(contract); |
| | | if (b) { |
| | | return Result.OK("更新完成"); |
| | | } else { |
| | | return Result.error("更新失败"); |
| | | } |
| | | } |
| | | /** |
| | | * 通过id删除 |
| | | * |