heheng
昨天 6faa8da685a95b1fce5f432f5bd41a870ccb5ade
multi-system/src/main/java/com/gkhy/exam/system/service/impl/DocumentBorrowCopyServiceImpl.java
@@ -72,7 +72,7 @@
    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)
            );
@@ -111,13 +111,13 @@
    @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));
        }