Browse Source

题库列表

change 3 years ago
parent
commit
f0e5ac3710

+ 5 - 2
zhongzheng-system/src/main/resources/mapper/modules/bank/ExamMapper.xml

@@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="businessId != null and businessId != ''">
             AND qb.business_id = #{businessId}
         </if>
-     <if test="projectId != null and projectId != ''">
+        <if test="projectId != null and projectId != ''">
             AND cpt.project_id = #{projectId}
         </if>
         <if test="examPaperId != null and examPaperId != ''">
@@ -88,7 +88,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND e.publish_status = #{publishStatus}
         </if>
         <if test="examName != null and examName != ''">
-            AND e.exam_name = #{exam_name}
+            AND e.exam_name = like concat('%', #{examName}, '%')
+        </if>
+        <if test="prefixName != null and prefixName != ''">
+            AND e.prefix_name = like concat('%', #{prefixName}, '%')
         </if>
         ORDER BY e.exam_id DESC
     </select>