瀏覽代碼

Merge branch 'develop' of gitadmin/tuoheng_air_monitor into release

tags/V1.0.1
chengwang 1 年之前
父節點
當前提交
f56f2d64dd
共有 1 個檔案被更改,包括 1 行新增3 行删除
  1. +1
    -3
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/syncdata/SyncAirDataService.java

+ 1
- 3
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/syncdata/SyncAirDataService.java 查看文件

@@ -144,12 +144,10 @@ public class SyncAirDataService {

private Inspection getInspection(String serial) {
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>()

.eq(Inspection::getEquipmentMountCode, serial)
.eq(Inspection::getStatus, InspectionStatusEnum.IN_FLIGHT.getCode())
.eq(Inspection::getMark, MarkEnum.VALID.getCode())
.orderByDesc(Inspection::getCreateTime)
.last(" limit 1"));
.orderByDesc(Inspection::getCreateTime));
if (ObjectUtil.isNull(inspection)) {
return null;
}

Loading…
取消
儲存