Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1d0783d1
authored
Nov 20, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(两点间里程和耗时查询): 参数设置错误
1 parent
9b164c12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/PeaApiController.java
project-order/src/main/java/com/dituhui/pea/order/controller/PeaApiController.java
View file @
1d0783d
...
...
@@ -71,8 +71,6 @@ public class PeaApiController {
private
final
IPath
path
;
private
static
final
String
stage
=
"{\"orderId\": \"X10001\", \"engineerCode\": \"E12005\", \"engineerName\": \"祝枝山\", \"engineerCodeAssist\": \"E12446\", \"engineerNameAssist\": \"李晓阳\", \"planVisitTime\": \"2023-07-27 12:00:00\", \"realtimeInfo\": {\"engineerLocation\": {\"latitude\": 31.349701, \"longitude\": 120.675945, \"address\": \"江苏省苏州市苏州工业园区和顺路\", \"name\": \"和顺大酒店\"}, \"estimate\": {\"distance\": 2300, \"arriveTime\": \"2023-07-27 12:12:00\"}}}"
;
/**
* 3.1GET 查询技术员日历
*
...
...
@@ -346,7 +344,7 @@ public class PeaApiController {
DistanceParam
distanceParam
=
new
DistanceParam
();
distanceParam
.
setOrigin
(
new
Location
(
origin
.
getLongitude
(),
origin
.
getLatitude
()));
distanceParam
.
set
Origi
n
(
new
Location
(
destination
.
getLongitude
(),
destination
.
getLatitude
()));
distanceParam
.
set
Destinatio
n
(
new
Location
(
destination
.
getLongitude
(),
destination
.
getLatitude
()));
distanceParam
.
setVehicle
(
param
.
getVehicle
());
DistanceDTO
locationDistance
=
path
.
getLocationDistance
(
distanceParam
);
...
...
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