|
@@ -5,16 +5,16 @@
|
|
<mapper namespace="com.onemap.analyse.mapper.vector.TableDataMapper">
|
|
<mapper namespace="com.onemap.analyse.mapper.vector.TableDataMapper">
|
|
<select id="getRawTable" resultType="Map">
|
|
<select id="getRawTable" resultType="Map">
|
|
SELECT
|
|
SELECT
|
|
- <foreach item="column" collection="columns" separator=",">
|
|
|
|
- <choose>
|
|
|
|
- <when test="column == 'geom'">
|
|
|
|
- public.st_asewkt(${column}) AS geom
|
|
|
|
- </when>
|
|
|
|
- <otherwise>
|
|
|
|
- ${column}
|
|
|
|
- </otherwise>
|
|
|
|
- </choose>
|
|
|
|
- </foreach>
|
|
|
|
|
|
+ public.st_asewkt(geom) AS geom
|
|
|
|
+ <if test="columns != null and columns!='' ">
|
|
|
|
+ <foreach item="column" collection="columns">
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="column != 'geom'">
|
|
|
|
+ ,${column}
|
|
|
|
+ </when>
|
|
|
|
+ </choose>
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
<if test="siweiArea == true">
|
|
<if test="siweiArea == true">
|
|
, public.st_area(
|
|
, public.st_area(
|
|
<choose>
|
|
<choose>
|