|
@@ -146,6 +146,11 @@ public class DataSyncReportServiceImpl implements DataSyncReportService {
|
|
|
status = TaskStatusEnum.RUNNING;
|
|
|
tbSyncTaskService.updateStatusAndResultById(tbSyncTask.getId(), null, status, null, null);
|
|
|
|
|
|
+ // 清空错误日志文件
|
|
|
+ UpdateWrapper<GradeBatch> updateWrapper = new UpdateWrapper<>();
|
|
|
+ updateWrapper.lambda().set(GradeBatch::getReportFilePath, null).eq(GradeBatch::getId, gradeBatch.getId());
|
|
|
+ gradeBatchService.update(updateWrapper);
|
|
|
+
|
|
|
QueryWrapper<GradeBatchPaper> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.lambda().eq(GradeBatchPaper::getBatchId, gradeBatch.getId());
|
|
|
List<GradeBatchPaper> gradeBatchPaperList = gradeBatchPaperService.list(queryWrapper);
|
|
@@ -154,6 +159,7 @@ public class DataSyncReportServiceImpl implements DataSyncReportService {
|
|
|
}
|
|
|
|
|
|
List<String> courseCodes = gradeBatchPaperList.stream().map(m -> m.getPaperNumber() + m.getPaperType()).collect(Collectors.toList());
|
|
|
+ Collections.sort(courseCodes);
|
|
|
source = Base64Util.encode(ShaUtils.sha1(gradeBatch.getThirdExamId() + courseCodes.toString()));
|
|
|
teachCloudReportTaskUtils.startCalc(schoolId, gradeBatch.getThirdExamId(), courseCodes);
|
|
|
// 任务结果
|