Commit 2383890f authored by 周健威's avatar 周健威

修改代码

parent e5289704
...@@ -101,19 +101,29 @@ ...@@ -101,19 +101,29 @@
) )
( (
select temp.unrange, #{type}, #{name}, cast(((cover_acreage/region_acreage) * 100) as numeric(5,2)), #{dateYear}, #{dateMonth}, #{crtTime}, #{updTime}, #{areaCode}, #{areaName}, select temp.unrange, #{type}, #{name}, cast(((cover_acreage/region_acreage) * 100) as numeric(5,2)), #{dateYear}, #{dateMonth}, #{crtTime}, #{updTime}, #{areaCode}, #{areaName},
cover_acreage, region_acreage, #{imageNum} cover_acreage, region_acreage, #{imageNum}, temp.unrange_small
<!-- , ST_SimplifyPreserveTopology(temp.unrange,0.05)--> <!-- , ST_SimplifyPreserveTopology(temp.unrange,0.05)-->
from from
( select ST_Intersection( ( select
ST_Intersection(
<if test="oldId != null"> <if test="oldId != null">
st_union(ridt_temp.unrange, oric_temp.range) st_union(ridt_temp.unrange, oric_temp.range)
</if> </if>
<if test="oldId == null"> <if test="oldId == null">
ridt_temp.unrange ridt_temp.unrange
</if> </if>
, area_temp.geom) as unrange, cast(st_area(ST_Intersection( , area_temp.geom_samll) as unrange_small
, ST_Intersection(
<if test="oldId != null">
st_union(ridt_temp.unrange, oric_temp.range)
</if>
<if test="oldId == null">
ridt_temp.unrange
</if>
, area_temp.geom) as unrange
, cast(st_area(ST_Intersection(
<if test="oldId != null"> <if test="oldId != null">
st_union(ridt_temp.unrange, oric_temp.range) st_union(ridt_temp.unrange, oric_temp.range)
</if> </if>
...@@ -136,7 +146,7 @@ ...@@ -136,7 +146,7 @@
</where> </where>
) ridt_temp ) ridt_temp
, ( , (
select geom from rscp_area_info rai select geom, geom_small from rscp_area_info rai
<where> <where>
<if test="areaCode != null"> <if test="areaCode != null">
and rai.admincode = ''||#{areaCode} and rai.admincode = ''||#{areaCode}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment