From 3635a1df87e3a12d61b2a1bd7de2984475c4f71a Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期五, 16 五月 2025 16:23:47 +0800 Subject: [PATCH] 修改查询机房和查询电源下拉返回为对象 --- src/main/resources/mapper/StationInfMapper.xml | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mapper/StationInfMapper.xml b/src/main/resources/mapper/StationInfMapper.xml index 0331c38..775d9ee 100644 --- a/src/main/resources/mapper/StationInfMapper.xml +++ b/src/main/resources/mapper/StationInfMapper.xml @@ -110,8 +110,8 @@ </if> </where> </select> - <select id="getStationByUid" resultType="java.lang.String"> - select distinct station_name from db_station.tb_station_inf + <select id="getStationByUid" resultType="StationInf"> + select distinct * from db_station.tb_station_inf <where> <if test="provice!=null"> and provice=#{provice} @@ -131,8 +131,8 @@ </if> </where> </select> - <select id="getPowerByUid" resultType="java.lang.String"> - select distinct power_name from db_station.tb_power_inf,db_station.tb_station_inf + <select id="getPowerByUid" resultType="PowerInf"> + select distinct * from db_station.tb_power_inf,db_station.tb_station_inf <where> tb_power_inf.station_id=tb_station_inf.station_id <if test="provice!=null"> -- Gitblit v1.9.1