Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
Details
Activity
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
常超
map-parent
Commits
82e9ef77
Commit
82e9ef77
authored
Oct 11, 2022
by
YANGYANG
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/skyp_Api' into skyp_Api
parents
02be66c6
66a4ece5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
service/publicapi/src/main/java/com/founder/publicapi/controller/SkDataOperation/SkPointlocationController.java
+4
-2
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/SkPointlocationMapper.xml
+1
-1
No files found.
service/publicapi/src/main/java/com/founder/publicapi/controller/SkDataOperation/SkPointlocationController.java
View file @
82e9ef77
...
...
@@ -164,7 +164,9 @@ public class SkPointlocationController extends ApiController implements ExcelCon
queryWrapper
.
le
(
"str_to_date(date,'%Y-%m-%d %H:%i:%s')"
,
skPointlocationParam
.
getJssj
());
}
List
<
Point
>
geoametrys
=
skPointlocationParam
.
getGeometrys
();
if
(
geoametrys
!=
null
){
if
(
geoametrys
.
size
()>
0
)
{
// 多个点位即为多边形
if
(
geoametrys
.
size
()>
1
)
{
...
...
@@ -180,9 +182,9 @@ public class SkPointlocationController extends ApiController implements ExcelCon
}
else
if
(
StringUtils
.
isNotEmpty
(
skPointlocationParam
.
getRadius
())){
queryWrapper
.
apply
(
"ST_Distance_Sphere(coordinates, POINT("
+
geoametrys
.
get
(
0
).
getX
()+
","
+
geoametrys
.
get
(
0
).
getY
()
+
")) < "
+
skPointlocationParam
.
getRadius
());
}
}
else
{
return
MapRestResult
.
error
(
"边界数据必传!"
);
}
}
IPage
page1
=
skPointlocationService
.
page
(
page
,
queryWrapper
);
return
new
MapRestResult
(
200
,
"OK"
,
page1
.
getTotal
(),
page1
.
getRecords
());
...
...
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/SkPointlocationMapper.xml
View file @
82e9ef77
...
...
@@ -25,7 +25,7 @@
#{y},
#{skPointlocation.address},
#{skPointlocation.objecttype},
#{
skPointlocation.
objectname},
#{objectname},
#{time},
#{skPointlocation.date},
'0',
...
...
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