* 获取巡检机场 | * 获取巡检机场 | ||||
*/ | */ | ||||
@GetMapping("/list") | @GetMapping("/list") | ||||
public JsonResult getList(List<Long> ids) { | |||||
return airportService.getAirportList(ids); | |||||
public JsonResult getList() { | |||||
return airportService.getAirportList(); | |||||
} | } | ||||
/** | /** | ||||
* 获取巡检线路 | * 获取巡检线路 |
public interface AirportService { | public interface AirportService { | ||||
JsonResult getAirportList(List<Long> ids); | |||||
JsonResult getAirportList(); | |||||
JsonResult getAirLineList(String sn,Long id); | JsonResult getAirLineList(String sn,Long id); | ||||
private GetAirportVideoService getAirportVideoService; | private GetAirportVideoService getAirportVideoService; | ||||
@Override | @Override | ||||
public JsonResult getAirportList(List<Long> ids) { | |||||
return getAirportListService.getAirportList(ids); | |||||
public JsonResult getAirportList() { | |||||
return getAirportListService.getAirportList(); | |||||
} | } | ||||
@Override | @Override |
import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
import org.springframework.stereotype.Service; | import org.springframework.stereotype.Service; | ||||
import java.util.ArrayList; | |||||
import java.util.List; | import java.util.List; | ||||
@Slf4j | @Slf4j | ||||
@Autowired | @Autowired | ||||
private TZHLGetAirportListService tzhlGetAirportListService; | private TZHLGetAirportListService tzhlGetAirportListService; | ||||
public JsonResult getAirportList(List<Long> ids) { | |||||
public JsonResult getAirportList() { | |||||
List<Long> ids = new ArrayList<>(); | |||||
ids.add(null); | |||||
//读取全量机场列表数据 | //读取全量机场列表数据 | ||||
JsonResult result = tzhlGetAirportListService.getAirportList(ids); | JsonResult result = tzhlGetAirportListService.getAirportList(ids); | ||||