|
|
|
@ -31,6 +31,7 @@ import org.springblade.core.tool.utils.ObjectUtil;
|
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
|
import org.springframework.scheduling.annotation.Async; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
|
|
|
|
|
import java.time.LocalDate; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
@ -266,10 +267,19 @@ public class AsyncDataServiceImpl implements IAsyncDataService {
|
|
|
|
|
orderQueryWrapper.eq("status", 1) |
|
|
|
|
.eq("main_id", mainId) |
|
|
|
|
.eq("is_deleted", 0); |
|
|
|
|
List<MtFactoryOrder> mtFactoryOrders = mtFactoryOrderService.list(orderQueryWrapper); |
|
|
|
|
|
|
|
|
|
List<ServiceNumEntity> serviceNumEntityList = new ArrayList<>(); |
|
|
|
|
log.info("#########handlerMtDataToHt: 待处理的订单数量为{}", mtFactoryOrders.size()); |
|
|
|
|
MtFactoryOrderMain mtFactoryOrderMain = mtFactoryOrderMainService.getById(mainId); |
|
|
|
|
|
|
|
|
|
if(StringUtil.isBlank(mtFactoryOrderMain.getCenterWarehouseName())||!(mtFactoryOrderMain.getCenterWarehouseName().contains("汇通")) ){ |
|
|
|
|
log.info("################handlerMtDataToHt: 这个派车单不推送到老系统 派车单号 {}",mtFactoryOrderMain.getInvoiceOrderCode()); |
|
|
|
|
return ; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<MtFactoryOrder> mtFactoryOrders = mtFactoryOrderService.list(orderQueryWrapper); |
|
|
|
|
log.info("#########handlerMtDataToHt: 待处理的订单数量为{}", mtFactoryOrders.size()); |
|
|
|
|
|
|
|
|
|
for (MtFactoryOrder mtFactoryOrder : mtFactoryOrders) { |
|
|
|
|
Long orderId = mtFactoryOrder.getId(); |
|
|
|
|
Integer advanceId = null; |
|
|
|
|