|
@@ -9,7 +9,14 @@
|
|
|
SELECT CONCAT(d.ancestors,',',d.dept_id) ancestors,d.dept_id,d.dept_name FROM (
|
|
|
SELECT dept_id FROM centerevent_t_eventcatalogue
|
|
|
WHERE event_status_value IN ( 'forest_event_status_2', 'forest_event_status_5', 'forest_event_status_6' )
|
|
|
- AND DATEDIFF( create_time, now()) = 0 AND event_type IN ( ${id} ) AND data_status = '0'
|
|
|
+ AND DATEDIFF( create_time, now()) = 0
|
|
|
+ <choose>
|
|
|
+ <when test="id != null and id != ''">
|
|
|
+ AND event_type_xl IN ( ${id} )
|
|
|
+ </when>
|
|
|
+ <otherwise>AND event_type = '1'</otherwise>
|
|
|
+ </choose>
|
|
|
+ AND data_status = '0'
|
|
|
) a
|
|
|
LEFT JOIN ${database_system}.sys_dept d ON d.dept_id = a.dept_id
|
|
|
<if test="deptId != null and deptId != ''">
|