|
@@ -209,11 +209,11 @@ public class ExamSimulateServiceImpl extends ServiceImpl<ExamSimulateMapper, Exa
|
|
|
add.setUpdateTime(DateUtils.getNowTime());
|
|
add.setUpdateTime(DateUtils.getNowTime());
|
|
|
add.setExamPaperId(exam.getExamPaperId());
|
|
add.setExamPaperId(exam.getExamPaperId());
|
|
|
add.setExamName(exam.getExamName()+"-"+ServletUtils.getEncoded(""));
|
|
add.setExamName(exam.getExamName()+"-"+ServletUtils.getEncoded(""));
|
|
|
- boolean result = this.save(add);
|
|
|
|
|
- Collection<ExamSimulateQuestion> coll = new HashSet<>();
|
|
|
|
|
if(allQ.size()==0){
|
|
if(allQ.size()==0){
|
|
|
throw new CustomException("试卷题目已做完");
|
|
throw new CustomException("试卷题目已做完");
|
|
|
}
|
|
}
|
|
|
|
|
+ boolean result = this.save(add);
|
|
|
|
|
+ Collection<ExamSimulateQuestion> coll = new HashSet<>();
|
|
|
for(int i=0;i<allQ.size();i++){
|
|
for(int i=0;i<allQ.size();i++){
|
|
|
ExamSimulateQuestion addItem = new ExamSimulateQuestion();
|
|
ExamSimulateQuestion addItem = new ExamSimulateQuestion();
|
|
|
addItem.setSimulateExamId(add.getSimulateExamId());
|
|
addItem.setSimulateExamId(add.getSimulateExamId());
|