|
@@ -110,8 +110,16 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="list" resultType="com.qmth.distributed.print.business.bean.result.PrintPlanBrief">
|
|
|
- select a.id, a.name, a.status from exam_print_plan a left join sys_user b on a.create_id = b.id
|
|
|
+ select a.id, a.name, a.status
|
|
|
+ from exam_print_plan a
|
|
|
+ left join
|
|
|
+ sys_user b on a.create_id = b.id
|
|
|
+ left join
|
|
|
+ basic_exam be on a.exam_id = be.id
|
|
|
+ left join
|
|
|
+ basic_semester bs on be.semester_id = bs.id
|
|
|
<where>
|
|
|
+ and bs.enable = true and be.enable = true
|
|
|
<if test="schoolId != null and schoolId != ''">
|
|
|
and a.school_id = #{schoolId}
|
|
|
</if>
|