|
@@ -93,7 +93,7 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- importEntity.setStatus(ExamStudentImportStatus.FILE_PARSING);
|
|
|
+ importEntity.setStatus(ExamStudentImportStatus.DATA_PROCESSING);
|
|
|
examStudentImportRepo.saveAndFlush(importEntity);
|
|
|
|
|
|
process(importEntity);
|
|
@@ -123,6 +123,7 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
try {
|
|
|
FileUtils.writeStringToFile(resultFile, sb.toString(), "UTF-8", true);
|
|
|
} catch (IOException e) {
|
|
|
+ debugLog.error("导入报告写入失败", e);
|
|
|
importEntity.setStatus(ExamStudentImportStatus.ERROR);
|
|
|
importEntity.setStatusDesc("导入报告写入失败");
|
|
|
examStudentImportRepo.saveAndFlush(importEntity);
|
|
@@ -179,6 +180,7 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
CourseBean courseBean = resp.getCourseBean();
|
|
|
entity.setCourseId(courseBean.getId());
|
|
|
} catch (StatusException e) {
|
|
|
+ debugLog.error("查询课程异常", e);
|
|
|
Map<String, Object> map = Maps.newHashMap();
|
|
|
map.put("lineNum", entity.getLineNum());
|
|
|
map.put("msg", e.getDesc());
|
|
@@ -192,6 +194,7 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
OrgBean org = resp.getOrg();
|
|
|
entity.setOrgId(org.getId());
|
|
|
} catch (StatusException e) {
|
|
|
+ debugLog.error("查询机构异常", e);
|
|
|
Map<String, Object> map = Maps.newHashMap();
|
|
|
map.put("lineNum", entity.getLineNum());
|
|
|
map.put("msg", e.getDesc());
|
|
@@ -231,12 +234,14 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
sReq.setPaperType("O");
|
|
|
examStudentCloudService.saveExamStudent(sReq);
|
|
|
} catch (StatusException e) {
|
|
|
+ debugLog.error("考生入库异常", e);
|
|
|
Map<String, Object> map = Maps.newHashMap();
|
|
|
map.put("lineNum", entity.getLineNum());
|
|
|
map.put("msg", " " + e.getDesc());
|
|
|
failRecords.add(map);
|
|
|
return;
|
|
|
} catch (Exception e) {
|
|
|
+ debugLog.error("考生入库异常", e);
|
|
|
Map<String, Object> map = Maps.newHashMap();
|
|
|
map.put("lineNum", entity.getLineNum());
|
|
|
map.put("msg", " " + e.getMessage());
|