yangdamao 1 năm trước cách đây
mục cha
commit
1a59b17f24

+ 2 - 1
zhongzheng-system/src/main/resources/mapper/modules/user/UserExamRecordMapper.xml

@@ -683,13 +683,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             </foreach>
         </if>
         <if test="questionIds != null and questionIds.size()!=0 ">
+            AND
             <foreach collection="questionIds" item="item" index="index">
                 <choose>
                     <when test="index == questionIds.size()-1">
                         up.do_question_ids LIKE concat('%', #{item}, '%')
                     </when>
                     <otherwise>
-                        AND up.do_question_ids LIKE concat('%', #{item}, '%') OR
+                        up.do_question_ids LIKE concat('%', #{item}, '%') OR
                     </otherwise>
                 </choose>
             </foreach>