|
@@ -290,7 +290,7 @@
|
|
<select id="getEventCountGroupByYearMonth" parameterType="VisuForestCloudMapVO"
|
|
<select id="getEventCountGroupByYearMonth" parameterType="VisuForestCloudMapVO"
|
|
resultType="java.util.LinkedHashMap">
|
|
resultType="java.util.LinkedHashMap">
|
|
select day,count(*) daycount from (
|
|
select day,count(*) daycount from (
|
|
- select DATE_FORMAT(a.create_time,'%Y-%m') day
|
|
|
|
|
|
+ select DATE_FORMAT(a.create_time,#{day}) day
|
|
from centerevent_t_eventcatalogue a
|
|
from centerevent_t_eventcatalogue a
|
|
left join centerevent_t_dept_event d on d.event_code = a.event_code and d.event_status_value !=
|
|
left join centerevent_t_dept_event d on d.event_code = a.event_code and d.event_status_value !=
|
|
'forest_event_status_3'
|
|
'forest_event_status_3'
|
|
@@ -298,7 +298,7 @@
|
|
where a.event_status_value in ('forest_event_status_2','forest_event_status_5','forest_event_status_6')
|
|
where a.event_status_value in ('forest_event_status_2','forest_event_status_5','forest_event_status_6')
|
|
and data_status = '0'
|
|
and data_status = '0'
|
|
<if test="yearMonth != null and yearMonth.size > 0">
|
|
<if test="yearMonth != null and yearMonth.size > 0">
|
|
- and DATE_FORMAT(a.create_time,'%Y-%m') in
|
|
|
|
|
|
+ and DATE_FORMAT(a.create_time,#{day}) in
|
|
<foreach item="item" collection="yearMonth" open="(" separator="," close=")">
|
|
<foreach item="item" collection="yearMonth" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|