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

This commit is contained in:
wushaofeng 2020-12-29 17:34:50 +08:00
parent 57c275e242
commit 21ee444e3f
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ public class ExaminationPaperProductionController extends BaseApiController {
private final ExaminationPaperProductionService examinationPaperProductionService;
@RequestMapping(value = "/production", method = RequestMethod.GET)
@RequestMapping(value = "/production", method = RequestMethod.POST)
public RestResponse paperProduction(@RequestBody @Valid ExaminationProductionVM examinationProductionVM){
List<Question> questionList = examinationPaperProductionService.generation(examinationProductionVM);
return RestResponse.ok(questionList);

View File

@ -237,9 +237,9 @@
>
select
<include refid="Base_Column_List"/>
from <foreach collection=""t_question
from t_question
<where>
q.deleted=0
deleted=0
<if test="difficult != null">
and difficult = #{difficult}
</if>