@@ -0,0 +1,15 @@ | |||
package com.tuoheng.admin.controller; | |||
import org.springframework.web.bind.annotation.RequestMapping; | |||
import org.springframework.web.bind.annotation.RestController; | |||
/** | |||
* @Author ChengWang | |||
* @Date 2022/12/1 | |||
*/ | |||
@RestController | |||
@RequestMapping("/flightData") | |||
public class FlightDataController { | |||
} |
@@ -84,7 +84,7 @@ public class InspectionController { | |||
* @param dto | |||
* @return | |||
*/ | |||
@GetMapping("/listByAirportId/{airportId}") | |||
@GetMapping("/listByAirportId") | |||
public JsonResult getListByAirportId(InspectionDto dto){ | |||
return iInspectionService.getListByAirportId(dto); | |||
} |
@@ -0,0 +1,86 @@ | |||
package com.tuoheng.admin.entity; | |||
import com.baomidou.mybatisplus.annotation.TableName; | |||
import com.tuoheng.common.core.common.BaseEntity; | |||
import lombok.Data; | |||
import lombok.EqualsAndHashCode; | |||
import lombok.experimental.Accessors; | |||
/** | |||
* @Author ChengWang | |||
* @Date 2022/12/1 | |||
*/ | |||
@Data | |||
@EqualsAndHashCode(callSuper = true) | |||
@Accessors(chain = true) | |||
@TableName("th_flight_data") | |||
public class FlightData extends BaseEntity { | |||
private static final long serialVersionUID = 1L; | |||
/** | |||
* 巡检任务ID | |||
*/ | |||
private Integer inspectionId; | |||
/** | |||
* 云盒SN号 | |||
*/ | |||
private String boxSn; | |||
/** | |||
* 经度 | |||
*/ | |||
private String lng; | |||
/** | |||
* 纬度 | |||
*/ | |||
private String lat; | |||
/** | |||
* 海拔高度 | |||
*/ | |||
private String altitude; | |||
/** | |||
* 相对高度 | |||
*/ | |||
private String ultrasonic; | |||
/** | |||
* 俯仰角 | |||
*/ | |||
private String pitch; | |||
/** | |||
* 横滚角 | |||
*/ | |||
private String roll; | |||
/** | |||
* 航向角 | |||
*/ | |||
private String yaw; | |||
/** | |||
* 空速 | |||
*/ | |||
private String airspeed; | |||
/** | |||
* 地速 | |||
*/ | |||
private String velocity; | |||
/** | |||
* 时间戳 | |||
*/ | |||
private String timestamp; | |||
/** | |||
* 是否是SRT文件数据,1是 | |||
*/ | |||
private Integer isSrt; | |||
} |
@@ -0,0 +1,11 @@ | |||
package com.tuoheng.admin.mapper; | |||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||
import com.tuoheng.admin.entity.FlightData; | |||
/** | |||
* @Author ChengWang | |||
* @Date 2022/12/1 | |||
*/ | |||
public interface FlightDataMapper extends BaseMapper<FlightData> { | |||
} |
@@ -0,0 +1,8 @@ | |||
package com.tuoheng.admin.service; | |||
/** | |||
* @Author ChengWang | |||
* @Date 2022/12/1 | |||
*/ | |||
public interface IFlightDataService { | |||
} |
@@ -0,0 +1,14 @@ | |||
package com.tuoheng.admin.service.impl; | |||
import com.tuoheng.admin.service.IFlightDataService; | |||
import lombok.extern.slf4j.Slf4j; | |||
import org.springframework.stereotype.Service; | |||
/** | |||
* @Author ChengWang | |||
* @Date 2022/12/1 | |||
*/ | |||
@Service | |||
@Slf4j | |||
public class FlightDataServiceImpl implements IFlightDataService { | |||
} |
@@ -0,0 +1,7 @@ | |||
<?xml version="1.0" encoding="UTF-8" ?> | |||
<!DOCTYPE mapper | |||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
<mapper namespace="com.tuoheng.admin.mapper.FlightDataMapper"> | |||
</mapper> |