| | |
| | | private void batchSave(Long id, List<DocumentDistributionCollectionRecord> documentDistributionCollectionRecordList,List<Long> delIds) { |
| | | if (ObjectUtils.isNotEmpty(delIds)) { |
| | | int update = documentDistributionCollectionRecordMapper.update(new DocumentDistributionCollectionRecord(), |
| | | new LambdaUpdateWrapper<DocumentDistributionCollectionRecord>().set(DocumentDistributionCollectionRecord::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentDistributionCollectionRecord>().set(DocumentDistributionCollectionRecord::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentDistributionCollectionRecord::getUpdateTime, LocalDateTime.now()) |
| | | .set(DocumentDistributionCollectionRecord::getUpdateBy, SecurityUtils.getUsername()).in(DocumentDistributionCollectionRecord::getId, delIds) |
| | | ); |
| | |
| | | @Transactional |
| | | public CommonResult deletedDocumentDistributionCollection(Long id) { |
| | | int i = documentDistributionCollectionMapper.update(new DocumentDistributionCollection(), |
| | | new LambdaUpdateWrapper<DocumentDistributionCollection>().set(DocumentDistributionCollection::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentDistributionCollection>().set(DocumentDistributionCollection::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentDistributionCollection::getUpdateTime, LocalDateTime.now()) |
| | | .set(DocumentDistributionCollection::getUpdateBy, SecurityUtils.getUsername()).eq(DocumentDistributionCollection::getId, id) |
| | | ); |
| | | if (i > 0){ |
| | | documentDistributionCollectionRecordMapper.update(new DocumentDistributionCollectionRecord(), |
| | | new LambdaUpdateWrapper<DocumentDistributionCollectionRecord>().set(DocumentDistributionCollectionRecord::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentDistributionCollectionRecord>().set(DocumentDistributionCollectionRecord::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentDistributionCollectionRecord::getUpdateTime, LocalDateTime.now()).set(DocumentDistributionCollectionRecord::getUpdateBy, SecurityUtils.getUsername()) |
| | | .eq(DocumentDistributionCollectionRecord::getDocumentId, id)); |
| | | } |