From d82b68b61c86db91acebce81326731501457d722 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Tue, 18 Aug 2020 15:45:46 +0800
Subject: [PATCH] 预测o3_8H计算,实测增加保良值
---
src/main/resources/mapper/DeviceMapper.xml | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mapper/DeviceMapper.xml b/src/main/resources/mapper/DeviceMapper.xml
index 196e7ee..f62fd7a 100644
--- a/src/main/resources/mapper/DeviceMapper.xml
+++ b/src/main/resources/mapper/DeviceMapper.xml
@@ -385,11 +385,10 @@
case when h.json->"$.e18[0]"=0 then 0.1 else h.json->"$.e18[0]" end
as windSpeed, h.json->"$.e23[0]" as windDir,
h.json->"$.e17[0]" as tVoc
- from ${table} h ,`device` as d
+ from ${table} as h ,`device` as d
where d.mac=h.mac and h.time=#{time}
- and d.mac in (select d.mac from device , monitor_point as m where d.monitor_point_id=m.id and m.id=#{id})
+ and d.mac in (select d.mac from device , monitor_point as m where d.monitor_point_id=m.id and m.id=#{id})
</select>
-
<select id="getDevicesStateByRegion" resultType="map">
SELECT
--
Gitblit v1.8.0