xiatian 2 年之前
父节点
当前提交
8875bb5c37
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/main/java/cn/com/qmth/mps/service/impl/PaperServiceImpl.java

+ 2 - 3
src/main/java/cn/com/qmth/mps/service/impl/PaperServiceImpl.java

@@ -458,10 +458,9 @@ public class PaperServiceImpl extends ServiceImpl<PaperDao, PaperEntity> impleme
 				}
 
 			}
-			if (CollectionUtils.isNotEmpty(failRecords)) {
-				return failRecords;
+			if (CollectionUtils.isEmpty(failRecords)) {
+				this.saveStruct(ret, user, failRecords);
 			}
-			this.saveStruct(ret, user, failRecords);
 			if (CollectionUtils.isNotEmpty(failRecords)) {
 				TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
 			}