|
@@ -455,131 +455,131 @@ public class SyncOrderInfoLogic {
|
|
|
|
|
|
}
|
|
|
|
|
|
- if (CollectionUtils.isEmpty(feedbackRespList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(feedbackRespList)) {
|
|
|
feedbackRespList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderFeedbackService.saveBatch(feedbackRespList);
|
|
|
}
|
|
|
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderDetailList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderDetailList)) {
|
|
|
tblWorkOrderDetailList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderDetailService.saveBatch(tblWorkOrderDetailList);
|
|
|
}
|
|
|
|
|
|
- if (CollectionUtils.isEmpty(collectionChargeList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(collectionChargeList)) {
|
|
|
collectionChargeList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblCollectionChargeService.saveBatch(collectionChargeList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(collectionChargeDetails)) {
|
|
|
+ if (!CollectionUtils.isEmpty(collectionChargeDetails)) {
|
|
|
collectionChargeDetails.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblCollectionChargeDetailService.saveBatch(collectionChargeDetails);
|
|
|
}
|
|
|
|
|
|
- if (CollectionUtils.isEmpty(tblOldProductOrderDetailList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblOldProductOrderDetailList)) {
|
|
|
tblOldProductOrderDetailList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblOldProductOrderDetailService.saveBatch(tblOldProductOrderDetailList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderAddComplainList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderAddComplainList)) {
|
|
|
tblWorkOrderAddComplainList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderAddComplainService.saveBatch(tblWorkOrderAddComplainList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderAppointList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderAppointList)) {
|
|
|
tblWorkOrderAppointList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderAppointService.saveBatch(tblWorkOrderAppointList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderCancelList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderCancelList)) {
|
|
|
tblWorkOrderCancelList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderCancelService.saveBatch(tblWorkOrderCancelList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderComplainList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderComplainList)) {
|
|
|
tblWorkOrderComplainList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderComplainService.saveBatch(tblWorkOrderComplainList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderComplainFeedbackList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderComplainFeedbackList)) {
|
|
|
tblWorkOrderComplainFeedbackList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderComplainFeedbackService.saveBatch(tblWorkOrderComplainFeedbackList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderCompleteInfoList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderCompleteInfoList)) {
|
|
|
tblWorkOrderCompleteInfoList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderCompleteInfoService.saveBatch(tblWorkOrderCompleteInfoList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderConsultList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderConsultList)) {
|
|
|
tblWorkOrderConsultList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderConsultService.saveBatch(tblWorkOrderConsultList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderDetailBarcodeList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderDetailBarcodeList)) {
|
|
|
tblWorkOrderDetailBarcodeList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderDetailBarcodeService.saveBatch(tblWorkOrderDetailBarcodeList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderDetailRelocationList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderDetailRelocationList)) {
|
|
|
tblWorkOrderDetailRelocationList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderDetailRelocationService.saveBatch(tblWorkOrderDetailRelocationList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderDispatchOutletsList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderDispatchOutletsList)) {
|
|
|
tblWorkOrderDispatchOutletsList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderDispatchOutletsService.saveBatch(tblWorkOrderDispatchOutletsList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderEngineerList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderEngineerList)) {
|
|
|
tblWorkOrderEngineerList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderEngineerService.saveBatch(tblWorkOrderEngineerList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderEvaluationList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderEvaluationList)) {
|
|
|
tblWorkOrderEvaluationList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderEvaluationService.saveBatch(tblWorkOrderEvaluationList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderExtList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderExtList)) {
|
|
|
tblWorkOrderExtList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderExtService.saveBatch(tblWorkOrderExtList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderIndicatorsList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderIndicatorsList)) {
|
|
|
tblWorkOrderIndicatorsList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderIndicatorsService.saveBatch(tblWorkOrderIndicatorsList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderSignList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderSignList)) {
|
|
|
tblWorkOrderSignList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderSignService.saveBatch(tblWorkOrderSignList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderTagList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderTagList)) {
|
|
|
tblWorkOrderTagList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderTagService.saveBatch(tblWorkOrderTagList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(workOrderChargeList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(workOrderChargeList)) {
|
|
|
workOrderChargeList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderChargeService.saveBatch(workOrderChargeList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(workOrderCollectionComplainList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(workOrderCollectionComplainList)) {
|
|
|
workOrderCollectionComplainList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderCollectionComplainService.saveBatch(workOrderCollectionComplainList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderDispatchEngineerList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderDispatchEngineerList)) {
|
|
|
tblWorkOrderDispatchEngineerList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderDispatchEngineerService.saveBatch(tblWorkOrderDispatchEngineerList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(tblWorkOrderStatusList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(tblWorkOrderStatusList)) {
|
|
|
tblWorkOrderStatusList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderStatusService.saveBatch(tblWorkOrderStatusList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(workOrderCollectionList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(workOrderCollectionList)) {
|
|
|
workOrderCollectionList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderCollectionService.saveBatch(workOrderCollectionList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(collectionRepairList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(collectionRepairList)) {
|
|
|
collectionRepairList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblCollectionRepairService.saveBatch(collectionRepairList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(collectionRepairPartList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(collectionRepairPartList)) {
|
|
|
collectionRepairPartList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblCollectionRepairPartService.saveBatch(collectionRepairPartList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(collectionRepairProjectList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(collectionRepairProjectList)) {
|
|
|
collectionRepairProjectList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblCollectionRepairProjectService.saveBatch(collectionRepairProjectList);
|
|
|
}
|
|
|
- if (CollectionUtils.isEmpty(collectionRepairSymptomReasonList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(collectionRepairSymptomReasonList)) {
|
|
|
collectionRepairSymptomReasonList.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblCollectionRepairSymptomReasonService.saveBatch(collectionRepairSymptomReasonList);
|
|
|
}
|
|
|
|
|
|
- if (CollectionUtils.isEmpty(itfTblWorkOrders)) {
|
|
|
+ if (!CollectionUtils.isEmpty(itfTblWorkOrders)) {
|
|
|
itfTblWorkOrders.stream().forEach(item -> item.setDownloadBatchNo(batch));
|
|
|
itfTblWorkOrderService.saveBatch(itfTblWorkOrders);
|
|
|
}
|