yangdamao 1 年之前
父節點
當前提交
1a59b17f24
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      zhongzheng-system/src/main/resources/mapper/modules/user/UserExamRecordMapper.xml

+ 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>