From 8fc0241701fbc1e942064576d02458921bde9388 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期三, 19 二月 2025 09:48:19 +0800 Subject: [PATCH] 运维监控报表接口统计sql重新编写 --- ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml index 948a7bd..045e962 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml @@ -513,7 +513,7 @@ u.unit_name AS name, CONCAT(MONTH(w.create_time), '鏈�') AS months from - (select count(m.id) as num from t_monitor m where m.serial_number IN (SELECT p.serial_number from t_yw_unit u,t_yw_point p where p.unit_id = u.id and u.id = 21 AND p.examine_status = 1) + (select count(m.id) as num from t_monitor m where m.serial_number IN (SELECT p.serial_number from t_yw_unit u,t_yw_point p where p.unit_id = u.id and u.id = #{unitId} AND p.examine_status = 1) ) as a join t_work_order w -- Gitblit v1.8.0