he2802 před 4 roky
rodič
revize
a6a4177e04

+ 6 - 0
zhongzheng-system/src/main/resources/mapper/modules/bank/ExamMapper.xml

@@ -87,6 +87,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 LEFT JOIN course_project_type cpt ON qb.project_id = cpt.id
                 LEFT JOIN course_project_type cpt ON qb.project_id = cpt.id
                 LEFT JOIN course_business cb ON qb.business_id = cb.id
                 LEFT JOIN course_business cb ON qb.business_id = cb.id
                 LEFT JOIN course_subject cs ON cs.id = qb.subject_id where 1=1
                 LEFT JOIN course_subject cs ON cs.id = qb.subject_id where 1=1
+        <if test="status != null and status.size()!=0 ">
+            AND e.status in
+            <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="educationTypeId != null and educationTypeId != ''">
         <if test="educationTypeId != null and educationTypeId != ''">
             AND cet.id = #{educationTypeId}
             AND cet.id = #{educationTypeId}
         </if>
         </if>

+ 6 - 0
zhongzheng-system/src/main/resources/mapper/modules/bank/QuestionChapterMapper.xml

@@ -72,6 +72,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         LEFT JOIN course_project_type cpt ON qb.project_id = cpt.id
         LEFT JOIN course_project_type cpt ON qb.project_id = cpt.id
         LEFT JOIN course_business cb ON qb.business_id = cb.id
         LEFT JOIN course_business cb ON qb.business_id = cb.id
         LEFT JOIN course_subject cs ON cs.id = qb.subject_id where 1=1
         LEFT JOIN course_subject cs ON cs.id = qb.subject_id where 1=1
+        <if test="status != null and status.size()!=0 ">
+            AND qc.status in
+            <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="educationTypeId != null and educationTypeId != ''">
         <if test="educationTypeId != null and educationTypeId != ''">
             AND cet.id = #{educationTypeId}
             AND cet.id = #{educationTypeId}
         </if>
         </if>

+ 6 - 0
zhongzheng-system/src/main/resources/mapper/modules/bank/QuestionModuleMapper.xml

@@ -70,6 +70,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         LEFT JOIN course_project_type cpt ON qb.project_id = cpt.id
         LEFT JOIN course_project_type cpt ON qb.project_id = cpt.id
         LEFT JOIN course_business cb ON qb.business_id = cb.id
         LEFT JOIN course_business cb ON qb.business_id = cb.id
         LEFT JOIN course_subject cs ON cs.id = qb.subject_id where 1=1
         LEFT JOIN course_subject cs ON cs.id = qb.subject_id where 1=1
+        <if test="status != null and status.size()!=0 ">
+            AND qm.status in
+            <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="educationTypeId != null and educationTypeId != ''">
         <if test="educationTypeId != null and educationTypeId != ''">
             AND cet.id = #{educationTypeId}
             AND cet.id = #{educationTypeId}
         </if>
         </if>