|
|
@@ -231,7 +231,8 @@ public class TransportManagerServiceImpl implements TransportManagerService {
|
|
|
ShopDetail shopDetailByShopId = shopDetailService.getShopDetailByShopId(shopId);
|
|
|
System.out.println("门店经度"+shopDetailByShopId.getShopLat());
|
|
|
System.out.println("门店纬度"+shopDetailByShopId.getShopLng());
|
|
|
- double v = calculateDistance(latitude, longitude, Double.valueOf(shopDetailByShopId.getShopLat()), Double.valueOf(shopDetailByShopId.getShopLng()));
|
|
|
+ double v = calculateDistance(latitude, longitude,
|
|
|
+ Double.parseDouble(shopDetailByShopId.getShopLat()), Double.parseDouble(shopDetailByShopId.getShopLng()));
|
|
|
//Transport2 byDistance = transport2Service.findByDistance(shopId, platform);
|
|
|
Transport2 byDistance = transport2Service.findByPlatform(Long.valueOf(platform));
|
|
|
System.out.println("byDistance"+byDistance);
|