|
@@ -431,29 +431,28 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getHousingConstructionEventCount" parameterType="VisuForestCloudMapVO" resultType="map">
|
|
|
- select label_1,IFNULL(label_2,0) label_2,label_3,IFNULL(label_4,0) label_4 from (
|
|
|
- select count(*) label_1 from centerevent_t_eventcatalogue
|
|
|
- where event_status_value in
|
|
|
- ('forest_event_status_7','forest_event_status_2','forest_event_status_5','forest_event_status_6' )
|
|
|
- <if test="day != null and day != ''">
|
|
|
- and DATE_FORMAT(create_time,'%Y-%m-%d') = #{day}
|
|
|
- </if>
|
|
|
- <if test="createBy != null and createBy != ''">
|
|
|
- and create_by in ( ${createBy} )
|
|
|
- </if>
|
|
|
- and event_type = 1) a, (
|
|
|
- select sum(event_type_xl in ( '1201','1202','1203','1204','1205' )) label_2, 0 label_3, sum(event_type_xl in (
|
|
|
- '1206','1207' )) label_4
|
|
|
- from (
|
|
|
- select event_type_xl from centerevent_t_eventcatalogue
|
|
|
- where 1=1
|
|
|
- <if test="day != null and day != ''">
|
|
|
- and DATE_FORMAT(create_time,'%Y-%m-%d') = #{day}
|
|
|
- </if>
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- and create_by = #{deptId}
|
|
|
- </if>
|
|
|
- and event_type = 12) t) b
|
|
|
+ select label_1,IFNULL(label_2,0) label_2, IFNULL(label_3,0) label_3,IFNULL(label_4,0) label_4 from (
|
|
|
+ select count(*) label_1 from centerevent_t_eventcatalogue
|
|
|
+ where event_status_value in ('forest_event_status_7','forest_event_status_2','forest_event_status_5','forest_event_status_6' )
|
|
|
+ <if test="day != null and day != ''">
|
|
|
+ and DATE_FORMAT(create_time,'%Y-%m-%d') = #{day}
|
|
|
+ </if>
|
|
|
+ <if test="createBy != null and createBy != ''">
|
|
|
+ and create_by in ( ${createBy} )
|
|
|
+ </if> and event_type = 1
|
|
|
+ ) a, (
|
|
|
+ select sum(event_type_xl in ( '1201','1202','1203','1204','1205' )) label_2, sum(event_type_xl in ( '802' )) label_3, sum(event_type_xl in ( '1206','1207' )) label_4
|
|
|
+ from (
|
|
|
+ select event_type_xl from centerevent_t_eventcatalogue
|
|
|
+ where 1=1
|
|
|
+ <if test="day != null and day != ''">
|
|
|
+ and DATE_FORMAT(create_time,'%Y-%m-%d') = #{day}
|
|
|
+ </if>
|
|
|
+ <if test="deptId != null and deptId != ''">
|
|
|
+ and create_by = #{deptId}
|
|
|
+ </if>
|
|
|
+ and event_type in (12,8)) t
|
|
|
+ ) b
|
|
|
</select>
|
|
|
|
|
|
<select id="getHousingConstructionEventList" parameterType="VisuForestCloudMapVO"
|