|
@@ -11,6 +11,8 @@ import java.util.Map;
|
|
|
import java.util.Map.Entry;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.support.enums.ExamProperties;
|
|
|
+import cn.com.qmth.examcloud.support.helper.ExamCacheTransferHelper;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
@@ -100,12 +102,8 @@ public class ExamRecordForMarkingServiceImpl implements ExamRecordForMarkingServ
|
|
|
* @return
|
|
|
*/
|
|
|
private String getMarkingType(Long examId) {
|
|
|
- GetExamPropertyReq getExamPropertyReq = new GetExamPropertyReq();
|
|
|
- getExamPropertyReq.setExamId(examId);
|
|
|
- getExamPropertyReq.setKey("MARKING_TYPE");
|
|
|
- GetExamPropertyResp getExamPropertyResp = examCloudService.getExamProperty(getExamPropertyReq);
|
|
|
-
|
|
|
- return getExamPropertyResp.getValue();
|
|
|
+ return ExamCacheTransferHelper.
|
|
|
+ getDefaultCachedExamProperty(examId, ExamProperties.MARKING_TYPE.name()).getValue();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -135,10 +133,7 @@ public class ExamRecordForMarkingServiceImpl implements ExamRecordForMarkingServ
|
|
|
* @return
|
|
|
*/
|
|
|
private ExamType getExamType(Long examId) {
|
|
|
- GetExamReq getExamReq = new GetExamReq();
|
|
|
- getExamReq.setId(examId);
|
|
|
- GetExamResp getExamResp = examCloudService.getExam(getExamReq);
|
|
|
- return ExamType.valueOf(getExamResp.getExamBean().getExamType());
|
|
|
+ return ExamType.valueOf(ExamCacheTransferHelper.getDefaultCachedExam(examId).getExamType());
|
|
|
}
|
|
|
|
|
|
/**
|