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