weiwenhai 6 роки тому
батько
коміт
982fc6b2cd

+ 2 - 2
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/impl/ExtractConfigProviderServiceImpl.java

@@ -99,8 +99,8 @@ public class ExtractConfigProviderServiceImpl implements ExtractConfigProviderSe
 		log.debug("开始根据examId:"+ examId +"和courseCode:"+ courseCode +"获取调卷规则");
 		ExtractConfig extractConfig = extractConfigService.findConfig(new ExtractConfig(examId,courseCode));
 		if(extractConfig == null){
-			log.error("该考试和课程下调卷规则未制定,请先制定调卷规则,调卷程序退出");
-			throw new StatusException("Q-020101","该考试和课程下调卷规则未制定,请先制定调卷规则,调卷程序退出");
+			log.error("该课程调卷规则未制定,请联系学校");
+			throw new StatusException("Q-020101","该课程调卷规则未制定,请联系学校");
 		}
 		long configFinishTime = System.currentTimeMillis();
 		log.debug("获取调卷规则共耗时:"+ (configFinishTime - startTime)+"ms");

+ 75 - 1
examcloud-core-questions-starter/src/test/java/cn/com/qmth/examcloud/core/questions/starter/DdCollegeUtilTest.java

@@ -249,9 +249,83 @@ public class DdCollegeUtilTest {
 	 @Autowired
 	 private UpdatePaperStruct updatePaperStruct;
 	 
+	 @Test
+	 public void updateP(){
+		 updatePaperStruct.updatePaperStruct("303"); //测试大学
+	 }
+	 
 	 @Test
 	 public void updatePaperStruct(){
-		 updatePaperStruct.updatePaperStruct("43");
+		 //updatePaperStruct.updatePaperStruct("0"); //启明泰和
+		 
+		 updatePaperStruct.updatePaperStruct("1"); //石油大学
+		 
+		 updatePaperStruct.updatePaperStruct("115"); //测试
+		 
+		 updatePaperStruct.updatePaperStruct("135"); //山东大学
+		 
+		 updatePaperStruct.updatePaperStruct("136"); //电子科技大学
+		 
+		 updatePaperStruct.updatePaperStruct("137"); //陕西师范大学
+		 
+		 updatePaperStruct.updatePaperStruct("302"); //天津大学
+		 
+		 updatePaperStruct.updatePaperStruct("371"); //西安交通大学
+		 
+		 updatePaperStruct.updatePaperStruct("372"); //武汉理工大学
+		 
+		 updatePaperStruct.updatePaperStruct("718"); //西南交通大学
+		 
+		 updatePaperStruct.updatePaperStruct("1065"); //华中科技大学
+		 
+		 updatePaperStruct.updatePaperStruct("1226"); //河南优特
+		 
+		 updatePaperStruct.updatePaperStruct("1251"); //湖北职业技术学院
+		 
+		 updatePaperStruct.updatePaperStruct("1252"); //武汉软件工程职业学院
+		 
+		 updatePaperStruct.updatePaperStruct("1256"); //华南师范大学
+		 
+		 updatePaperStruct.updatePaperStruct("1347"); //华中师范大学
+		 
+		 updatePaperStruct.updatePaperStruct("1348"); //福建师范大学
+		 
+		 updatePaperStruct.updatePaperStruct("1350"); //优特教育
+		 
+		 updatePaperStruct.updatePaperStruct("1353"); //奥鹏教育
+		 
+		 updatePaperStruct.updatePaperStruct("1384"); //西南财经大学
+		 
+		 updatePaperStruct.updatePaperStruct("1385"); //北京师范大学
+		 
+		 updatePaperStruct.updatePaperStruct("1387"); //中国地质大学(北京)
+		 
+		 updatePaperStruct.updatePaperStruct("1388"); //北京开放大学
+		 
+		 updatePaperStruct.updatePaperStruct("1394"); //西安电子科技大学
+		 
+		 updatePaperStruct.updatePaperStruct("1407"); //重庆大学
+		 
+		 updatePaperStruct.updatePaperStruct("1408"); //中国医科大学(奥鹏)
+		 
+		 updatePaperStruct.updatePaperStruct("1562"); //北京交通大学(奥鹏)
+		 
+		 updatePaperStruct.updatePaperStruct("1627"); //中国地质大学(武汉)
+		 
+		 updatePaperStruct.updatePaperStruct("1680"); //南开大学(奥鹏)
+		 
+		 updatePaperStruct.updatePaperStruct("1681"); //东北师范大学(奥鹏)
+		 
+		 updatePaperStruct.updatePaperStruct("1734"); //北京航空航天大学(奥鹏)
+		 
+		 updatePaperStruct.updatePaperStruct("1745"); //中国石油大学(华东)
+		 
+		 updatePaperStruct.updatePaperStruct("1759"); //教务平台(全日制)
+		 
+		 updatePaperStruct.updatePaperStruct("1769"); //地质大学(武汉)入学
+		 
+		 updatePaperStruct.updatePaperStruct("1775"); //演示-ACC
+		 
 	 }
 }