From a8da7c463224b9a5bc4628197afe4d9f7d05361c Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期四, 15 六月 2023 19:30:40 +0800
Subject: [PATCH] 出入库调试

---
 igds-api-phone/src/main/resources/mapper/Phone35Mapper.xml |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/igds-api-phone/src/main/resources/mapper/Phone35Mapper.xml b/igds-api-phone/src/main/resources/mapper/Phone35Mapper.xml
index a580638..85edbcd 100644
--- a/igds-api-phone/src/main/resources/mapper/Phone35Mapper.xml
+++ b/igds-api-phone/src/main/resources/mapper/Phone35Mapper.xml
@@ -44,5 +44,23 @@
         <if test="deptId != null and deptId != ''">AND d.DEPT_ID_ = #{deptId}</if>
         ORDER BY d.ID_
     </select>
-
+    <!--瀹炴椂閰嶇數-->
+    <select id="getRealEnergyByDept" resultType="com.ld.igds.phone35.dto.Dto5501" parameterType="java.lang.String">
+        SELECT d.ID_ as depotId,
+        d.NAME_ as depotName,
+        d.DEPOT_TYPE_ as depotType,
+        e.UA_ as ua,
+        e.UB_ as ub,
+        e.UC_ as uc,
+        e.IA_ as ia,
+        e.IB_ as ib,
+        e.IC_ as ic,
+        e.UPDATE_TIME_ as updateTime
+        FROM d_depot d
+        LEFT JOIN d_energy e
+        ON d.ID_ = e.DEPOT_ID_
+        WHERE d.COMPANY_ID_ = #{companyId}
+        <if test="deptId != null and deptId != ''">AND d.DEPT_ID_ = #{deptId}</if>
+        ORDER BY d.ID_
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3