Browse Source

获取部门任务

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
87feca36f5
7 changed files with 142 additions and 1 deletions
  1. +15
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/FlightDataController.java
  2. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/InspectionController.java
  3. +86
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/FlightData.java
  4. +11
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/mapper/FlightDataMapper.java
  5. +8
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/IFlightDataService.java
  6. +14
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/FlightDataServiceImpl.java
  7. +7
    -0
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/FlightDataMapper.xml

+ 15
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/FlightDataController.java View File

@@ -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 {


}

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/InspectionController.java View File

@@ -84,7 +84,7 @@ public class InspectionController {
* @param dto
* @return
*/
@GetMapping("/listByAirportId/{airportId}")
@GetMapping("/listByAirportId")
public JsonResult getListByAirportId(InspectionDto dto){
return iInspectionService.getListByAirportId(dto);
}

+ 86
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/FlightData.java View File

@@ -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;


}

+ 11
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/mapper/FlightDataMapper.java View File

@@ -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> {
}

+ 8
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/IFlightDataService.java View File

@@ -0,0 +1,8 @@
package com.tuoheng.admin.service;

/**
* @Author ChengWang
* @Date 2022/12/1
*/
public interface IFlightDataService {
}

+ 14
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/FlightDataServiceImpl.java View File

@@ -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 {
}

+ 7
- 0
tuoheng-service/tuoheng-admin/src/main/resources/mapper/FlightDataMapper.xml View File

@@ -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>

Loading…
Cancel
Save