From 56dba6294342aa571197298669d04618b4f7258f Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 29 十一月 2024 17:23:59 +0800
Subject: [PATCH] 读取累计点

---
 iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml b/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml
index 9371aa9..bdf1e3d 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml
+++ b/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml
@@ -236,4 +236,29 @@
         </where>
     </select>
 
+    <select id="getCumulatePoint" resultType="com.iailab.module.data.point.dto.DaPointDTO">
+        SELECT
+        t1.point_no,
+        t1.point_name,
+        t1.default_value,
+        t1.point_type,
+        t1.data_type,
+        t1.store_type,
+        t1.minfreqid,
+        t2.moment_point,
+        t2.length,
+        t2.divisor
+        FROM t_da_point t1
+        LEFT JOIN t_da_cumulate_point t2 ON t2.point_id = t1.id
+        <where>
+            t1.point_type =  #{pointType}
+            <if test="isEnable != null">
+                AND t1.is_enable = #{isEnable}
+            </if>
+            <if test="minfreqid != null and minfreqid != ''">
+                AND t1.minfreqid = #{minfreqid}
+            </if>
+        </where>
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3