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