puzhibing
2024-03-11 aa8afb8f18fee21361742b62061b4d4db4a09bb5
cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
@@ -79,6 +79,24 @@
        group by cityCode
        ) as aa order by aa.code
    </select>
    <select id="queryCity2" resultType="map">
        select * from (
        select cityCode as code, city as name
        from t_store where state = 1 and provinceCode = #{provinceCode}
        <if test="null != cityCode and '' != cityCode">
            and cityCode = #{cityCode}
        </if>
        <if test="null != type">
        and `type` = #{type}
        </if>
        <if test="null != operatorId">
        and operatorId = #{operatorId}
        </if>
        group by cityCode
        ) as aa order by aa.code
    </select>
    <select id="queryCity1" resultType="map">
        select * from (
        select cityCode as code, city as name from t_store where state = 1