diff --git a/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java b/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java index 8d9725f4..0f182432 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/controller/WmsToWCSmissionController.java @@ -115,6 +115,15 @@ public class WmsToWCSmissionController { } + /** + * 手持 --包材采购单采购收货查询--新的用于卡住没有报检的 + */ + + @PostMapping("/PurchaseOrderPdaT") + public AjaxResult PurchaseOrderPdaT(@RequestBody OdsProcureOrder odsProcureOrder) { + List orderList = odsProcureOrderService.PurchaseOrderPdaT(odsProcureOrder); + return success(orderList); + } /** * 手持 --包材采购单采购收货操作 */ diff --git a/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOrderMapper.java b/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOrderMapper.java index a9a34763..562e3ec1 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOrderMapper.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOrderMapper.java @@ -125,4 +125,6 @@ public interface OdsProcureOrderMapper { public void updateodsProcureOrderCardByu1(OdsProcureOrder order1); String selectBaseProductAttached(@Param("order1MaterialCode")String order1MaterialCode); + + public List selectOdsProcureOrderListT(OdsProcureOrder odsProcureOrder); } diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/IOdsProcureOrderService.java b/op-modules/op-wms/src/main/java/com/op/wms/service/IOdsProcureOrderService.java index 7c65f012..086b6340 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/IOdsProcureOrderService.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/IOdsProcureOrderService.java @@ -158,4 +158,6 @@ public interface IOdsProcureOrderService { void OutboundPostingzcSAPTS(List orderList); void OutboundPostingzcSAPTH(List orderList); + + List PurchaseOrderPdaT(OdsProcureOrder odsProcureOrder); } diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java index b9a8c9f4..4061ef7e 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java @@ -1750,6 +1750,13 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService { } } + @Override + public List PurchaseOrderPdaT(OdsProcureOrder odsProcureOrder) { + DynamicDataSourceContextHolder.push("ds_" + odsProcureOrder.getFactoryCode()); + odsProcureOrder.setOperationNumber(new BigDecimal("1")); + return odsProcureOrderMapper.selectOdsProcureOrderListT(odsProcureOrder); + } + @Override @DS("#header.poolName") diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOrderMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOrderMapper.xml index 1970c0f1..f5e91856 100644 --- a/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOrderMapper.xml +++ b/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOrderMapper.xml @@ -127,7 +127,48 @@ order by Create_Date desc - +