完成试卷生成的方法 test2--By Ternece

This commit is contained in:
wushaofeng 2020-12-29 17:17:23 +08:00
parent e4b01330ae
commit 57c275e242
2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,5 @@
package com.mindskip.xzs.service.impl;
import com.github.pagehelper.PageHelper;
import com.mindskip.xzs.domain.Question;
import com.mindskip.xzs.repository.BaseMapper;
import com.mindskip.xzs.repository.QuestionMapper;
@ -27,7 +26,6 @@ public class ExaminationPaperProductionServiceImpl extends BaseServiceImpl<Quest
@Override
public List<Question> generation(ExaminationProductionVM examinationProductionVM) {
return PageHelper.startPage(examinationProductionVM.getPageIndex(),examinationProductionVM.getPageSize()).doSelectPage(()->
questionMapper.selectQuestionsByQuestionsNumber(examinationProductionVM));
return questionMapper.selectQuestionsByQuestionsNumber(examinationProductionVM);
}
}

View File

@ -237,7 +237,7 @@
>
select
<include refid="Base_Column_List"/>
from t_question
from <foreach collection=""t_question
<where>
q.deleted=0
<if test="difficult != null">
@ -254,7 +254,7 @@
</foreach>
</if>
</where>
group by skill_id
limit #{questionNumber}
</select>