|
@@ -208,31 +208,31 @@
|
|
|
ecd.jpg_attachment_info jpgAttachmentInfo
|
|
|
from exam_card ec left join exam_card_detail ecd on ec.id = ecd.card_id
|
|
|
<where>
|
|
|
- school_id = #{schoolId}
|
|
|
+ ec.school_id = #{schoolId}
|
|
|
<if test="type != null and type != ''">
|
|
|
- and type = #{type}
|
|
|
+ and ec.type = #{type}
|
|
|
</if>
|
|
|
<if test="title != null and title != ''">
|
|
|
- and title like concat('%', #{title}, '%')
|
|
|
+ and ec.title like concat('%', #{title}, '%')
|
|
|
</if>
|
|
|
<if test="createMethod != null and createMethod != ''">
|
|
|
- and create_method = #{createMethod}
|
|
|
+ and ec.create_method = #{createMethod}
|
|
|
</if>
|
|
|
<if test="enable != null and enable != '' or enable == 0">
|
|
|
- and enable = #{enable}
|
|
|
+ and ec.enable = #{enable}
|
|
|
</if>
|
|
|
<if test="createStartTime != null and createStartTime != ''">
|
|
|
- and create_time >= #{createStartTime}
|
|
|
+ and ec.create_time >= #{createStartTime}
|
|
|
</if>
|
|
|
<if test="createEndTime != null and createEndTime != ''">
|
|
|
- and create_time <= #{createEndTime}
|
|
|
+ and ec.create_time <= #{createEndTime}
|
|
|
</if>
|
|
|
<if test="dpr != null">
|
|
|
<if test="dpr.requestUserId != null">
|
|
|
- AND create_id = #{dpr.requestUserId}
|
|
|
+ AND ec.create_id = #{dpr.requestUserId}
|
|
|
</if>
|
|
|
<if test="dpr.orgIdSet != null and dpr.orgIdSet != '' and dpr.orgIdSet.size > 0">
|
|
|
- AND org_id IN
|
|
|
+ AND ec.org_id IN
|
|
|
<foreach collection="dpr.orgIdSet" item="item" index="index" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|