|
@@ -361,7 +361,8 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
|
List<TOeExamRecord> tOeExamRecordList = getExamRecordOnce(map, jsonObject, examPaperIdSet);
|
|
|
|
|
|
//获取多次考试记录的考试
|
|
|
- List<TOeExamRecord> tOeExamRecordManyList = tOeExamRecordService.findExamRecordNeedMarkAll(examId, examPaperIdSet, true);
|
|
|
+ Boolean examStudentBreachPush = (Boolean) map.get(SystemConstant.EXAM_STUDENT_BREACH_PUSH);
|
|
|
+ List<TOeExamRecord> tOeExamRecordManyList = tOeExamRecordService.findExamRecordNeedMarkAll(examId, examPaperIdSet, true, examStudentBreachPush);
|
|
|
if (!CollectionUtils.isEmpty(tOeExamRecordManyList)) {
|
|
|
Set<Long> manyExamStudentIdSet = tOeExamRecordManyList.stream().map(s -> s.getExamStudentId()).collect(Collectors.toSet());
|
|
|
jsonObject.put("examRecordManyListSize", manyExamStudentIdSet.size());
|
|
@@ -419,7 +420,8 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
|
Set<Long> examPaperIdSet) {
|
|
|
Long examId = (Long) map.get(SystemConstant.EXAM_ID);
|
|
|
TBTaskHistory tbTaskHistory = (TBTaskHistory) map.get("tbTaskHistory");
|
|
|
- List<TOeExamRecord> tOeExamRecordList = tOeExamRecordService.findExamRecordNeedMarkAll(examId, examPaperIdSet, false);
|
|
|
+ Boolean examStudentBreachPush = (Boolean) map.get(SystemConstant.EXAM_STUDENT_BREACH_PUSH);
|
|
|
+ List<TOeExamRecord> tOeExamRecordList = tOeExamRecordService.findExamRecordNeedMarkAll(examId, examPaperIdSet, false, examStudentBreachPush);
|
|
|
if (!CollectionUtils.isEmpty(tOeExamRecordList)) {
|
|
|
jsonObject.put("examRecordListSize", tOeExamRecordList.size());
|
|
|
|
|
@@ -459,7 +461,8 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
|
Integer jsCurrentTaskSize) {
|
|
|
Long examId = (Long) map.get(SystemConstant.EXAM_ID);
|
|
|
TBTaskHistory tbTaskHistory = (TBTaskHistory) map.get("tbTaskHistory");
|
|
|
- List<TEExamStudent> teExamStudentList = teExamStudentService.findExamStudentNeedMarkAll(examId, examPaperIdSet);
|
|
|
+ Boolean examStudentBreachPush = (Boolean) map.get(SystemConstant.EXAM_STUDENT_BREACH_PUSH);
|
|
|
+ List<TEExamStudent> teExamStudentList = teExamStudentService.findExamStudentNeedMarkAll(examId, examPaperIdSet, examStudentBreachPush);
|
|
|
if (CollectionUtils.isEmpty(teExamStudentList)) {
|
|
|
throw new BusinessException("没有待阅卷的考生");
|
|
|
}
|
|
@@ -497,6 +500,8 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
|
Long cloudMarkExamId) throws IOException {
|
|
|
Long orgId = Long.parseLong(String.valueOf(map.get(SystemConstant.ORG_ID)));
|
|
|
TBTaskHistory tbTaskHistory = (TBTaskHistory) map.get("tbTaskHistory");
|
|
|
+ Boolean objectiveScorePush = (Boolean) map.get(SystemConstant.OBJECTIVE_SCORE_PUSH);
|
|
|
+
|
|
|
BigDecimal progress = new BigDecimal(0);
|
|
|
BigDecimal b = new BigDecimal(100);
|
|
|
TBOrg tbOrg = themisCacheService.addOrgCache(orgId);
|
|
@@ -545,7 +550,9 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
|
courseCode,
|
|
|
t.getCourseName()));
|
|
|
|
|
|
- cloudMarkUtil.callStudentObjectiveScoreApi(new StudentObjectiveScoreParams(orgId, cloudMarkExamId, String.valueOf(tOeExamRecord.getId()), tOeExamRecord.getObjectiveScore()));
|
|
|
+ if (Objects.nonNull(objectiveScorePush) && objectiveScorePush) {
|
|
|
+ cloudMarkUtil.callStudentObjectiveScoreApi(new StudentObjectiveScoreParams(orgId, cloudMarkExamId, String.valueOf(tOeExamRecord.getId()), tOeExamRecord.getObjectiveScore()));
|
|
|
+ }
|
|
|
|
|
|
OpenRecordNeedMarkBean openRecordNeedMarkBean = GsonUtil.fromJson(GsonUtil.toJson(tOeExamRecord), OpenRecordNeedMarkBean.class);
|
|
|
List<OpenRecordAnswerTempBean> answersTemp = examAnswerService.findByExamRecordId(tOeExamRecord.getId());
|