Просмотр исходного кода

根据机场返航

tags/v1.2.0^2
chengwang 1 год назад
Родитель
Сommit
c6cd7eaa44
5 измененных файлов: 21 добавлений и 0 удалений
  1. +5
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/Inspection.java
  2. +5
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/accident/AccidentFlightRequest.java
  3. +5
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/inspection/AddInspectionRequest.java
  4. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/PointFlightService.java
  5. +5
    -0
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/entity/Inspection.java

+ 5
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/Inspection.java Просмотреть файл

@@ -83,6 +83,11 @@ public class Inspection extends BaseEntity {
*/
private Integer airportId;

/**
* 巡检无人机id
*/
private Integer droneId;

/**
* 巡检机场名称
*/

+ 5
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/accident/AccidentFlightRequest.java Просмотреть файл

@@ -29,6 +29,11 @@ public class AccidentFlightRequest {
*/
private Integer airportId;

/**
* 巡检机场id
*/
private Integer droneId;

/**
* 巡检机场名称
*/

+ 5
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/inspection/AddInspectionRequest.java Просмотреть файл

@@ -28,6 +28,11 @@ public class AddInspectionRequest {
*/
private Integer airportId;

/**
* 巡检机场
*/
private Integer droneId;

/**
* 巡检机场名称
*/

+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/PointFlightService.java Просмотреть файл

@@ -141,6 +141,7 @@ public class PointFlightService {
inspection.setCreateTime(DateUtils.now());
inspection.setAccidentTask(1);
inspection.setIsLive(1);
inspection.setDroneId(request.getDroneId());
int result = inspectionMapper.insert(inspection);
if(result<=0){
log.info("创建应急任务失败");

+ 5
- 0
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/entity/Inspection.java Просмотреть файл

@@ -79,6 +79,11 @@ public class Inspection extends BaseEntity {
*/
private Integer airportId;

/**
* 巡检无人机id
*/
private Integer droneId;

/**
* 巡检机场名称
*/

Загрузка…
Отмена
Сохранить