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