Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -51,7 +51,7 @@ public class TkInspectionRecordServiceImpl extends AbstractBaseService<TkInspect |
51 | 51 | condition.setTenantId(tenantId); |
52 | 52 | List<TkInspectionPlanDTO> tkInspectionPlanDTOList = tkInspectionPlanService.selectByCondition(condition); |
53 | 53 | if (CollectionUtils.isEmpty(tkInspectionPlanDTOList)) { |
54 | - return new TkPageData<>(); | |
54 | + return new TkPageData<>(new ArrayList<>(0), 0); | |
55 | 55 | } |
56 | 56 | |
57 | 57 | List<String> inspectionPlanIdList = tkInspectionPlanDTOList.stream().map(TkInspectionPlanDTO::getId).collect(Collectors.toList()); |
... | ... | @@ -77,7 +77,7 @@ public class TkInspectionRecordServiceImpl extends AbstractBaseService<TkInspect |
77 | 77 | String deviceId = queryMap.get("deviceId").toString(); |
78 | 78 | List<String> inspectionRecordIdList = tkInspectionDetailsService.getDeviceRetaInspectionRecordId(deviceId); |
79 | 79 | if (CollectionUtils.isEmpty(inspectionRecordIdList)) { |
80 | - return new TkPageData<>(); | |
80 | + return new TkPageData<>(new ArrayList<>(0), 0); | |
81 | 81 | } |
82 | 82 | |
83 | 83 | lambda.in(TkInspectionRecordEntity::getId, inspectionRecordIdList); | ... | ... |