wangming 18 시간 전
부모
커밋
e38bc334a6

+ 2 - 1
yami-shop-delivery/yami-shop-delivery-comment/src/main/java/com/yami/shop/delivery/comment/service/impl/TransportManagerServiceImpl.java

@@ -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);