Compare commits

..

No commits in common. "b7c504958412643cfe45b4b7d95bff76bad2539e" and "423acc160e58398ffcdb88a86a9b18a76afefeb1" have entirely different histories.

2 changed files with 5 additions and 7 deletions

View File

@ -86,7 +86,7 @@ public class RspBikeInfo {
*/
private String bikeNumber;
private Double longitude;
private double longitude;
private Double latitude;
private double latitude;
}

View File

@ -204,11 +204,9 @@ public class EbikeOperationRegionServiceImpl extends ServiceImpl<EbikeOperationR
});
bikeInfos.forEach(rspBikeInfo -> {
if (map.containsKey(rspBikeInfo.getEcuSn())) {
ResGPSDto gpsDto = map.get(rspBikeInfo.getEcuSn());
rspBikeInfo.setLongitude(gpsDto.getLongitude());
rspBikeInfo.setLatitude(gpsDto.getLatitude());
}
ResGPSDto gpsDto = map.get(rspBikeInfo.getEcuSn());
rspBikeInfo.setLongitude(gpsDto.getLongitude());
rspBikeInfo.setLatitude(gpsDto.getLatitude());
});
return bikeInfos;
}