记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
ec94d77d
Commit
ec94d77d
authored
Oct 11, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纬度距离计算增加异常处理
parent
1f5e2acc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
KylinPerformancesServiceImpl.java
...vice/kylin/service/impl/KylinPerformancesServiceImpl.java
+7
-3
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinPerformancesServiceImpl.java
View file @
ec94d77d
...
@@ -175,13 +175,17 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
...
@@ -175,13 +175,17 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
performancesInfo
=
checkAppStatusInfo
(
performancesInfo
);
performancesInfo
=
checkAppStatusInfo
(
performancesInfo
);
performancesInfo
.
setMessage
(
KylinPerformanceStatusEnum
.
getName
(
performancesInfo
.
getAppStatus
()));
performancesInfo
.
setMessage
(
KylinPerformanceStatusEnum
.
getName
(
performancesInfo
.
getAppStatus
()));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
debug
(
" ERROR PERFORMANCE DETAILS PERFORMANCE_ID : "
+
performancesId
);
log
.
error
(
" ERROR PERFORMANCE DETAILS PERFORMANCE_ID : "
+
performancesId
);
}
}
// 处理距离
// 处理距离
if
(
longitudeFrom
!=
CommonConst
.
DFT_DOUBLE_VAL
)
{
if
(
longitudeFrom
!=
CommonConst
.
DFT_DOUBLE_VAL
)
{
String
diffDistance
=
DistanceUtil
.
getDistance
(
longitudeFrom
,
latitudeFrom
,
Double
.
parseDouble
(
performancesInfo
.
getLongitude
()),
Double
.
parseDouble
(
performancesInfo
.
getLatitude
()));
try
{
performancesInfo
.
setDiffDistance
(
diffDistance
);
String
diffDistance
=
DistanceUtil
.
getDistance
(
longitudeFrom
,
latitudeFrom
,
Double
.
parseDouble
(
performancesInfo
.
getLongitude
()),
Double
.
parseDouble
(
performancesInfo
.
getLatitude
()));
performancesInfo
.
setDiffDistance
(
diffDistance
);
}
catch
(
Exception
e
)
{
log
.
error
(
"演出详情 经纬度处理距离异常 e:{}"
,
e
);
}
}
}
log
.
info
(
UserPathDto
.
setData
(
"演出详情"
,
"performancesId="
+
performancesId
+
" latitudeFrom="
+
latitudeFrom
+
" longitudeFrom="
+
longitudeFrom
,
performancesInfo
));
log
.
info
(
UserPathDto
.
setData
(
"演出详情"
,
"performancesId="
+
performancesId
+
" latitudeFrom="
+
latitudeFrom
+
" longitudeFrom="
+
longitudeFrom
,
performancesInfo
));
...
...
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