|
@@ -3,7 +3,7 @@
|
|
<mapper namespace="com.qmth.distributed.print.business.mapper.TCStatisticsMapper">
|
|
<mapper namespace="com.qmth.distributed.print.business.mapper.TCStatisticsMapper">
|
|
|
|
|
|
<select id="list" resultType="com.qmth.distributed.print.business.bean.dto.TCStatisticsDto">
|
|
<select id="list" resultType="com.qmth.distributed.print.business.bean.dto.TCStatisticsDto">
|
|
- select
|
|
|
|
|
|
+ select temp.* from(select
|
|
t.id,
|
|
t.id,
|
|
t.collegeId,
|
|
t.collegeId,
|
|
t.collegeName,
|
|
t.collegeName,
|
|
@@ -64,22 +64,22 @@
|
|
join exam_print_plan epp on
|
|
join exam_print_plan epp on
|
|
epp.id = tcs.print_plan_id
|
|
epp.id = tcs.print_plan_id
|
|
where
|
|
where
|
|
- epp.school_id = #{schoolId}) t
|
|
|
|
|
|
+ epp.school_id = #{schoolId}) t) temp
|
|
<where>
|
|
<where>
|
|
<if test="collegeId != null and collegeId != ''">
|
|
<if test="collegeId != null and collegeId != ''">
|
|
- and t.collegeId = #{collegeId}
|
|
|
|
|
|
+ and temp.collegeId = #{collegeId}
|
|
</if>
|
|
</if>
|
|
<if test="teachingRoomId != null and teachingRoomId != ''">
|
|
<if test="teachingRoomId != null and teachingRoomId != ''">
|
|
- and t.teachingRoomId = #{teachingRoomId}
|
|
|
|
|
|
+ and temp.teachingRoomId = #{teachingRoomId}
|
|
</if>
|
|
</if>
|
|
<if test="status != null and status != ''">
|
|
<if test="status != null and status != ''">
|
|
- and t.status = #{status}
|
|
|
|
|
|
+ and temp.status = #{status}
|
|
</if>
|
|
</if>
|
|
<if test="courseName != null and courseName != ''">
|
|
<if test="courseName != null and courseName != ''">
|
|
- and t.courseName like concat('%',#{courseName},'%')
|
|
|
|
|
|
+ and temp.courseName like concat('%',#{courseName},'%')
|
|
</if>
|
|
</if>
|
|
<if test="teacherName != null and teacherName != ''">
|
|
<if test="teacherName != null and teacherName != ''">
|
|
- and t.teacherName like concat('%',#{teacherName},'%')
|
|
|
|
|
|
+ and temp.teacherName like concat('%',#{teacherName},'%')
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|