类型映射、空列表允许
This commit is contained in:
parent
ac2848d647
commit
3f5e3afc64
@ -86,7 +86,7 @@ public class RspBikeInfo {
|
||||
*/
|
||||
private String bikeNumber;
|
||||
|
||||
private double longitude;
|
||||
private Double longitude;
|
||||
|
||||
private double latitude;
|
||||
private Double latitude;
|
||||
}
|
||||
|
||||
@ -204,9 +204,11 @@ 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());
|
||||
}
|
||||
});
|
||||
return bikeInfos;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user