| | |
| | | List<Long> delProblemIds, List<Long> delContentIds, List<SixInspectionProblem> sixInspectionProblemList) { |
| | | if (ObjectUtils.isNotEmpty(delProblemIds)) { |
| | | int update = sixInspectionProblemMapper.update(new SixInspectionProblem(), |
| | | new LambdaUpdateWrapper<SixInspectionProblem>().set(SixInspectionProblem::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<SixInspectionProblem>().set(SixInspectionProblem::getDelFlag, UserConstant.DISENABLE) |
| | | .set(SixInspectionProblem::getUpdateTime, LocalDateTime.now()).set(SixInspectionProblem::getUpdateBy, SecurityUtils.getUsername()) |
| | | .in(SixInspectionProblem::getId, delProblemIds) |
| | | ); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(delContentIds)) { |
| | | int update = sixInspectionContentMapper.update(new SixInspectionContent(), |
| | | new LambdaUpdateWrapper<SixInspectionContent>().set(SixInspectionContent::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<SixInspectionContent>().set(SixInspectionContent::getDelFlag, UserConstant.DISENABLE) |
| | | .set(SixInspectionContent::getUpdateTime, LocalDateTime.now()).set(SixInspectionContent::getUpdateBy, SecurityUtils.getUsername()) |
| | | .in(SixInspectionContent::getId, delContentIds) |
| | | ); |
| | |
| | | public CommonResult deletedSixInspection(Long id) { |
| | | int update = sixInspectionMapper.update(new SixInspection(), |
| | | new LambdaUpdateWrapper<SixInspection>().eq(SixInspection::getId, id) |
| | | .set(SixInspection::getDelFlag, UserConstant.DEPT_DISABLE).set(SixInspection::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspection::getDelFlag, UserConstant.DISENABLE).set(SixInspection::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspection::getUpdateBy, SecurityUtils.getUsername())); |
| | | if (update > 0) { |
| | | sixInspectionContentMapper.update(new SixInspectionContent(), |
| | | new LambdaUpdateWrapper<SixInspectionContent>().eq(SixInspectionContent::getSixInspectionId, id) |
| | | .set(SixInspectionContent::getDelFlag, UserConstant.DEPT_DISABLE).set(SixInspectionContent::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspectionContent::getDelFlag, UserConstant.DISENABLE).set(SixInspectionContent::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspectionContent::getUpdateBy, SecurityUtils.getUsername()) |
| | | ); |
| | | sixInspectionProblemMapper.update(new SixInspectionProblem(), |
| | | new LambdaUpdateWrapper<SixInspectionProblem>().eq(SixInspectionProblem::getSixInspectionId, id) |
| | | .set(SixInspectionProblem::getDelFlag, UserConstant.DEPT_DISABLE).set(SixInspectionProblem::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspectionProblem::getDelFlag, UserConstant.DISENABLE).set(SixInspectionProblem::getUpdateTime, LocalDateTime.now()) |
| | | .set(SixInspectionProblem::getUpdateBy, SecurityUtils.getUsername()) |
| | | ); |
| | | } |