.eq(Inspection::getMark, 1) | .eq(Inspection::getMark, 1) | ||||
.eq(Inspection::getDeptId, deptId) | .eq(Inspection::getDeptId, deptId) | ||||
.eq(Inspection::getAirportId, dto.getAirportId()) | .eq(Inspection::getAirportId, dto.getAirportId()) | ||||
.in(Inspection::getStatus, 10, 15)); | |||||
.in(Inspection::getStatus, 10, 15) | |||||
.orderByDesc(Inspection::getCreateTime)); | |||||
return JsonResult.success(inspections); | return JsonResult.success(inspections); | ||||
} | } |
List<InspectionFile> inspectionFileList = inspectionFileMapper.selectList(Wrappers.<InspectionFile>lambdaQuery() | List<InspectionFile> inspectionFileList = inspectionFileMapper.selectList(Wrappers.<InspectionFile>lambdaQuery() | ||||
.eq(InspectionFile::getMark, 1) | .eq(InspectionFile::getMark, 1) | ||||
.eq(InspectionFile::getTenantId, tenantId)); | .eq(InspectionFile::getTenantId, tenantId)); | ||||
if (null == inspectionFileList) { | |||||
if (CollectionUtil.isEmpty(inspectionFileList)) { | |||||
return JsonResult.error("该覆盖区域范围内没有问题"); | return JsonResult.error("该覆盖区域范围内没有问题"); | ||||
} | } | ||||
for (InspectionFile inspectionFile : inspectionFileList) { | for (InspectionFile inspectionFile : inspectionFileList) { |