|
@@ -589,16 +589,27 @@
|
|
LEFT JOIN
|
|
LEFT JOIN
|
|
basic_semester bs on bs.id = be.semester_id
|
|
basic_semester bs on bs.id = be.semester_id
|
|
<where>
|
|
<where>
|
|
- and be.enable = true
|
|
|
|
<if test="schoolId != null and schoolId > 0">
|
|
<if test="schoolId != null and schoolId > 0">
|
|
AND det.school_id = #{schoolId}
|
|
AND det.school_id = #{schoolId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="semesterId != null and semesterId != ''">
|
|
|
|
+ AND bs.id = #{semesterId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="examId != null and examId != ''">
|
|
|
|
+ AND be.id = #{examId}
|
|
|
|
+ </if>
|
|
<if test="printPlanIdList != null and printPlanIdList != '' and printPlanIdList.size() > 0">
|
|
<if test="printPlanIdList != null and printPlanIdList != '' and printPlanIdList.size() > 0">
|
|
AND det.print_plan_id IN
|
|
AND det.print_plan_id IN
|
|
<foreach collection="printPlanIdList" item="item" index="index" open="(" separator="," close=")">
|
|
<foreach collection="printPlanIdList" item="item" index="index" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="courseCode != null and courseCode != ''">
|
|
|
|
+ AND cou.course_code = #{courseCode}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paperNumber != null and paperNumber != ''">
|
|
|
|
+ AND cou.paper_number = #{paperNumber}
|
|
|
|
+ </if>
|
|
<if test="examPlace != null and examPlace != ''">
|
|
<if test="examPlace != null and examPlace != ''">
|
|
AND det.exam_place = #{examPlace}
|
|
AND det.exam_place = #{examPlace}
|
|
</if>
|
|
</if>
|
|
@@ -614,12 +625,6 @@
|
|
<if test="endDate != null and endDate > 0">
|
|
<if test="endDate != null and endDate > 0">
|
|
AND #{endDate} >= det.exam_end_time
|
|
AND #{endDate} >= det.exam_end_time
|
|
</if>
|
|
</if>
|
|
- <if test="semesterId != null and semesterId != ''">
|
|
|
|
- AND bs.id = #{semesterId}
|
|
|
|
- </if>
|
|
|
|
- <if test="examId != null and examId != ''">
|
|
|
|
- AND be.id = #{examId}
|
|
|
|
- </if>
|
|
|
|
<if test="dpr != null">
|
|
<if test="dpr != null">
|
|
<if test="dpr.requestUserId != null">
|
|
<if test="dpr.requestUserId != null">
|
|
AND det.create_id = #{dpr.requestUserId}
|
|
AND det.create_id = #{dpr.requestUserId}
|