| | |
| | | .set(AnnualMaintenanceServiceUser::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | .set(AnnualMaintenanceServiceUser::getUpdateTime, LocalDateTime.now()) |
| | | .set(AnnualMaintenanceServiceUser::getUpdateBy, SecurityUtils.getUsername())); |
| | | if (update1 <= 0) { |
| | | throw new ApiException("删除失败"); |
| | | } |
| | | // if (update1 <= 0) { |
| | | // throw new ApiException("删除失败"); |
| | | // } |
| | | int update2 = annualMaintenanceServiceContentMapper.update(new AnnualMaintenanceServiceContent(), |
| | | new LambdaUpdateWrapper<AnnualMaintenanceServiceContent>().eq(AnnualMaintenanceServiceContent::getAnnualMaintenanceServiceId, id) |
| | | .set(AnnualMaintenanceServiceContent::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | .set(AnnualMaintenanceServiceContent::getUpdateTime, LocalDateTime.now()) |
| | | .set(AnnualMaintenanceServiceContent::getUpdateBy, SecurityUtils.getUsername()) |
| | | ); |
| | | if (update2 <= 0) { |
| | | throw new ApiException("删除失败"); |
| | | } |
| | | |
| | | return CommonResult.success(); |
| | | } |
| | | return CommonResult.failed(); |