wangliang há 4 anos atrás
pai
commit
4380c1417b

+ 7 - 7
distributed-print-business/src/main/resources/mapper/ExamDetailMapper.xml

@@ -276,24 +276,24 @@
                 exam_student ab
             GROUP BY exam_detail_course_id) d ON c.id = d.exam_detail_course_id
         <where>
-            c.school_id = #{schoolId}
+                and c.school_id = #{schoolId}
             <if test="printPlanId != null and printPlanId != ''">
-                a.id = #{printPlanId}
+                and a.id = #{printPlanId}
             </if>
             <if test="status != null and status != ''">
-                b.status = #{status}
+                and b.status = #{status}
             </if>
             <if test="examPlace != null and examPlace != ''">
-                b.exam_place = #{examPlace}
+                and b.exam_place = #{examPlace}
             </if>
             <if test="examRoom != null and examRoom != ''">
-                b.exam_room = #{examRoom}
+                and b.exam_room = #{examRoom}
             </if>
             <if test="examStartTime != null and examStartTime != ''">
-                b.exam_start_time &gt; #{examStartTime}
+                and b.exam_start_time &gt; #{examStartTime}
             </if>
             <if test="examEndTime != null and examEndTime != ''">
-                b.exam_end_time &lt; #{examEndTime}
+                and b.exam_end_time &lt; #{examEndTime}
             </if>
         </where>
     </select>