| | |
| | | private void batchSave(Long id, List<DocumentBorrowCopyRecord> documentBorrowCopyRecordList,List<Long> delIds) { |
| | | if (ObjectUtils.isNotEmpty(delIds)) { |
| | | int update = documentBorrowCopyRecordMapper.update(new DocumentBorrowCopyRecord(), |
| | | new LambdaUpdateWrapper<DocumentBorrowCopyRecord>().set(DocumentBorrowCopyRecord::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentBorrowCopyRecord>().set(DocumentBorrowCopyRecord::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentBorrowCopyRecord::getUpdateTime, LocalDateTime.now()) |
| | | .set(DocumentBorrowCopyRecord::getUpdateBy, SecurityUtils.getUsername()).in(DocumentBorrowCopyRecord::getId, delIds) |
| | | ); |
| | |
| | | @Transactional |
| | | public CommonResult deletedDocumentBorrowCopy(Long id) { |
| | | int i = documentBorrowCopyMapper.update(new DocumentBorrowCopy(), |
| | | new LambdaUpdateWrapper<DocumentBorrowCopy>().set(DocumentBorrowCopy::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentBorrowCopy>().set(DocumentBorrowCopy::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentBorrowCopy::getUpdateTime, LocalDateTime.now()) |
| | | .set(DocumentBorrowCopy::getUpdateBy, SecurityUtils.getUsername()).eq(DocumentBorrowCopy::getId, id) |
| | | ); |
| | | if (i > 0){ |
| | | documentBorrowCopyRecordMapper.update(new DocumentBorrowCopyRecord(), |
| | | new LambdaUpdateWrapper<DocumentBorrowCopyRecord>().set(DocumentBorrowCopyRecord::getDelFlag, UserConstant.DEPT_DISABLE) |
| | | new LambdaUpdateWrapper<DocumentBorrowCopyRecord>().set(DocumentBorrowCopyRecord::getDelFlag, UserConstant.DISENABLE) |
| | | .set(DocumentBorrowCopyRecord::getUpdateTime, LocalDateTime.now()).set(DocumentBorrowCopyRecord::getUpdateBy, SecurityUtils.getUsername()) |
| | | .eq(DocumentBorrowCopyRecord::getDocumentBorrowId, id)); |
| | | } |