|
@@ -164,7 +164,7 @@ public class DataSyncServiceImpl implements DataSyncService {
|
|
|
ExamPaperStructureStatusEnum structureStatus = ExamPaperStructureStatusEnum.INIT;
|
|
|
// 同步初始参数
|
|
|
TaskResultEnum result = null;
|
|
|
- String errorMessage = null;
|
|
|
+ String errorMessage = "";
|
|
|
try {
|
|
|
String paperTypes = examPaperStructure.getPaperType();
|
|
|
if (StringUtils.isBlank(paperTypes)) {
|
|
@@ -181,6 +181,7 @@ public class DataSyncServiceImpl implements DataSyncService {
|
|
|
tbSyncTaskService.updateStatusAndResultById(tbSyncTask.getId(), examPaperStructure.getThirdRelateId(), TaskStatusEnum.RUNNING, null, null);
|
|
|
|
|
|
// 同步主观题
|
|
|
+ errorMessage = "主观题";
|
|
|
String subjectiveStructure = examPaperStructure.getSubjectiveStructure();
|
|
|
if (StringUtils.isNotBlank(subjectiveStructure)) {
|
|
|
List<JSONObject> subjectiveJsons = JSONObject.parseArray(subjectiveStructure, JSONObject.class);
|
|
@@ -197,6 +198,7 @@ public class DataSyncServiceImpl implements DataSyncService {
|
|
|
}
|
|
|
structureStatus = ExamPaperStructureStatusEnum.SUBJECTIVE_FINISH;
|
|
|
|
|
|
+ errorMessage = "主观题分组";
|
|
|
// 同步分组
|
|
|
int countGroup = cloudMarkingTaskUtils.countGroup(schoolId, examId, subjectCode);
|
|
|
// 如果存在分组,先删掉
|
|
@@ -237,6 +239,7 @@ public class DataSyncServiceImpl implements DataSyncService {
|
|
|
structureStatus = ExamPaperStructureStatusEnum.GROUP_FINISH;
|
|
|
|
|
|
// 同步绑定评卷员
|
|
|
+ errorMessage = "绑定评卷员";
|
|
|
for (ExamPaperGroup examPaperGroup : examPaperGroups) {
|
|
|
List<ExamPaperGroupMarker> examPaperGroupMarkers = examPaperGroupMarkerService.listByGroupId(examPaperGroup.getId());
|
|
|
for (ExamPaperGroupMarker examPaperGroupMarker : examPaperGroupMarkers) {
|
|
@@ -247,7 +250,7 @@ public class DataSyncServiceImpl implements DataSyncService {
|
|
|
result = TaskResultEnum.SUCCESS;
|
|
|
} catch (ApiException e) {
|
|
|
result = TaskResultEnum.ERROR;
|
|
|
- errorMessage = e.getMessage();
|
|
|
+ errorMessage = errorMessage + e.getMessage();
|
|
|
} finally {
|
|
|
examPaperStructure.setStatus(structureStatus);
|
|
|
examPaperStructureService.updateById(examPaperStructure);
|