Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周健威
rs-cloud-platform
Commits
2383890f
Commit
2383890f
authored
Feb 11, 2022
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
e5289704
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
rscpImageCoverMapper.xml
...server/src/main/resources/mapper/rscpImageCoverMapper.xml
+20
-10
No files found.
rs-datacenter/rs-datacenter-server/src/main/resources/mapper/rscpImageCoverMapper.xml
View file @
2383890f
...
@@ -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
<if
test=
"oldId != null"
>
ST_Intersection(
st_union(ridt_temp.unrange, oric_temp.range)
<if
test=
"oldId != null"
>
</if>
st_union(ridt_temp.unrange, oric_temp.range)
<if
test=
"oldId == null"
>
</if>
ridt_temp.unrange
<if
test=
"oldId == null"
>
</if>
ridt_temp.unrange
, area_temp.geom) as unrange, cast(st_area(ST_Intersection(
</if>
, 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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment