首页bug修改

This commit is contained in:
gongjiale 2024-12-04 16:46:14 +08:00
parent c21fc355a6
commit 9e4d29f9c9
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@
SELECT d.sn AS "sn", SELECT d.sn AS "sn",
p.dept_name AS "factoryName", p.dept_name AS "factoryName",
pp.dept_name AS "gangqu", pp.dept_name AS "gangqu",
r.report_time as "reportTime",
r.ds AS "ds", r.ds AS "ds",
r.zt AS "level" r.zt AS "level"
FROM th_device d FROM th_device d
@ -34,7 +35,7 @@
JOIN sys_dept p ON d.dept_id = p.dept_id JOIN sys_dept p ON d.dept_id = p.dept_id
LEFT JOIN sys_dept pp ON p.parent_id = pp.dept_id LEFT JOIN sys_dept pp ON p.parent_id = pp.dept_id
WHERE WHERE
r.REPORT_TIME = TO_DATE(#{date}, 'YYYY-MM-DD') TRUNC(r.REPORT_TIME) = TO_DATE(#{date}, 'YYYY-MM-DD')
AND (r.zt = '一级报警' OR r.zt = '二级报警') AND (r.zt = '一级报警' OR r.zt = '二级报警')