| | |
| | | </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 |
| | |
| | | city_code = '360800000000' |
| | | and region_level > '2' |
| | | <if test="param2.status!=null"> |
| | | and status = #{param1.status} |
| | | and status = #{param2.status} |
| | | </if> |
| | | <if test="param2.cityCode!=null and param2.cityCode!='' "> |
| | | and code like concat(concat('%', #{param2.cityCode}),'%') |