zxl
2025-03-28 d384786ab5868cd4d856691372eee5359e7d9b2c
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