zxl
2025-05-12 fdcdd41fba7874c045766e3dea54d56d70df73ef
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
@@ -694,9 +694,9 @@
        from t_monitor m
            left join t_yw_point p on m.serial_number = p.serial_number
            left join sys_dept d on p.dept_id = d.dept_id
        where p.online != 0 and p.examine_status = 1
        where  p.examine_status = 1
    </select>
<!--上方修改了  p.online != 0 and-->
    <update id="updateOnlineFromUyOrHk">
        <foreach collection="onlineList" item="online" separator=";">
            UPDATE