Переглянути джерело

获取最新的五条数据

tags/V1.0.1^2
chengwang 1 рік тому
джерело
коміт
500963f112
4 змінених файлів з 164 додано та 2 видалено
  1. +132
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/domain/AirData.java
  2. +4
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/InspectionServiceImpl.java
  3. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryInspectionAndAirportStatusService.java
  4. +27
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryInspectionListDataService.java

+ 132
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/domain/AirData.java Переглянути файл

@@ -0,0 +1,132 @@
package com.tuoheng.admin.entity.domain;

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 2023/5/22
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("th_air_data")
public class AirData extends BaseEntity {

private static final long serialVersionUID = 1L;

/**
* id
*/
private String id;

/**
* 租户ID
*/
private String tenantId;

/**
* 巡检任务ID
*/
private String inspectionId;

/**
* 卫星编号
*/
private Integer sateNum;

/**
* 序号
*/
private Integer sequence;

/**
* 序列号
*/
private String serial;

/**
* 高度
*/
private String altitude;

/**
* 纬度
*/
private String latitude;

/**
* 经度
*/
private String longitude;

/**
* 温度
*/
private String temperature;

/**
* 湿度
*/
private String humidity;

/**
* 水平精度因子
*/
private String hdop;

/**
* 大气压
*/
private String pressure;

/**
* UTC时间
*/
private String cUtcTime;

/**
* 氯气(单位ppm)
*/
private String cl2;

/**
* 一氧化碳(单位ppm)
*/
private String c0;

/**
* 二氧化碳(单位ppm)
*/
private String c02;

/**
* 碳氢化合物(单位%)
*/
private String cxhy;

/**
* 氢气(单位ppm)
*/
private String h2;

















}

+ 4
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/InspectionServiceImpl.java Переглянути файл

@@ -91,6 +91,9 @@ public class InspectionServiceImpl implements IInspectionService {
@Autowired
private QueryInspectionAndAirportStatusService queryInspectionAndAirportStatusService;

@Autowired
private QueryInspectionListDataService queryInspectionListDataService;

/**
* 查询巡任务
* @return
@@ -282,7 +285,7 @@ public class InspectionServiceImpl implements IInspectionService {
*/
@Override
public JsonResult inspectionList() {
return null;
return queryInspectionListDataService.inspectionList();
}

/**

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryInspectionAndAirportStatusService.java Переглянути файл

@@ -73,7 +73,7 @@ public class QueryInspectionAndAirportStatusService {
}
}

return JsonResult.success();
return JsonResult.success(inspectionVoList);
}

private Map<Integer, AirPortStatusVO> getAirPortStatusMap(List<Inspection> inspectionList) {

+ 27
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryInspectionListDataService.java Переглянути файл

@@ -0,0 +1,27 @@
package com.tuoheng.admin.service.inspection.query;

import com.tuoheng.admin.mapper.InspectionMapper;
import com.tuoheng.common.core.utils.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @Author ChengWang
* @Date 2023/5/22
*/
@Slf4j
@Service
public class QueryInspectionListDataService {

@Autowired
private InspectionMapper inspectionMapper;

/**
* 获取最新的五条数据
* @return
*/
public JsonResult inspectionList() {
return null;
}
}

Завантаження…
Відмінити
Зберегти