|
@@ -148,10 +148,21 @@ public class InboundItemService extends BaseService<InboundItem> {
|
|
|
orderItemMapper.updateCost(orderItem);
|
|
orderItemMapper.updateCost(orderItem);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //判断是否是入库的外协品
|
|
|
|
|
+ if(inboundItem.getSkuId() == null && inboundItem.getOutId() == null){
|
|
|
|
|
+ //修改出库明细表
|
|
|
|
|
+ OutboundItemQuery outboundItemQuery = new OutboundItemQuery()
|
|
|
|
|
+ .setFromItemId(inboundItem.getFromItemId())
|
|
|
|
|
+ .setCostPrice(inboundItem.getCostPrice())
|
|
|
|
|
+ .setCostAmt(inboundItem.getCostAmt());
|
|
|
|
|
+ outboundItemMapper.updateOutOrderCost(outboundItemQuery);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//查询存货批次明细
|
|
//查询存货批次明细
|
|
|
InventoryBatchResponse inventoryBatchResponse =
|
|
InventoryBatchResponse inventoryBatchResponse =
|
|
|
inventoryBatchMapper.selectCostCondition(new InventoryBatchQuery().setFromItemId(inboundItem.getItemId()));
|
|
inventoryBatchMapper.selectCostCondition(new InventoryBatchQuery().setFromItemId(inboundItem.getItemId()));
|
|
|
|
|
|
|
|
|
|
+
|
|
|
//外协没有批次
|
|
//外协没有批次
|
|
|
if(inventoryBatchResponse != null && inventoryBatchResponse.getBatchId() != null){
|
|
if(inventoryBatchResponse != null && inventoryBatchResponse.getBatchId() != null){
|
|
|
//查询出库成本
|
|
//查询出库成本
|