refactor(purchase): 重构代理采购仓库业务逻辑
- 注释掉原有的固定业务流程和收发类别查询代码 - 根据采购订单类型动态查询对应的 U8C 业务流程和收发类别 - 更新了测试用例中的订单编号
This commit is contained in:
parent
fc1b121bd3
commit
d57b18be5c
|
@ -442,9 +442,9 @@ public class ProxyPurchaseWarehousWarehouse extends PluginBaseEntity {
|
|||
// 查询基本档案
|
||||
List<PoOrderSonDto> poOrderSonDtos = queryBasicArchives(returnGoodHeaderDetailsDataDtoList);
|
||||
// 代理品牌采购业务流程
|
||||
BdBusitypeEntity bdBusitypeEntity = u8cOperationFlow();
|
||||
// BdBusitypeEntity bdBusitypeEntity = u8cOperationFlow();
|
||||
// 查询采购收发类别
|
||||
BdRdclEntity bdRdclEntity = rdclUtil.queryRdClObject("102");
|
||||
// BdRdclEntity bdRdclEntity = rdclUtil.queryRdClObject("102");
|
||||
|
||||
if (poOrderSonDtos != null && poOrderSonDtos.size() > 0) {
|
||||
for (int i = 0; i < poOrderSonDtos.size(); i++) {
|
||||
|
@ -471,6 +471,11 @@ public class ProxyPurchaseWarehousWarehouse extends PluginBaseEntity {
|
|||
PoOrderEntity poOrderEntity = poOrderSonDto.getPoOrderEntity();//U8C采购订单
|
||||
List<PoOrderBEntity> poOrderBEntityList = poOrderSonDto.getPoOrderBEntityList();//U8C采购订单明细
|
||||
|
||||
//查询对应的U8C业务流程
|
||||
BdBusitypeEntity bdBusitypeEntity = queryU8CEntityUtil.queryU8cPoOrderOperationFlow(ofsPoOrderDataHeader.getPurchaseOrderType());
|
||||
//查询对应的U8C收发类别
|
||||
BdRdclEntity bdRdclEntity = queryU8CEntityUtil.queryU8cPoOrderRertunSendingReceivCategory(ofsPoOrderDataHeader.getPurchaseOrderType());
|
||||
|
||||
//采购订单表头
|
||||
PurchaseReceiptHeadDto poOrderParentDto = new PurchaseReceiptHeadDto();
|
||||
poOrderParentDto.setCbiztype(bdBusitypeEntity.getPkBusitype());//业务流程
|
||||
|
|
|
@ -26,6 +26,6 @@ public class ProxyPurchaseWarehousWarehouseTest {
|
|||
|
||||
@Test
|
||||
public void startImplementByCode() {
|
||||
proxyPurchaseWarehousWarehouse.startImplementByCode("LETS-RE2024123100000770");
|
||||
proxyPurchaseWarehousWarehouse.startImplementByCode("LETS-RE2025010200000596");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue