From 9e4d29f9c986883b29459bb1b42cd1bff9907383 Mon Sep 17 00:00:00 2001 From: gongjiale <942894820@qq.com> Date: Wed, 4 Dec 2024 16:46:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RuoYi-Vue-Oracle/src/main/resources/mybatis/oil/HomeMapper.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RuoYi-Vue-Oracle/src/main/resources/mybatis/oil/HomeMapper.xml b/RuoYi-Vue-Oracle/src/main/resources/mybatis/oil/HomeMapper.xml index 1097df9..3f88bde 100644 --- a/RuoYi-Vue-Oracle/src/main/resources/mybatis/oil/HomeMapper.xml +++ b/RuoYi-Vue-Oracle/src/main/resources/mybatis/oil/HomeMapper.xml @@ -27,6 +27,7 @@ SELECT d.sn AS "sn", p.dept_name AS "factoryName", pp.dept_name AS "gangqu", + r.report_time as "reportTime", r.ds AS "ds", r.zt AS "level" FROM th_device d @@ -34,7 +35,7 @@ JOIN sys_dept p ON d.dept_id = p.dept_id LEFT JOIN sys_dept pp ON p.parent_id = pp.dept_id 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 = '二级报警')