whycxzp
2025-06-11 02ccfc21d5d4f767bbd92ecda89cdfcc3283728c
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>