| | |
| | | <result column="area_divide_id" property="areaDivideId"/> |
| | | <result column="area_type_key" property="areaTypeKey"/> |
| | | <result column="area_type_value" property="areaTypeValue"/> |
| | | <result column="geom" property="geom"/> |
| | | <result column="geom_json" property="geomJson"/> |
| | | <result column="area_code" property="areaCode"/> |
| | | </resultMap> |
| | | |
| | | <select id="getByAreaDivideId" resultMap="fwAreaDivideExtResultMap"> |
| | | select |
| | | * |
| | | from ja_fw_area_divide_ext where is_deleted = 0 and area_divide_id = #{areaDivideId} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectFwAreaDivideExtPage" resultMap="fwAreaDivideExtResultMap"> |
| | | select * from ja_fw_area_divide_ext where is_deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="exportFwAreaDivideExt" resultType="org.sxkj.fw.area.excel.FwAreaDivideExtExcel"> |
| | | SELECT * FROM ja_fw_area_divide_ext ${ew.customSqlSegment} |
| | |
| | | area_divide_id, |
| | | area_type_key, |
| | | area_type_value, |
| | | geom, |
| | | geom_json, |
| | | area_code, |
| | | create_user, |
| | | create_dept, |
| | |
| | | #{item.areaDivideId}, |
| | | #{item.areaTypeKey}, |
| | | #{item.areaTypeValue}, |
| | | <choose> |
| | | <when test="item.geom != null and item.geom != ''"> |
| | | case |
| | | when instr(#{item.geom}, '|') > 0 then ST_SRID( |
| | | ST_GeomFromText(trim(substring_index(#{item.geom}, '|', 1))), |
| | | cast(trim(substring_index(#{item.geom}, '|', -1)) as unsigned) |
| | | ) |
| | | else ST_GeomFromText(trim(#{item.geom})) |
| | | end |
| | | </when> |
| | | <otherwise>null</otherwise> |
| | | </choose>, |
| | | #{item.geomJson}, |
| | | #{item.areaCode}, |
| | | #{item.createUser}, |
| | | #{item.createDept}, |
| | | #{item.createTime}, |
| | | #{item.updateUser}, |
| | | #{item.updateTime}, |
| | | IFNULL(#{item.status}, '0'), |
| | | IFNULL(#{item.isDeleted}, 0) |
| | | COALESCE(#{item.status}, '0'), |
| | | COALESCE(#{item.isDeleted}, 0) |
| | | ) |
| | | </foreach> |
| | | </insert> |