| | |
| | | sort |
| | | FROM blade_region |
| | | where 1=1 |
| | | and district_code like concat(#{region.districtCode},'%') |
| | | <if test="region.districtCode!=null and region.districtCode!=''"> |
| | | and district_code like concat(#{region.districtCode},'%') |
| | | </if> |
| | | <if test="region.parentCode!=null and region.parentCode!=''"> |
| | | and parent_code = #{region.parentCode} |
| | | </if> |
| | |
| | | jg.sort |
| | | FROM blade_region br |
| | | right join jczz_grid jg on jg.community_code = br.village_code and jg.is_deleted = 0 |
| | | where jg.grid_code = #{regionCode} |
| | | where ( |
| | | jg.grid_code = #{regionCode} |
| | | or jg.community_code = #{regionCode} |
| | | or br.town_code = #{regionCode} |
| | | or br.district_code = #{regionCode} |
| | | or br.city_code = #{regionCode} |
| | | ) |
| | | </select> |
| | | |
| | | <!--查询公安相关的区域数据--> |