This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Augcl
/
pet-admin
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
2 Commits
b6aa54be26
...
ab1840a857
Author
SHA1
Message
Date
主管理员
ab1840a857
Merge branch 'master' of
http://175.178.51.79:3000/Augcl/pet-admin
1 month ago
主管理员
6b3e6c2c7e
·1
1 month ago
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
+3
-1
ruoyi-catdog/src/main/java/com/ruoyi/applet/service/impl/IMallOrderServiceImpl.java
+ 3
- 1
ruoyi-catdog/src/main/java/com/ruoyi/applet/service/impl/IMallOrderServiceImpl.java
View File
@ -242,7 +242,9 @@ public class IMallOrderServiceImpl implements IMallOrderService {
/
/
计算两个经纬度之间的距离
(
单位
:
公里
)
private
double
calculateDistance
(
double
lat1
,
double
lon1
,
double
lat2
,
double
lon2
)
{
final
int
R
=
6371
;
/
/
地球半径
(
公里
)
final
int
R
=
6371
;
double
latDistance
=
Math
.
toRadians
(
lat2
-
lat1
)
;
double
lonDistance
=
Math
.
toRadians
(
lon2
-
lon1
)
;
Write
Preview
Loading…
Cancel
Save