提交答案添加判断
This commit is contained in:
parent
2473d83ba3
commit
43965116f5
|
@ -158,6 +158,9 @@ public class EvaluationServiceImpl implements IEvaluationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
List<SysEvaluationAnswer> answerAdd = MapstructUtils.convert(answerList, SysEvaluationAnswer.class);
|
List<SysEvaluationAnswer> answerAdd = MapstructUtils.convert(answerList, SysEvaluationAnswer.class);
|
||||||
|
if (answerAdd.stream().anyMatch(entity -> entity.getAnswerId() == null)) {
|
||||||
|
throw new ServiceException("有题目未作选择,请检查后提交");
|
||||||
|
}
|
||||||
evaluationAnswerMapper.insertBatch(answerAdd);
|
evaluationAnswerMapper.insertBatch(answerAdd);
|
||||||
//
|
//
|
||||||
List<SysEvaluationConclusionVo> list;
|
List<SysEvaluationConclusionVo> list;
|
||||||
|
|
Loading…
Reference in New Issue