Browse Source

1.对梦天推送其它仓库的数据不进行处理

newStockUp
pref_mail@163.com 1 year ago
parent
commit
2abda9dd0a
  1. 14
      blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/service/impl/AsyncDataServiceImpl.java

14
blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/service/impl/AsyncDataServiceImpl.java

@ -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;

Loading…
Cancel
Save