运营区
This commit is contained in:
parent
776d37f60a
commit
97a2c56c6c
@ -255,7 +255,7 @@ public class EbikeRegionController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取运营区内车辆。
|
||||
* 获取运营区所属车辆及其位置。
|
||||
*/
|
||||
@GetMapping("getOperationBike")
|
||||
public JsonResult<?> getOperationBike(@RequestParam(value = "regionId") String regionId) {
|
||||
|
||||
@ -1,8 +1,10 @@
|
||||
package com.cdzy.ebikeoperate.service.impl;
|
||||
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.cdzy.common.model.JsonResult;
|
||||
import com.cdzy.common.model.PageParam;
|
||||
import com.cdzy.common.model.ResGPSDto;
|
||||
import com.cdzy.ebikeoperate.enums.EbikeRegionInOperation;
|
||||
import com.cdzy.ebikeoperate.enums.RegionLevelType;
|
||||
import com.cdzy.ebikeoperate.mapper.EbikeAdministrationZoneMapper;
|
||||
@ -198,6 +200,12 @@ public class EbikeOperationRegionServiceImpl extends ServiceImpl<EbikeOperationR
|
||||
if (result.getCode() != 200) {
|
||||
throw new RuntimeException("获取车辆信息失败");
|
||||
}
|
||||
// List<String> ecuSns = new ArrayList<>();
|
||||
// List<Object> objects = redisUtil.multiGet(ecuSns);
|
||||
// List<ResGPSDto> resGPSDtos = objects.stream().map(object -> {
|
||||
// return (ResGPSDto) object;
|
||||
// }).toList();
|
||||
|
||||
List<RspBikeInfo> bikeInfos = result.getData();
|
||||
bikeInfos.forEach(rspBikeInfo -> {
|
||||
RedisPoint redisPoint = map.get(rspBikeInfo.getEcuSn());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user