Browse Source

获取机场列表数据

tags/v1.3.1
chengwang 1 year ago
parent
commit
dcb9627e3b
5 changed files with 10 additions and 7 deletions
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/config/WebSocketConfig.java
  2. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/AirPortController.java
  3. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/AirportService.java
  4. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/AirportServiceImpl.java
  5. +4
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetAirportListService.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/config/WebSocketConfig.java View File

@@ -4,7 +4,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration
//@Configuration
public class WebSocketConfig {

/**

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/AirPortController.java View File

@@ -28,8 +28,8 @@ public class AirPortController {
* 获取巡检机场
*/
@GetMapping("/list")
public JsonResult getList(List<Long> ids) {
return airportService.getAirportList(ids);
public JsonResult getList() {
return airportService.getAirportList();
}
/**
* 获取巡检线路

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/AirportService.java View File

@@ -8,7 +8,7 @@ import java.util.List;

public interface AirportService {

JsonResult getAirportList(List<Long> ids);
JsonResult getAirportList();

JsonResult getAirLineList(String sn,Long id);


+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/AirportServiceImpl.java View File

@@ -31,8 +31,8 @@ public class AirportServiceImpl implements AirportService {
private GetAirportVideoService getAirportVideoService;

@Override
public JsonResult getAirportList(List<Long> ids) {
return getAirportListService.getAirportList(ids);
public JsonResult getAirportList() {
return getAirportListService.getAirportList();
}

@Override

+ 4
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetAirportListService.java View File

@@ -6,6 +6,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Slf4j
@@ -15,7 +16,9 @@ public class GetAirportListService {
@Autowired
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);


Loading…
Cancel
Save