|
@@ -397,7 +397,7 @@ public class ExtractConfigFileServiceImpl implements ExtractConfigFileService {
|
|
List<ExamCourseRelationBean> examCourseDtoList = new ArrayList<ExamCourseRelationBean>();
|
|
List<ExamCourseRelationBean> examCourseDtoList = new ArrayList<ExamCourseRelationBean>();
|
|
GetExamCourseListReq req = new GetExamCourseListReq();
|
|
GetExamCourseListReq req = new GetExamCourseListReq();
|
|
req.setExamId(Long.valueOf(examId));
|
|
req.setExamId(Long.valueOf(examId));
|
|
- //req.setExamId(194L);//for export
|
|
|
|
|
|
+ //req.setExamId(217L);//for export test
|
|
req.setCourseEnable(true);
|
|
req.setCourseEnable(true);
|
|
Long start = 1l;
|
|
Long start = 1l;
|
|
int count = 0;
|
|
int count = 0;
|
|
@@ -419,7 +419,7 @@ public class ExtractConfigFileServiceImpl implements ExtractConfigFileService {
|
|
for (ExamCourseRelationBean examCourseDto : examCourseDtoList) {
|
|
for (ExamCourseRelationBean examCourseDto : examCourseDtoList) {
|
|
ExtractConfig condition = new ExtractConfig();
|
|
ExtractConfig condition = new ExtractConfig();
|
|
condition.setExamId(examCourseDto.getExamId());
|
|
condition.setExamId(examCourseDto.getExamId());
|
|
- //condition.setExamId(510L);//for export
|
|
|
|
|
|
+ //condition.setExamId(523L);//for export online
|
|
condition.setCourseCode(examCourseDto.getCourseCode());
|
|
condition.setCourseCode(examCourseDto.getCourseCode());
|
|
|
|
|
|
ExtractConfig extractConfig = extractConfigService.findConfig(condition);
|
|
ExtractConfig extractConfig = extractConfigService.findConfig(condition);
|
|
@@ -513,11 +513,12 @@ public class ExtractConfigFileServiceImpl implements ExtractConfigFileService {
|
|
Set<Entry<String, String>> entrySet = paperIds.entrySet();
|
|
Set<Entry<String, String>> entrySet = paperIds.entrySet();
|
|
Iterator<Entry<String, String>> iterator = entrySet.iterator();
|
|
Iterator<Entry<String, String>> iterator = entrySet.iterator();
|
|
|
|
|
|
|
|
+ int index = 1;
|
|
while (iterator.hasNext()) {
|
|
while (iterator.hasNext()) {
|
|
Entry<String, String> entry = iterator.next();
|
|
Entry<String, String> entry = iterator.next();
|
|
String paperId = entry.getKey();
|
|
String paperId = entry.getKey();
|
|
String paperType = entry.getValue();
|
|
String paperType = entry.getValue();
|
|
- logger.info("初始化试卷:" + paperId);
|
|
|
|
|
|
+ logger.info(index + " - 处理试卷:" + paperId);
|
|
PaperExp paperExp = initPaperExpService.initPaperExp(paperId);
|
|
PaperExp paperExp = initPaperExpService.initPaperExp(paperId);
|
|
logger.info("处理客观题...");
|
|
logger.info("处理客观题...");
|
|
//添加客观题
|
|
//添加客观题
|
|
@@ -543,6 +544,7 @@ public class ExtractConfigFileServiceImpl implements ExtractConfigFileService {
|
|
}
|
|
}
|
|
subjectiveQuestionStructureList.addAll(subjectiveList);
|
|
subjectiveQuestionStructureList.addAll(subjectiveList);
|
|
logger.info("处理主观题完成");
|
|
logger.info("处理主观题完成");
|
|
|
|
+ index++;
|
|
}
|
|
}
|
|
|
|
|
|
ExcelWriter objectiveExcelExporter = new ExcelWriter(ObjectiveQuestionStructure.class);
|
|
ExcelWriter objectiveExcelExporter = new ExcelWriter(ObjectiveQuestionStructure.class);
|