From b146d1a002c4e3b323810f95bea28a1e47e0d680 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 02 十月 2023 11:05:01 +0800
Subject: [PATCH] 接口

---
 ycl-platform/src/main/resources/mapper/smoke/OdsInTimeMapper.xml |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ycl-platform/src/main/resources/mapper/smoke/OdsInTimeMapper.xml b/ycl-platform/src/main/resources/mapper/smoke/OdsInTimeMapper.xml
index 191248e..d0e233a 100644
--- a/ycl-platform/src/main/resources/mapper/smoke/OdsInTimeMapper.xml
+++ b/ycl-platform/src/main/resources/mapper/smoke/OdsInTimeMapper.xml
@@ -42,5 +42,11 @@
     <sql id="Base_Column_List">
         id, string, acquit_at, last_at, c_emissions, c_granule, c_hydrocarbon, emissions_conc, granule_conc, hydrocarbon_conc, fan_status, filter_status, typ, status, velocity, temperature, moisture, locale, lid, owner, addr, emissions_sill, granule_sill, hydrocarbon_sill, link_status, customer_mobile, locale_lng, localelat, fan_current, pur_current, online_status, status_of_record
     </sql>
+    <select id="getInTimeCount" resultType="com.ycl.dto.smoker.InTimeCountDto">
+        SELECT sum(CASE  WHEN  online_status = 1 THEN 1  ELSE 0 END ) onlineCount,
+               count(id) monitor,
+               count(id) devices
+        from ums_ods_in_time
+    </select>
 
 </mapper>

--
Gitblit v1.8.0