| | |
| | | select district_code from web_site.tb_weather_city2 |
| | | <where> |
| | | <if test="city.province !=null and city.province !='' and city.province!='null'"> |
| | | and province like CONCAT('%',#{city.province},'%' |
| | | and province like CONCAT('%',#{city.province},'%') |
| | | </if> |
| | | <if test="city.city !=null and city.city !='' and city.city!='null'"> |
| | | and city like CONCAT('%',#{city.city},'%' |
| | | and city like CONCAT('%',#{city.city},'%') |
| | | </if> |
| | | <if test="city.district !=null and city.district !='' and city.district!='null'"> |
| | | and district like CONCAT('%',#{city.district},'%' |
| | | and district like CONCAT('%',#{city.district},'%') |
| | | </if> |
| | | </where> |
| | | limit 1 |
| | |
| | | select district_code from web_site.tb_weather_city |
| | | <where> |
| | | <if test="city.province !=null and city.province !='' and city.province!='null'"> |
| | | and province like CONCAT('%',#{city.province},'%' |
| | | and province like CONCAT('%',#{city.province},'%') |
| | | </if> |
| | | <if test="city.city !=null and city.city !='' and city.city!='null'"> |
| | | and city like CONCAT('%',#{city.city},'%' |
| | | and city like CONCAT('%',#{city.city},'%') |
| | | </if> |
| | | <if test="city.district !=null and city.district !='' and city.district!='null'"> |
| | | and district like CONCAT('%',#{city.district},'%' |
| | | and district like CONCAT('%',#{city.district},'%') |
| | | </if> |
| | | </where> |
| | | limit 1 |