xiatian 2 years ago
parent
commit
4cdea4826e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/cn/com/qmth/mps/service/impl/PaperServiceImpl.java

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

@@ -147,7 +147,7 @@ public class PaperServiceImpl extends ServiceImpl<PaperDao, PaperEntity> impleme
 				try {
 					this.save(cur);
 				} catch (DuplicateKeyException e) {
-					failRecords.add(newError(i + 1, "科目已存在"));
+//					failRecords.add(newError(i + 1, "科目已存在"));
 				} catch (Exception e) {
 					failRecords.add(newError(i + 1, "系统异常"));
 					log.error("科目导入系统异常", e);
@@ -170,6 +170,7 @@ public class PaperServiceImpl extends ServiceImpl<PaperDao, PaperEntity> impleme
 			}
 		}
 	}
+	
 
 	private String trimAndNullIfBlank(String s) {
 		if (StringUtils.isBlank(s)) {