类型映射、空列表允许
This commit is contained in:
parent
ac2848d647
commit
3f5e3afc64
@ -86,7 +86,7 @@ public class RspBikeInfo {
|
|||||||
*/
|
*/
|
||||||
private String bikeNumber;
|
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 -> {
|
bikeInfos.forEach(rspBikeInfo -> {
|
||||||
ResGPSDto gpsDto = map.get(rspBikeInfo.getEcuSn());
|
if (map.containsKey(rspBikeInfo.getEcuSn())) {
|
||||||
rspBikeInfo.setLongitude(gpsDto.getLongitude());
|
ResGPSDto gpsDto = map.get(rspBikeInfo.getEcuSn());
|
||||||
rspBikeInfo.setLatitude(gpsDto.getLatitude());
|
rspBikeInfo.setLongitude(gpsDto.getLongitude());
|
||||||
|
rspBikeInfo.setLatitude(gpsDto.getLatitude());
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return bikeInfos;
|
return bikeInfos;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user