|
@@ -57,10 +57,10 @@
|
|
|
exam_detail_course
|
|
|
<where>
|
|
|
<if test="courseCode != null and courseCode != ''">
|
|
|
- course_code = #{courseCode}
|
|
|
+ and course_code = #{courseCode}
|
|
|
</if>
|
|
|
<if test="paperNumber != null and paperNumber != ''">
|
|
|
- paper_number = #{paperNumber}
|
|
|
+ and paper_number = #{paperNumber}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY exam_detail_id) c ON b.id = c.exam_detail_id
|
|
@@ -68,22 +68,22 @@
|
|
|
sys_user d on a.create_id = d.id
|
|
|
<where>
|
|
|
<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 > #{examStartTime}
|
|
|
+ and b.exam_start_time > #{examStartTime}
|
|
|
</if>
|
|
|
<if test="examEndTime != null and examEndTime != ''">
|
|
|
- b.exam_end_time < #{examEndTime}
|
|
|
+ and b.exam_end_time < #{examEndTime}
|
|
|
</if>
|
|
|
<if test="orgIds != null">
|
|
|
AND d.org_id IN
|
|
@@ -237,24 +237,35 @@
|
|
|
exam_print_plan a
|
|
|
JOIN
|
|
|
exam_detail b ON a.id = b.print_plan_id
|
|
|
+ JOIN
|
|
|
+ sys_user d on a.create_id = d.id
|
|
|
<where>
|
|
|
+ <if test="schoolId != null and schoolId != ''">
|
|
|
+ and a.school_id = #{schoolId}
|
|
|
+ </if>
|
|
|
<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 > #{examStartTime}
|
|
|
+ and b.exam_start_time > #{examStartTime}
|
|
|
</if>
|
|
|
<if test="examEndTime != null and examEndTime != ''">
|
|
|
- b.exam_end_time < #{examEndTime}
|
|
|
+ and b.exam_end_time < #{examEndTime}
|
|
|
+ </if>
|
|
|
+ <if test="orgIds != null">
|
|
|
+ AND d.org_id IN
|
|
|
+ <foreach collection="orgIds" item="item" index="index" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|