|
@@ -359,16 +359,15 @@ public class BCourseInfoServiceImpl extends ServiceImpl<BCourseInfoMapper, BCour
|
|
|
@Override
|
|
@Override
|
|
|
public List<WBusTrackInfoDto> getNearbyRoutes(NearbyRoutesDto nearbyRoutesDto) {
|
|
public List<WBusTrackInfoDto> getNearbyRoutes(NearbyRoutesDto nearbyRoutesDto) {
|
|
|
Integer radius = nearbyRoutesDto.getRadius();
|
|
Integer radius = nearbyRoutesDto.getRadius();
|
|
|
- Integer bigDistance = nearbyRoutesDto.getBigDistance();
|
|
|
|
|
- BigDecimal latitude = nearbyRoutesDto.getLatitude();
|
|
|
|
|
- BigDecimal longitude = nearbyRoutesDto.getLongitude();
|
|
|
|
|
|
|
+ String latitude = nearbyRoutesDto.getLatitude();
|
|
|
|
|
+ String longitude = nearbyRoutesDto.getLongitude();
|
|
|
// 参数验证
|
|
// 参数验证
|
|
|
- if (latitude == null || longitude == null || radius == null || bigDistance == null) {
|
|
|
|
|
|
|
+ if (latitude == null || longitude == null || radius == null ) {
|
|
|
return Collections.emptyList();
|
|
return Collections.emptyList();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 1. 查询附近站点
|
|
// 1. 查询附近站点
|
|
|
- List<BStationInfoDto> nearbyStations = bCourseInfoMapper.findNearbyStations(latitude, longitude, radius,bigDistance);
|
|
|
|
|
|
|
+ List<BStationInfoDto> nearbyStations = bCourseInfoMapper.findNearbyStations(nearbyRoutesDto);
|
|
|
if (CollectionUtil.isEmpty(nearbyStations)) {
|
|
if (CollectionUtil.isEmpty(nearbyStations)) {
|
|
|
return Collections.emptyList();
|
|
return Collections.emptyList();
|
|
|
}
|
|
}
|