puzhibing
2024-03-11 334fbd5f1a5a4e85c198560bd024211ba4cf99b1
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