gushoubang пре 1 недеља
родитељ
комит
371d33075d

+ 2 - 3
onemap-modules/onemap-apply/src/main/resources/mapper/postgresql/gdbh/TGdbhRwGeomMapper.xml

@@ -15,13 +15,12 @@
     </resultMap>
 
     <sql id="selectTGdbhRwGeomVo">
-        select id, public.st_asewkt(geom) geom, rwbsm, geom_json, sort, geomarea
+        select id, public.st_asewkt(geom) geom, rwbsm, geom_json, sort, geomarea,ROUND(geomarea * 666.67, 2) AS siweiarea
         from t_gdbh_rw_geom
     </sql>
 
     <select id="selectTGdbhRwGeomList" parameterType="TGdbhRwGeom" resultMap="TGdbhRwGeomResult">
-        select id, public.st_asewkt(geom) geom, rwbsm, geom_json, sort, geomarea,ROUND(geomarea * 666.67, 2) AS siweiarea from
-        t_gdbh_rw_geom
+        <include refid="selectTGdbhRwGeomVo"/>
         <where>
             <if test="geom != null  and geom != ''">and geom = #{geom}</if>
             <if test="rwbsm != null  and rwbsm != ''">and rwbsm = #{rwbsm}</if>