소스 검색

四维面积保留两位小数

gushoubang 2 달 전
부모
커밋
a4c662a9c0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      onemap-modules/onemap-analyse/src/main/resources/mapper/oracle/vector/TableDateMapper.xml

+ 2 - 2
onemap-modules/onemap-analyse/src/main/resources/mapper/oracle/vector/TableDateMapper.xml

@@ -16,7 +16,7 @@
             </foreach>
         </if>
         <if test="siweiArea == true">
-            , public.st_area(
+            , ROUND(public.st_area(
             <choose>
                 <when test="srid!=null">
                     public.st_transform(geom,#{srid})
@@ -28,7 +28,7 @@
             <if test="isGeography==true">
                 ::public.geography
             </if>
-            ) AS siweiArea
+            )::numeric,2) AS siweiArea
         </if>
         FROM
         "${rawTableName}"