From 5fd51c437819f1c9d027a936db4ba2ee7cd2e053 Mon Sep 17 00:00:00 2001
From: ustcyc <yincun@163.com>
Date: 星期二, 07 一月 2025 15:02:58 +0800
Subject: [PATCH] 升级架构

---
 zhitan-system/src/main/resources/mapper/peakvalley/ElectricityDataItemMapper.xml |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/zhitan-system/src/main/resources/mapper/peakvalley/ElectricityDataItemMapper.xml b/zhitan-system/src/main/resources/mapper/peakvalley/ElectricityDataItemMapper.xml
index 6680811..2676c7d 100644
--- a/zhitan-system/src/main/resources/mapper/peakvalley/ElectricityDataItemMapper.xml
+++ b/zhitan-system/src/main/resources/mapper/peakvalley/ElectricityDataItemMapper.xml
@@ -27,5 +27,26 @@
         AND (data_time BETWEEN #{startTime} AND #{endTime})
         AND time_type = #{timeType}
     </select>
+    <select id="getDataStatisticsDeviationAnalysis"
+            resultType="com.zhitan.peakvalley.domain.ElectricityDataItem">
+        SELECT
+        index_code indexCode,
+        time_code timeCode,
+        electricity_type electricityType,
+        data_time dataTime,
+        electricity,
+        "cost",
+        time_type timeType,
+        price,
+        remark
+        FROM
+        "electricity_data_item"
+        WHERE
+        index_id IN
+        <foreach collection="indexIdSet" item="indexId" open="(" separator="," close=")">
+            #{indexId}
+        </foreach>
 
+        AND time_type = #{timeType}
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3