kangwei:隐患排查大屏中的风险库统计增加日常检查次数(查询巡检数)
正在显示
2 个修改的文件
包含
5 行增加
和
1 行删除
... | @@ -8,12 +8,14 @@ | ... | @@ -8,12 +8,14 @@ |
8 | d.depart_name AS depart_name, | 8 | d.depart_name AS depart_name, |
9 | ifnull( dl.fxk_count, 0 ) AS fxk_count, | 9 | ifnull( dl.fxk_count, 0 ) AS fxk_count, |
10 | ifnull( di.yhpc_count, 0 ) AS yhpc_count, | 10 | ifnull( di.yhpc_count, 0 ) AS yhpc_count, |
11 | ifnull( aq.aqyh_count, 0 ) AS aqyh_count | 11 | ifnull( aq.aqyh_count, 0 ) AS aqyh_count, |
12 | ifnull( ir.xj_count, 0 ) AS xj_count | ||
12 | FROM | 13 | FROM |
13 | sys_depart d | 14 | sys_depart d |
14 | LEFT JOIN ( SELECT depart_id, count( id ) fxk_count FROM danger_level_manage WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) dl ON dl.depart_id = d.id | 15 | LEFT JOIN ( SELECT depart_id, count( id ) fxk_count FROM danger_level_manage WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) dl ON dl.depart_id = d.id |
15 | LEFT JOIN ( SELECT depart_id, count( id ) yhpc_count FROM danger_inspection_record WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) di ON di.depart_id = d.id | 16 | LEFT JOIN ( SELECT depart_id, count( id ) yhpc_count FROM danger_inspection_record WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) di ON di.depart_id = d.id |
16 | LEFT JOIN ( SELECT depart_id, count( id ) aqyh_count FROM ajh_rectification_info WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) aq ON aq.depart_id = d.id | 17 | LEFT JOIN ( SELECT depart_id, count( id ) aqyh_count FROM ajh_rectification_info WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) aq ON aq.depart_id = d.id |
18 | LEFT JOIN ( SELECT depart_id, count( id ) xj_count FROM danger_inspection_record WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) ir ON ir.depart_id = d.id | ||
17 | WHERE | 19 | WHERE |
18 | d.depart_type = 1 | 20 | d.depart_type = 1 |
19 | ORDER BY | 21 | ORDER BY | ... | ... |
... | @@ -26,4 +26,6 @@ public class RiskDatabaseResult { | ... | @@ -26,4 +26,6 @@ public class RiskDatabaseResult { |
26 | @ApiModelProperty(value = "隐患排查事件数量") | 26 | @ApiModelProperty(value = "隐患排查事件数量") |
27 | private Integer aqyhCount; | 27 | private Integer aqyhCount; |
28 | 28 | ||
29 | @ApiModelProperty(value = "巡检数量") | ||
30 | private Integer xjCount; | ||
29 | } | 31 | } | ... | ... |
-
请 注册 或 登录 后发表评论