|
@@ -185,6 +185,9 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
map.put("lineNum", entity.getLineNum());
|
|
|
map.put("msg", e.getDesc());
|
|
|
failRecords.add(map);
|
|
|
+ entity.setStatusCode(e.getCode());
|
|
|
+ entity.setStatusDesc(e.getDesc());
|
|
|
+ examStudentTempRepo.saveAndFlush(entity);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -199,6 +202,9 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
map.put("lineNum", entity.getLineNum());
|
|
|
map.put("msg", e.getDesc());
|
|
|
failRecords.add(map);
|
|
|
+ entity.setStatusCode(e.getCode());
|
|
|
+ entity.setStatusDesc(e.getDesc());
|
|
|
+ examStudentTempRepo.saveAndFlush(entity);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -233,19 +239,20 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
sReq.setStudentName(entity.getName());
|
|
|
sReq.setPaperType("O");
|
|
|
examStudentCloudService.saveExamStudent(sReq);
|
|
|
+
|
|
|
+ entity.setStatusCode("200");
|
|
|
+ entity.setStatusDesc("成功");
|
|
|
+ examStudentTempRepo.saveAndFlush(entity);
|
|
|
+
|
|
|
} 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());
|
|
|
- failRecords.add(map);
|
|
|
+ entity.setStatusCode(e.getCode());
|
|
|
+ entity.setStatusDesc(e.getDesc());
|
|
|
+ examStudentTempRepo.saveAndFlush(entity);
|
|
|
return;
|
|
|
}
|
|
|
|