|
@@ -3,10 +3,12 @@ package com.qmth.themis.business.templete.impl;
|
|
import cn.hutool.core.date.DateUtil;
|
|
import cn.hutool.core.date.DateUtil;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.qmth.themis.business.bean.cloudmark.StudentScoreParams;
|
|
import com.qmth.themis.business.bean.cloudmark.StudentScoreParams;
|
|
|
|
+import com.qmth.themis.business.cache.bean.ExamCacheBean;
|
|
import com.qmth.themis.business.constant.SystemConstant;
|
|
import com.qmth.themis.business.constant.SystemConstant;
|
|
import com.qmth.themis.business.dao.TSyncExamStudentScoreMapper;
|
|
import com.qmth.themis.business.dao.TSyncExamStudentScoreMapper;
|
|
import com.qmth.themis.business.entity.TSyncExamStudentScore;
|
|
import com.qmth.themis.business.entity.TSyncExamStudentScore;
|
|
import com.qmth.themis.business.enums.TaskStatusEnum;
|
|
import com.qmth.themis.business.enums.TaskStatusEnum;
|
|
|
|
+import com.qmth.themis.business.service.TEExamService;
|
|
import com.qmth.themis.business.service.TSyncExamStudentScoreService;
|
|
import com.qmth.themis.business.service.TSyncExamStudentScoreService;
|
|
import com.qmth.themis.business.templete.TaskSyncCommon;
|
|
import com.qmth.themis.business.templete.TaskSyncCommon;
|
|
import com.qmth.themis.business.templete.TaskSyncTemplete;
|
|
import com.qmth.themis.business.templete.TaskSyncTemplete;
|
|
@@ -46,6 +48,9 @@ public class TaskSyncCloudMarkTemplete implements TaskSyncTemplete {
|
|
@Resource
|
|
@Resource
|
|
TSyncExamStudentScoreMapper tSyncExamStudentScoreMapper;
|
|
TSyncExamStudentScoreMapper tSyncExamStudentScoreMapper;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ TEExamService teExamService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 同步模版
|
|
* 同步模版
|
|
*
|
|
*
|
|
@@ -61,17 +66,11 @@ public class TaskSyncCloudMarkTemplete implements TaskSyncTemplete {
|
|
taskSyncCommon.setTxtList(new ArrayList());
|
|
taskSyncCommon.setTxtList(new ArrayList());
|
|
StringJoiner stringJoiner = null;
|
|
StringJoiner stringJoiner = null;
|
|
try {
|
|
try {
|
|
- taskSyncCommon.getTxtList()
|
|
|
|
- .add(DateUtil.format(new Date(), Constants.DEFAULT_DATE_PATTERN) + "->开始准备同步云阅卷成绩数据");
|
|
|
|
- Object o = map.get(SystemConstant.CLOUD_MARK_EXAM_ID);
|
|
|
|
- Long cloudMarkExamId = null;
|
|
|
|
- if (o instanceof Long) {
|
|
|
|
- cloudMarkExamId = (Long) o;
|
|
|
|
- } else if (o instanceof Integer) {
|
|
|
|
- cloudMarkExamId = Long.parseLong(String.valueOf(o));
|
|
|
|
- }
|
|
|
|
- taskSyncCommon.getTbTaskHistory().setEntityId(cloudMarkExamId);
|
|
|
|
|
|
+ taskSyncCommon.getTxtList().add(DateUtil.format(new Date(), Constants.DEFAULT_DATE_PATTERN) + "->开始准备同步云阅卷成绩数据");
|
|
Long examId = (Long) map.get(SystemConstant.EXAM_ID);
|
|
Long examId = (Long) map.get(SystemConstant.EXAM_ID);
|
|
|
|
+ ExamCacheBean examCacheBean = teExamService.getExamCacheBean(examId);
|
|
|
|
+ Long cloudMarkExamId = Long.parseLong(examCacheBean.getThirdExamId());
|
|
|
|
+ taskSyncCommon.getTbTaskHistory().setEntityId(cloudMarkExamId);
|
|
Long orgId = (Long) map.get(SystemConstant.ORG_ID);
|
|
Long orgId = (Long) map.get(SystemConstant.ORG_ID);
|
|
Long createId = (Long) map.get(SystemConstant.CREATE_ID);
|
|
Long createId = (Long) map.get(SystemConstant.CREATE_ID);
|
|
String examCode = (String) map.get(SystemConstant.EXAM_CODE);
|
|
String examCode = (String) map.get(SystemConstant.EXAM_CODE);
|