mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
打印日志
This commit is contained in:
@@ -191,7 +191,7 @@ public class PileStationInfoServiceImpl implements PileStationInfoService {
|
||||
|
||||
// 数据库保存的是GCJ02坐标,需要转换成天地图使用的WGS84坐标
|
||||
if (StringUtils.isNotBlank(pileStationInfo.getStationLat()) && StringUtils.isNotBlank(pileStationInfo.getStationLng())) {
|
||||
CoordinateUtil.Coordinate coordinate = CoordinateUtil.gcj02ToWgs84(Double.parseDouble(pileStationInfo.getStationLat()), Double.parseDouble(pileStationInfo.getStationLng()));
|
||||
CoordinateUtil.Coordinate coordinate = CoordinateUtil.gcj02ToWgs84(Double.parseDouble(pileStationInfo.getStationLng()), Double.parseDouble(pileStationInfo.getStationLat()));
|
||||
vo.setStationLat(String.valueOf(coordinate.getLat()));
|
||||
vo.setStationLng(String.valueOf(coordinate.getLng()));
|
||||
log.info("高德坐标:{}, 转天地图坐标:{}", pileStationInfo.getStationLng() + ", " + pileStationInfo.getStationLat(), coordinate.getLng() + ", " + coordinate.getLat());
|
||||
|
||||
Reference in New Issue
Block a user