Parcourir la source

Merge branch 'release' of gitadmin/tuoheng_air_monitor into master

tags/v1.0.2
wanjing il y a 1 an
Parent
révision
73d3e8be16
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. +4
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/query/QueryAirDataListService.java

+ 4
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/query/QueryAirDataListService.java Voir le fichier

@@ -3,6 +3,7 @@ package com.tuoheng.admin.service.airData.query;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.write.style.column.SimpleColumnWidthStyleStrategy;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.tuoheng.admin.constant.SystemConstant;
@@ -182,10 +183,11 @@ public class QueryAirDataListService {
* @return
*/
private AirDataExport checkAirDataExport(String id) {
AirDataExport airDataExport = airDataExportMapper.selectOne(Wrappers.<AirDataExport>lambdaQuery()
AirDataExport airDataExport = airDataExportMapper.selectOne(new LambdaQueryWrapper<AirDataExport>()
.eq(AirDataExport::getInspectionId, id)
.eq(AirDataExport::getExportType, "data")
.eq(AirDataExport::getMark, MarkEnum.VALID.getCode()));
.eq(AirDataExport::getMark, MarkEnum.VALID.getCode())
.last("limit 1"));
return airDataExport;
}


Chargement…
Annuler
Enregistrer