|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.ozs.common.core.domain.entity.SysDictData;
|
|
|
import com.ozs.common.core.redis.RedisCache;
|
|
|
import com.ozs.common.utils.ApiTokenUtils;
|
|
|
+import com.ozs.common.utils.AppendUtils;
|
|
|
import com.ozs.common.utils.ChineseToPingyin;
|
|
|
import com.ozs.common.utils.HeartbeatUtils;
|
|
|
import com.ozs.common.utils.HttpClientUtil;
|
|
@@ -1397,6 +1398,7 @@ public class GeoHazardMonitorTokenController {
|
|
|
}
|
|
|
baseRouteMassage.setCreateTime(new Date());
|
|
|
baseRouteMassage.setStationName("博野站");
|
|
|
+ baseRouteMassage.setMileagePosition(11111);
|
|
|
baseRouteMassageService.save(baseRouteMassage);
|
|
|
return "200";
|
|
|
}
|
|
@@ -1408,7 +1410,12 @@ public class GeoHazardMonitorTokenController {
|
|
|
*/
|
|
|
@GetMapping("/api/getRouteMassageList")
|
|
|
public List<BaseRouteMassage> getRouteMassageList() {
|
|
|
- return baseRouteMassageService.list();
|
|
|
+ List<BaseRouteMassage> list = baseRouteMassageService.list();
|
|
|
+ for (BaseRouteMassage baseRouteMassage : list) {
|
|
|
+ String mils = AppendUtils.stringAppend(baseRouteMassage.getMileagePosition());
|
|
|
+ baseRouteMassage.setMileagePositionName(mils);
|
|
|
+ }
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
|