From 22aa9b8a26926c09592f10af981a60879ddd76eb Mon Sep 17 00:00:00 2001 From: 15036302109 Date: Thu, 28 Mar 2024 14:33:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E6=82=A3=E6=95=B0=E6=8D=AE=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=88=86=E6=9E=90=EF=BC=9A=E9=9A=90=E6=82=A3=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E6=A0=B8=E5=AF=B9=EF=BC=8C=E7=82=B9=E5=87=BB=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E6=AF=8F=E9=83=A8=E5=88=86=E4=BF=A1=E6=81=AF=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E6=98=BE=E7=A4=BA=E9=9A=90=E6=82=A3=E7=9A=84?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/ehs/EhsHiddenDangerMapper.xml | 2 + .../mapper/ehs/EhsIndexStatisticsMapper.xml | 12 +- ruoyi-ui/src/views/ehs/ehsExamples/index.vue | 28 +- .../src/views/ehs/ehsExamples/indexDanger.vue | 423 ++++++++++++++++++ 4 files changed, 460 insertions(+), 5 deletions(-) create mode 100644 ruoyi-ui/src/views/ehs/ehsExamples/indexDanger.vue diff --git a/ruoyi-system/src/main/resources/mapper/ehs/EhsHiddenDangerMapper.xml b/ruoyi-system/src/main/resources/mapper/ehs/EhsHiddenDangerMapper.xml index a9376a4..9d9d0e6 100644 --- a/ruoyi-system/src/main/resources/mapper/ehs/EhsHiddenDangerMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/ehs/EhsHiddenDangerMapper.xml @@ -71,6 +71,8 @@ FROM ehs_hidden_danger h LEFT JOIN sys_dept d ON h.dept_id = d.dept_id and FIND_IN_SET( #{assistDept}, assist_dept ) and area_id = #{areaId} and is_Towns = #{isTowns} + and enterprise_scale = #{enterpriseScale} + and economic_type = #{economicType} and DATE_FORMAT(NOW(), '%Y-%m') = DATE_FORMAT( h.check_time, '%Y-%m') and (h.STATUS = 0 or h.STATUS = 5 ) AND DATEDIFF(h.rectify_term_time ,ifnull(h.rectify_time,CURDATE()) )>3 AND DATEDIFF(h.rectify_term_time ,ifnull(h.rectify_time,CURDATE()) ) <= 7 and (h.STATUS = 0 or h.STATUS = 5 ) AND DATEDIFF(h.rectify_term_time ,ifnull(h.rectify_time,CURDATE()) )>=0 AND DATEDIFF(h.rectify_term_time ,ifnull(h.rectify_time,CURDATE()) ) < 3 diff --git a/ruoyi-system/src/main/resources/mapper/ehs/EhsIndexStatisticsMapper.xml b/ruoyi-system/src/main/resources/mapper/ehs/EhsIndexStatisticsMapper.xml index 3192620..9ac10e3 100644 --- a/ruoyi-system/src/main/resources/mapper/ehs/EhsIndexStatisticsMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/ehs/EhsIndexStatisticsMapper.xml @@ -176,7 +176,8 @@ SELECT resultType="map"> SELECT ifnull(d.dict_label,'未知') 'name', - count( 1 ) 'value' + SUM(IFNULL(e.hd_count,0)) 'value', + enterprise_type 'enterpriseType' FROM ehs_hidden_danger e LEFT JOIN sys_dict_data d ON e.enterprise_type = d.dict_value @@ -191,7 +192,8 @@ SELECT resultType="map"> SELECT ifnull(d.dict_label,'未知') 'name', - count( 1 ) 'value' + SUM(IFNULL(e.hd_count,0)) 'value', + economic_type 'economicType' FROM ehs_hidden_danger e LEFT JOIN sys_dict_data d ON e.economic_type = d.dict_value @@ -206,7 +208,8 @@ SELECT resultType="map"> SELECT ifnull(d.dict_label,'未知') 'name', - count( 1 ) 'value' + SUM(IFNULL(e.hd_count,0)) 'value', + enterprise_scale 'enterpriseScale' FROM ehs_hidden_danger e LEFT JOIN sys_dict_data d ON e.enterprise_scale = d.dict_value @@ -236,7 +239,8 @@ SELECT resultType="map"> SELECT ifnull(d.dict_label,'未知') 'name', - SUM(IFNULL(e.hd_count,0)) 'value' + SUM(IFNULL(e.hd_count,0)) 'value', + e.status FROM ehs_hidden_danger e LEFT JOIN sys_dict_data d ON e.status = d.dict_value diff --git a/ruoyi-ui/src/views/ehs/ehsExamples/index.vue b/ruoyi-ui/src/views/ehs/ehsExamples/index.vue index 01a2347..fe8d08c 100644 --- a/ruoyi-ui/src/views/ehs/ehsExamples/index.vue +++ b/ruoyi-ui/src/views/ehs/ehsExamples/index.vue @@ -1,6 +1,7 @@