mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-23 16:49:49 +08:00
update 后管
This commit is contained in:
@@ -188,8 +188,14 @@ public class PileStationInfoServiceImpl implements PileStationInfoService {
|
|||||||
if (StringUtils.isNotBlank(pileStationInfo.getMatchCars())) {
|
if (StringUtils.isNotBlank(pileStationInfo.getMatchCars())) {
|
||||||
vo.setSelectMatchCars(Lists.newArrayList(pileStationInfo.getMatchCars().split(",")));
|
vo.setSelectMatchCars(Lists.newArrayList(pileStationInfo.getMatchCars().split(",")));
|
||||||
}
|
}
|
||||||
vo.setStationLat(pileStationInfo.getStationLat());
|
|
||||||
vo.setStationLng(pileStationInfo.getStationLng());
|
// 数据库保存的是GCJ02坐标,需要转换成天地图使用的WGS84坐标
|
||||||
|
if (StringUtils.isNotBlank(pileStationInfo.getStationLat()) && StringUtils.isNotBlank(pileStationInfo.getStationLng())) {
|
||||||
|
CoordinateUtil.Coordinate coordinate = CoordinateUtil.gcj02ToWgs84(Double.parseDouble(pileStationInfo.getStationLat()), Double.parseDouble(pileStationInfo.getStationLng()));
|
||||||
|
vo.setStationLat(String.valueOf(coordinate.getLat()));
|
||||||
|
vo.setStationLng(String.valueOf(coordinate.getLng()));
|
||||||
|
}
|
||||||
|
|
||||||
vo.setCountryCode(pileStationInfo.getCountryCode());
|
vo.setCountryCode(pileStationInfo.getCountryCode());
|
||||||
vo.setConstruction(pileStationInfo.getConstruction());
|
vo.setConstruction(pileStationInfo.getConstruction());
|
||||||
vo.setBusinessHours(pileStationInfo.getBusinessHours());
|
vo.setBusinessHours(pileStationInfo.getBusinessHours());
|
||||||
@@ -407,7 +413,6 @@ public class PileStationInfoServiceImpl implements PileStationInfoService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pileStationInfo.setUpdateBy(SecurityUtils.getUsername());
|
pileStationInfo.setUpdateBy(SecurityUtils.getUsername());
|
||||||
pileStationInfo.setUpdateTime(DateUtils.getNowDate());
|
pileStationInfo.setUpdateTime(DateUtils.getNowDate());
|
||||||
int i = pileStationInfoMapper.updatePileStationInfo(pileStationInfo);
|
int i = pileStationInfoMapper.updatePileStationInfo(pileStationInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user