Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
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
micro_app
gk
Commits
0adffe7b
Commit
0adffe7b
authored
Apr 27, 2020
by
sunyuhua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动打卡的代码
parent
67d7fdc4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
RoadsGpsCheckpointController.java
...e/jadp/plugins/cmpt/web/RoadsGpsCheckpointController.java
+14
-0
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/RoadsGpsCheckpointController.java
View file @
0adffe7b
...
@@ -69,6 +69,7 @@ public class RoadsGpsCheckpointController {
...
@@ -69,6 +69,7 @@ public class RoadsGpsCheckpointController {
* @return
* @return
*/
*/
@RequestMapping
(
"getGpsCheckPointByRoadId/{cmptId}/{roadId}"
)
@RequestMapping
(
"getGpsCheckPointByRoadId/{cmptId}/{roadId}"
)
@ResponseBody
public
Result
getGpsCheckPointByRoadId
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
@PathVariable
(
"roadId"
)
Integer
roadId
){
public
Result
getGpsCheckPointByRoadId
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
@PathVariable
(
"roadId"
)
Integer
roadId
){
RoadGpsPoint
roadGpsPoint
=
roadService
.
getGps
(
roadId
);
RoadGpsPoint
roadGpsPoint
=
roadService
.
getGps
(
roadId
);
String
points
=
roadGpsPoint
.
getPoints
();
String
points
=
roadGpsPoint
.
getPoints
();
...
@@ -99,4 +100,17 @@ public class RoadsGpsCheckpointController {
...
@@ -99,4 +100,17 @@ public class RoadsGpsCheckpointController {
int
count
=
roadsGpsCheckpointService
.
batchSaveOrUpdate
(
roadsGpsCheckpointMapList
);
int
count
=
roadsGpsCheckpointService
.
batchSaveOrUpdate
(
roadsGpsCheckpointMapList
);
return
Result
.
success
().
setContent
(
count
);
return
Result
.
success
().
setContent
(
count
);
}
}
/**
* 获取已经保存到数据库的带gps的打卡点列表
* @param cmptId
* @param roadId
* @return
*/
@RequestMapping
(
"getRoadsGpsCheckpoint/{cmptId}/{roadId}"
)
@ResponseBody
public
Result
getRoadsGpsCheckpoint
(
@PathVariable
(
"cmptId"
)
int
cmptId
,
@PathVariable
(
"roadId"
)
int
roadId
)
{
List
<
RoadsGpsCheckpointMap
>
roadsGpsCheckpointMapList
=
roadsGpsCheckpointService
.
getRoadsGpsCheckpoint
(
cmptId
,
roadId
);
return
Result
.
success
().
setContent
(
roadsGpsCheckpointMapList
);
}
}
}
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