提交 ee77bd3c authored 作者: liuhaiquan's avatar liuhaiquan

附近的车增加校验

上级 e66910f8
......@@ -170,9 +170,14 @@ public class TruckServiceImpl implements TruckService {
@Override
public PageData<PageTruckListVO> getVicinityTruckList(PageVicinityTruckListParam param) {
GeoResults<RedisGeoCommands.GeoLocation<String>> sortResult = this.vicinityTruckList(param.getOrderNo(),100000,10);
if(Objects.isNull(sortResult)){
return new PageData<>();
}
Map<String,Integer> truckStatusMap = this.getTruckStatusMap();
List<PageTruckListVO> list = new ArrayList<>();
List<GeoResult<RedisGeoCommands.GeoLocation<String>>> content = sortResult.getContent();
for(GeoResult<RedisGeoCommands.GeoLocation<String>> item : content){
String truckNo = item.getContent().getName();
//默认重车过滤掉
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论