From 1c74351afdec0db7e3afdb563d2fafd49f95631c Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期四, 05 六月 2025 14:20:29 +0800
Subject: [PATCH] 单节数量统计导出

---
 src/main/resources/mapper/BattInfMapper.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/BattInfMapper.xml b/src/main/resources/mapper/BattInfMapper.xml
index 0ec27f3..5dcffe5 100644
--- a/src/main/resources/mapper/BattInfMapper.xml
+++ b/src/main/resources/mapper/BattInfMapper.xml
@@ -183,8 +183,9 @@
         </where>
     </select>
     <select id="getMonStatistic" resultType="com.whyc.pojo.db_station.BattInf">
-        select distinct tb_batt_inf.* from db_station.tb_batt_inf
+        select distinct tb_batt_inf.*,tb_station_inf.station_name from db_station.tb_batt_inf,db_station.tb_station_inf
         <where>
+            tb_batt_inf.station_id=tb_station_inf.station_id
             <if test="stic.product!=null">
                 and tb_batt_inf.product=#{stic.product}
             </if>

--
Gitblit v1.9.1