From 02ccfc21d5d4f767bbd92ecda89cdfcc3283728c Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期三, 11 六月 2025 08:38:26 +0800 Subject: [PATCH] Merge branch 'master' of http://118.89.139.230:10101/r/powerIntelligenceSystem into master --- src/main/resources/mapper/StationInfMapper.xml | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/StationInfMapper.xml b/src/main/resources/mapper/StationInfMapper.xml index 8e4c989..f42f909 100644 --- a/src/main/resources/mapper/StationInfMapper.xml +++ b/src/main/resources/mapper/StationInfMapper.xml @@ -179,5 +179,33 @@ </if> </where> </select> + <select id="getStationStatistic" resultType="com.whyc.pojo.db_station.StationInf"> + select distinct * from db_station.tb_station_inf + <where> + <if test="stic.provice!=null"> + and provice=#{stic.provice} + </if> + <if test="stic.city!=null"> + and city=#{stic.city} + </if> + <if test="stic.country!=null"> + and country=#{stic.country} + </if> + <if test="stic.stationName!=null"> + and station_name=#{stic.stationName} + </if> + <if test="stic.stationType!=null"> + and station_type=#{stic.stationType} + </if> + <if test="stic.uid>100"> + and tb_station_inf.station_id in( + select distinct station_id from db_user.tb_baojigroup_power,db_user.tb_baojigroup_usr + where tb_baojigroup_power.baoji_group_id=tb_baojigroup_usr.baoji_group_id + and tb_baojigroup_usr.uid=#{stic.uid} + ) + </if> + order by station_id asc + </where> + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1