刘帅
2026-09-17 b3221701c387ab536adf66cf315c75d3b429fe04
cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
@@ -61,7 +61,7 @@
    </select>
    <select id="queryProvince" resultType="map">
        select * from (
        select provinceCode as code, province as name from t_store where state = 1
        select provinceCode as code, MIN(province) as name from t_store where state = 1
         <if test="null != cityCode and '' != cityCode">
             and cityCode = #{cityCode}
         </if>
@@ -72,7 +72,7 @@
    <select id="queryCity" resultType="map">
        select * from (
        select cityCode as code, city as name from t_store where state = 1 and provinceCode = #{provinceCode}
        select cityCode as code, MIN(city) as name from t_store where state = 1 and provinceCode = #{provinceCode}
        <if test="null != cityCode and '' != cityCode">
            and cityCode = #{cityCode}
        </if>
@@ -82,7 +82,7 @@
    <select id="queryCity2" resultType="map">
        select * from (
        select cityCode as code, city as name
        select cityCode as code, MIN(city) as name
        from t_store where state = 1 and provinceCode = #{provinceCode}
        <if test="null != cityCode and '' != cityCode">
            and cityCode = #{cityCode}
@@ -99,7 +99,7 @@
    <select id="queryCity1" resultType="map">
        select * from (
        select cityCode as code, city as name from t_store where state = 1
        select cityCode as code, MIN(city) as name from t_store where state = 1
        group by cityCode
        ) as aa order by aa.code
    </select>
@@ -280,4 +280,4 @@
            #{item}
        </foreach>
    </select>
</mapper>
</mapper>