小么熊🐻 1 жил өмнө
parent
commit
a7d0896edd

+ 2 - 2
jpcj-service/src/main/resources/mapper/question/QuestionInfoKtNewMapper.xml

@@ -92,8 +92,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="issuemp3 != null  and issuemp3 != ''"> and issuemp3 = #{issuemp3}</if>
             <if test="answermp3 != null  and answermp3 != ''"> and answermp3 = #{answermp3}</if>
             <if test="explainjsmp3 != null  and explainjsmp3 != ''"> and explainjsmp3 = #{explainjsmp3}</if>
-            <if test="model != null  and model != ''"> and model = #{model}</if>
-            <if test="columnAll != null  and columnAll != ''"> and column_all = #{columnAll}</if>
+            <if test="model != null  and model != ''"> AND FIND_IN_SET(#{model}, model)</if>
+            <if test="columnAll != null  and columnAll != ''"> AND FIND_IN_SET(#{columnAll}, column_all)</if>
             <if test="questionType != null "> and question_type = #{questionType}</if>
             <if test="subject != null  and subject != ''"> and subject = #{subject}</if>
             <if test="chapterId != null "> and chapter_id = #{chapterId}</if>