opt:1.修改远程下发任务限制.2.巡航模式下限制接收配送任务。3.优化国际化。4.站点按照名称排序。
This commit is contained in:
@@ -5,9 +5,7 @@ import org.nl.logging.annotation.Log;
|
||||
import org.nl.map.service.MapService;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @author dsh
|
||||
@@ -25,4 +23,10 @@ public class MapInfoController {
|
||||
public ResponseEntity<Object> queryCurrentMapInfo() {
|
||||
return new ResponseEntity<>(mapService.queryCurrentMapInfo(), HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/syncCurrentMapData")
|
||||
@Log("同步当前地图最新数据")
|
||||
public ResponseEntity<Object> syncCurrentMapData() {
|
||||
return new ResponseEntity<>(null,HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package org.nl.map.provider;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.api.map.api.MapAPI;
|
||||
@@ -31,7 +32,7 @@ public class MapAPIProvider implements MapAPI {
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> getAllStationList() {
|
||||
List<Station> stations = mapStationService.list();
|
||||
List<Station> stations = mapStationService.list(new LambdaQueryWrapper<>(Station.class).orderByAsc(Station::getStation_name));
|
||||
return stations.stream()
|
||||
.map(station -> BeanUtil.beanToMap(station, false, true))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
Reference in New Issue
Block a user