完成试卷生成的方法 test2--By Ternece
This commit is contained in:
parent
e4b01330ae
commit
57c275e242
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user