| | |
| | | if (ObjectUtils.isNotEmpty(delEvaluateIds)){ |
| | | |
| | | int update = documentChangesInvalidatedEvaluateMapper.update(new DocumentChangesInvalidatedEvaluate(), |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedEvaluate>().set(DocumentChangesInvalidatedEvaluate::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedEvaluate>().set(DocumentChangesInvalidatedEvaluate::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentChangesInvalidatedEvaluate::getUpdateTime, LocalDateTime.now()).set(DocumentChangesInvalidatedEvaluate::getUpdateBy, SecurityUtils.getUsername()) |
| | | .in(DocumentChangesInvalidatedEvaluate::getId, delEvaluateIds) |
| | | ); |
| | |
| | | if (ObjectUtils.isNotEmpty(delInvalidatedIssueIds)){ |
| | | |
| | | int update = documentChangesInvalidatedIssueMapper.update(new DocumentChangesInvalidatedIssue(), |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedIssue>().set(DocumentChangesInvalidatedIssue::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedIssue>().set(DocumentChangesInvalidatedIssue::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentChangesInvalidatedIssue::getUpdateTime, LocalDateTime.now()).set(DocumentChangesInvalidatedIssue:: getUpdateBy, SecurityUtils.getUsername()) |
| | | .in(DocumentChangesInvalidatedIssue::getId, delInvalidatedIssueIds) |
| | | ); |
| | |
| | | @Transactional |
| | | public CommonResult deletedDocumentChangesInvalidated(Long id) { |
| | | int i = documentChangesInvalidatedMapper.update(new DocumentChangesInvalidated(), |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidated>().set(DocumentChangesInvalidated::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidated>().set(DocumentChangesInvalidated::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentChangesInvalidated::getUpdateTime, LocalDateTime.now()).set(DocumentChangesInvalidated::getUpdateBy, SecurityUtils.getUsername()) |
| | | .eq(DocumentChangesInvalidated::getId, id) |
| | | ); |
| | | if (i > 0){ |
| | | documentChangesInvalidatedIssueMapper.update(new DocumentChangesInvalidatedIssue(), |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedIssue>().set(DocumentChangesInvalidatedIssue::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedIssue>().set(DocumentChangesInvalidatedIssue::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentChangesInvalidatedIssue::getUpdateTime, LocalDateTime.now()).set(DocumentChangesInvalidatedIssue::getUpdateBy, SecurityUtils.getUsername()) |
| | | .eq(DocumentChangesInvalidatedIssue::getDocumentChangesId, id) |
| | | ); |
| | | documentChangesInvalidatedEvaluateMapper.update(new DocumentChangesInvalidatedEvaluate(), |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedEvaluate>().set(DocumentChangesInvalidatedEvaluate::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentChangesInvalidatedEvaluate>().set(DocumentChangesInvalidatedEvaluate::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentChangesInvalidatedEvaluate::getUpdateTime, LocalDateTime.now()).set(DocumentChangesInvalidatedEvaluate::getUpdateBy, SecurityUtils.getUsername()) |
| | | .eq(DocumentChangesInvalidatedEvaluate::getDocumentChangesId, id) |
| | | ); |