|
|
@ -3,23 +3,21 @@ |
|
|
|
|
|
|
|
|
|
|
|
<select id="getConferenceByUnitAndDate" resultType="com.hnac.hzims.safeproduct.dto.ConferenceExportDTO"> |
|
|
|
<select id="getConferenceByUnitAndDate" resultType="com.hnac.hzims.safeproduct.dto.ConferenceExportDTO"> |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|
t1.unit, t1.scheduled_start_time, t1.scheduled_end_time, t1.theme, t1.location, t1.conference_method, |
|
|
|
unit, scheduled_start_time, scheduled_end_time, theme, location, conference_method, host, conference_status |
|
|
|
t1.host, t2.actual_start_time, t2.actual_end_time, t1.conference_status |
|
|
|
|
|
|
|
FROM |
|
|
|
FROM |
|
|
|
hzims_conference_plan t1 |
|
|
|
hzims_conference_plan |
|
|
|
LEFT JOIN hzims_conference_record t2 ON t1.id = t2.conference_plan_id |
|
|
|
|
|
|
|
WHERE |
|
|
|
WHERE |
|
|
|
t1.is_deleted = 0 |
|
|
|
is_deleted = 0 |
|
|
|
<if test="unit != 'null' and unit != ''"> |
|
|
|
<if test="unit != 'null' and unit != ''"> |
|
|
|
AND t1.unit like concat('%', #{unit}, '%') |
|
|
|
AND unit like concat('%', #{unit}, '%') |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="startTime != 'null' and startTime != ''"> |
|
|
|
<if test="startTime != 'null' and startTime != ''"> |
|
|
|
AND t1.scheduled_start_time >= #{startTime} |
|
|
|
AND scheduled_start_time >= #{startTime} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="endTime != 'null' and endTime != ''"> |
|
|
|
<if test="endTime != 'null' and endTime != ''"> |
|
|
|
AND t1.scheduled_end_time < #{endTime} |
|
|
|
AND scheduled_end_time < #{endTime} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
ORDER BY |
|
|
|
ORDER BY |
|
|
|
t1.create_time DESC |
|
|
|
create_time DESC |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
</mapper> |