From 78087f225a4b90fba36c0c0697bc457cb363a5ab Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期五, 16 五月 2025 16:06:30 +0800
Subject: [PATCH] 新建电源

---
 src/main/resources/mapper/PowerInfMapper.xml |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/PowerInfMapper.xml b/src/main/resources/mapper/PowerInfMapper.xml
index 2d78934..c8b6a79 100644
--- a/src/main/resources/mapper/PowerInfMapper.xml
+++ b/src/main/resources/mapper/PowerInfMapper.xml
@@ -10,6 +10,9 @@
     <select id="getMaxPowerId" resultType="java.lang.Integer">
         select ifnull(max(power_id),0) from  db_station.tb_power_inf where power_id>0;
     </select>
+    <select id="getMaxPowerNum" resultType="java.lang.Integer">
+        select ifnull(max(power_num),0) from  db_station.tb_power_inf where station_id=#{stationId};
+    </select>
     <select id="getPower" resultType="com.whyc.pojo.db_station.PowerInf">
         select tb_power_inf.*,tb_station_inf.station_name,tb_station_inf.provice,tb_station_inf.city,tb_station_inf.country,tb_station_inf.full_name
         from db_station.tb_power_inf,db_station.tb_station_inf
@@ -38,4 +41,5 @@
         </if>
 
     </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1