Search in sources :

Example 1 with PurchaseInboundOrderResult

use of com.whoiszxl.factory.PurchaseInboundOrderResult in project shopzz by whoiszxl.

the class UpdateStockHandler method doExecute.

@Override
protected PurchaseInboundOrderResult doExecute(PurchaseOrderResponse purchaseOrderResponse) {
    // 通过库存更新工厂创建一个采购入库库存更新组件来更新
    WmsStockUpdater wmsStockUpdater = stockUpdaterFactory.create(WmsStockUpdateEventConstants.PURCHASE_INBOUND, purchaseOrderResponse);
    wmsStockUpdater.update();
    return new PurchaseInboundOrderResult(true);
}
Also used : PurchaseInboundOrderResult(com.whoiszxl.factory.PurchaseInboundOrderResult) WmsStockUpdater(com.whoiszxl.stock.WmsStockUpdater)

Example 2 with PurchaseInboundOrderResult

use of com.whoiszxl.factory.PurchaseInboundOrderResult in project shopzz by whoiszxl.

the class UpdateStockHandler method doExecute.

@Override
protected PurchaseInboundOrderResult doExecute(PurchaseOrderDTO purchaseOrderDTO) {
    // 通过库存更新工厂创建一个采购入库库存更新组件来更新
    WmsStockUpdater wmsStockUpdater = stockUpdaterFactory.create(WmsStockUpdateEventConstants.PURCHASE_INBOUND, purchaseOrderDTO);
    wmsStockUpdater.update();
    return new PurchaseInboundOrderResult(true);
}
Also used : PurchaseInboundOrderResult(com.whoiszxl.factory.PurchaseInboundOrderResult) WmsStockUpdater(com.whoiszxl.stock.WmsStockUpdater)

Aggregations

PurchaseInboundOrderResult (com.whoiszxl.factory.PurchaseInboundOrderResult)2 WmsStockUpdater (com.whoiszxl.stock.WmsStockUpdater)2