| | |
| | | |
| | | |
| | | <select id="queryProvince" resultType="map"> |
| | | select * from (select provinceCode as code, province as name from t_store where state = 1 group by provinceCode) as aa order by aa.code |
| | | select * from ( |
| | | select provinceCode as code, province as name from t_store where state = 1 |
| | | <if test="null != cityCode and '' != cityCode"> |
| | | and cityCode = #{cityCode} |
| | | </if> |
| | | group by provinceCode |
| | | ) as aa order by aa.code |
| | | </select> |
| | | |
| | | |
| | | <select id="queryCity" resultType="map"> |
| | | select * from (select cityCode as code, city as name from t_store where state = 1 and provinceCode = #{provinceCode} group by cityCode) as aa order by aa.code |
| | | 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> |
| | | group by cityCode |
| | | ) as aa order by aa.code |
| | | </select> |
| | | </mapper> |