gushoubang 1 주 전
부모
커밋
371d33075d
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      onemap-modules/onemap-apply/src/main/resources/mapper/postgresql/gdbh/TGdbhRwGeomMapper.xml

+ 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>