diff --git a/blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java b/blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java index 1d3315235..968d450f2 100644 --- a/blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java +++ b/blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java @@ -362,6 +362,16 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService { return Resp.fail(400, "未查询到该单据推送收货单信息"); } + if(StringUtil.isBlank(receivingOrderEntity.getCurrentWarehouseOid())){ + log.info(" 该订单为没有收货仓 不进行推送 >>> getCurrentWarehouseOid={} ", receivingOrderEntity.getCurrentWarehouseOid()); + return Resp.fail(400, "收货仓信息不能为null"); + } + if(!receivingOrderEntity.getCurrentWarehouseName().contains("仓")){ + log.info(" 该订单为没有收货仓信息不正确 getCurrentWarehouseName={} ", receivingOrderEntity.getCurrentWarehouseName()); + return Resp.fail(400, "该订单为没有收货仓信息不正确"); + } + + JSONObject detailObject = new JSONObject(); detailObject.put("WarehouseOid", receivingOrderEntity.getCurrentWarehouseOid()); detailObject.put("WarehouseBelong", "oppein");