Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d98a8822
authored
May 12, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
改为post请求
1 parent
4bdd634e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
src/main/java/cn/com/glsx/admin/modules/controller/VehicleMonitorController.java
src/main/java/cn/com/glsx/admin/modules/controller/VehicleMonitorController.java
View file @
d98a882
...
...
@@ -31,7 +31,10 @@ import io.swagger.annotations.ApiResponses;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -134,8 +137,9 @@ public class VehicleMonitorController {
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
StayPointListVO
.
class
),
})
@GetMapping
(
"/stayPointList"
)
public
R
<
List
<
StayPointListVO
>>
queryStayPointList
(
StayPointSearch
search
)
{
@RequestMapping
(
value
=
"/stayPointList"
)
@ResponseBody
public
R
<
List
<
StayPointListVO
>>
queryStayPointList
(
@RequestBody
StayPointSearch
search
)
{
List
<
StayPointListVO
>
stayPointList
=
vehicleMonitorService
.
getStayPointList
(
search
);
return
R
.
ok
().
data
(
stayPointList
);
}
...
...
@@ -143,9 +147,10 @@ public class VehicleMonitorController {
/**
* 设备停留点导出
*/
@GetMapping
(
"/exportStayPoint"
)
@ApiOperation
(
value
=
"设备停留点导出"
)
public
R
<
String
>
exportStayPointList
(
StayPointSearch
search
)
{
@RequestMapping
(
value
=
"/exportStayPoint"
)
@ResponseBody
public
R
<
String
>
exportStayPointList
(
@RequestBody
StayPointSearch
search
)
{
long
t1
=
System
.
currentTimeMillis
();
String
fileName
=
FdfsUtils
.
getFileName
(
"停留点"
);
List
<
StayPointListExport
>
stayPointListExports
=
vehicleMonitorService
.
exportStayPointList
(
search
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment