| | |
| | | </select> |
| | | |
| | | <select id="exportRegion" resultType="org.sxkj.system.excel.RegionExcel"> |
| | | SELECT * |
| | | FROM blade_region ${ew.customSqlSegment} |
| | | SELECT |
| | | * |
| | | FROM |
| | | blade_region |
| | | <where> |
| | | <if test="regionIds!=null and regionIds.size()>0"> |
| | | and id in |
| | | <foreach item="item" index="index" collection="regionIds" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!--查询parentCode 长度少于12 的--> |
| | |
| | | code, |
| | | parent_code, |
| | | ancestors, |
| | | `name`, |
| | | "name", |
| | | province_code, |
| | | province_name, |
| | | city_code, |
| | |
| | | type, |
| | | sort, |
| | | remark, |
| | | `status`, |
| | | "status", |
| | | CASE |
| | | WHEN |
| | | region_level = '5' THEN town_name |