Browse Source

Merge branch 'develop' of gitadmin/tuoheng_air_monitor into release

tags/v1.0.2
wanjing 1 year ago
parent
commit
7bda997f7e
1 changed files with 4 additions and 2 deletions
  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 View File

import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.alibaba.excel.EasyExcel; import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.write.style.column.SimpleColumnWidthStyleStrategy; 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.CollectionUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.tuoheng.admin.constant.SystemConstant; import com.tuoheng.admin.constant.SystemConstant;
* @return * @return
*/ */
private AirDataExport checkAirDataExport(String id) { 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::getInspectionId, id)
.eq(AirDataExport::getExportType, "data") .eq(AirDataExport::getExportType, "data")
.eq(AirDataExport::getMark, MarkEnum.VALID.getCode()));
.eq(AirDataExport::getMark, MarkEnum.VALID.getCode())
.last("limit 1"));
return airDataExport; return airDataExport;
} }



Loading…
Cancel
Save