Commit bc999965 authored by 陈立彬's avatar 陈立彬

fix答题

parent df9f4bb1
...@@ -1178,7 +1178,7 @@ public class AppExamineService { ...@@ -1178,7 +1178,7 @@ public class AppExamineService {
// 获取有无答题记录 // 获取有无答题记录
Integer detailRecordId; Integer detailRecordId;
ExamineRecordDetailResponseModel examineRecordDetail = examineService.getExamineRecordDetail(businessCache.getRecordId(), questionId); ExamineRecordDetailResponseModel examineRecordDetail = examineService.getExamineRecordDetail(recordId, questionId);
if(Objects.isNull(examineRecordDetail)) { if(Objects.isNull(examineRecordDetail)) {
// 更新答题数量 // 更新答题数量
ExamineRecordSaveModel saveModel = new ExamineRecordSaveModel(); ExamineRecordSaveModel saveModel = new ExamineRecordSaveModel();
...@@ -1196,6 +1196,12 @@ public class AppExamineService { ...@@ -1196,6 +1196,12 @@ public class AppExamineService {
detailRecordId = detailSaveModel.getId(); detailRecordId = detailSaveModel.getId();
} else { } else {
// 保存单题答题信息
ExamineRecordDetailSaveModel detailSaveModel = new ExamineRecordDetailSaveModel();
detailSaveModel.setId(examineRecordDetail.getId());
detailSaveModel.setAnswer(answer);
examineService.saveExamineRecordDetail(detailSaveModel);
detailRecordId = examineRecordDetail.getId(); detailRecordId = examineRecordDetail.getId();
} }
......
...@@ -172,6 +172,7 @@ public class CommonController { ...@@ -172,6 +172,7 @@ public class CommonController {
log.error("单点登录异常{}", ExceptionUtil.getMessage(e)); log.error("单点登录异常{}", ExceptionUtil.getMessage(e));
} }
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment