|
@@ -24,6 +24,7 @@ import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -139,6 +140,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);
|
|
@@ -147,6 +153,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);
|
|
|
// 任务结果
|