库存调整记录修改;
This commit is contained in:
+3
-3
@@ -197,9 +197,9 @@ public class HandoverTaskOrderDomainService {
|
||||
inventoryAdjustmentRecord.setOrganizationId(stockOutOrder.getOrganizationId());
|
||||
inventoryAdjustmentRecord.setOrganizationName(stockOutOrder.getOrganizationName());
|
||||
inventoryAdjustmentRecord.setTopOrganizationId(stockOutOrder.getTopOrganizationId());
|
||||
inventoryAdjustmentRecord.setWarehouseCode(materialInventoryPO.getWarehouseCode());
|
||||
inventoryAdjustmentRecord.setWarehouseName(materialInventoryPO.getWarehouseName());
|
||||
inventoryAdjustmentRecord.setWarehouseId(materialInventoryPO.getWarehouseId());
|
||||
inventoryAdjustmentRecord.setWarehouseCode(stockOutOrder.getWarehouseCode());
|
||||
inventoryAdjustmentRecord.setWarehouseName(stockOutOrder.getWarehouseName());
|
||||
inventoryAdjustmentRecord.setWarehouseId(stockOutOrder.getWarehouseId());
|
||||
inventoryAdjustmentRecord.setStorageCode(materialInventoryPO.getStorageCode());
|
||||
inventoryAdjustmentRecord.setStorageName(materialInventoryPO.getStorageName());
|
||||
inventoryAdjustmentRecord.setStorageLocationId(materialInventoryPO.getStorageLocationId());
|
||||
|
||||
+13
-8
@@ -31,6 +31,8 @@ import com.mhd.wms.domain.outMaterialDetailSerialNumber.entity.OutMaterialDetail
|
||||
import com.mhd.wms.domain.outMaterialDetailSerialNumber.repository.facade.IOutMaterialDetailSerialNumberService;
|
||||
import com.mhd.wms.domain.overStock.repository.todo.QueryOrderOverStockDO;
|
||||
import com.mhd.wms.domain.pickingMaterialDetail.entity.PickingMaterialDetail;
|
||||
import com.mhd.wms.domain.stockOutOrder.entity.StockOutOrder;
|
||||
import com.mhd.wms.domain.stockOutOrder.repository.mapper.StockOutOrderMapper;
|
||||
import com.mhd.wms.domain.stockOutOrder.repository.po.StockOutOrderPO;
|
||||
import com.mhd.wms.domain.stockOutOrder.repository.todo.StockOutOrderDO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -66,6 +68,8 @@ public class OutMaterialDetailImpl extends ServiceImpl<OutMaterialDetailMapper,
|
||||
private InventoryAdjustmentRecordMapper inventoryAdjustmentRecordMapper;
|
||||
@Autowired
|
||||
private MaterialBaseInfoMapper materialBaseInfoMapper;
|
||||
@Autowired
|
||||
private StockOutOrderMapper stockOutOrderMapper;
|
||||
|
||||
/**
|
||||
* 查询物料明细列表
|
||||
@@ -298,6 +302,7 @@ public class OutMaterialDetailImpl extends ServiceImpl<OutMaterialDetailMapper,
|
||||
}
|
||||
|
||||
public synchronized void xgkc(List<OutMaterialDetail> outMaterialDetailList,StockOutOrderPO stockOutOrderPO,LoginUser loginUser) {
|
||||
StockOutOrder stockOutOrder = stockOutOrderMapper.selectById(stockOutOrderPO.getOutOrderId());
|
||||
for (OutMaterialDetail outMaterialDetail : outMaterialDetailList) {
|
||||
Long materialInventoryId = outMaterialDetail.getMaterialInventoryId();
|
||||
BigDecimal allocationQuantity = outMaterialDetail.getAllocationQuantity();
|
||||
@@ -325,12 +330,12 @@ public class OutMaterialDetailImpl extends ServiceImpl<OutMaterialDetailMapper,
|
||||
inventoryAdjustmentRecord.setMaterialName(outMaterialDetail.getCommodityName());
|
||||
inventoryAdjustmentRecord.setBarCode(outMaterialDetail.getBarCode());
|
||||
inventoryAdjustmentRecord.setMaterialBaseInfoId(outMaterialDetail.getMaterialBaseInfoId());
|
||||
inventoryAdjustmentRecord.setOrganizationId(stockOutOrderPO.getOrganizationId());
|
||||
inventoryAdjustmentRecord.setOrganizationName(stockOutOrderPO.getOrganizationName());
|
||||
inventoryAdjustmentRecord.setTopOrganizationId(stockOutOrderPO.getTopOrganizationId());
|
||||
inventoryAdjustmentRecord.setWarehouseCode(stockOutOrderPO.getWarehouseCode());
|
||||
inventoryAdjustmentRecord.setWarehouseName(stockOutOrderPO.getWarehouseName());
|
||||
inventoryAdjustmentRecord.setWarehouseId(stockOutOrderPO.getWarehouseId());
|
||||
inventoryAdjustmentRecord.setOrganizationId(stockOutOrder.getOrganizationId());
|
||||
inventoryAdjustmentRecord.setOrganizationName(stockOutOrder.getOrganizationName());
|
||||
inventoryAdjustmentRecord.setTopOrganizationId(stockOutOrder.getTopOrganizationId());
|
||||
inventoryAdjustmentRecord.setWarehouseCode(stockOutOrder.getWarehouseCode());
|
||||
inventoryAdjustmentRecord.setWarehouseName(stockOutOrder.getWarehouseName());
|
||||
inventoryAdjustmentRecord.setWarehouseId(stockOutOrder.getWarehouseId());
|
||||
inventoryAdjustmentRecord.setStorageCode(materialInventoryPO.getStorageCode());
|
||||
inventoryAdjustmentRecord.setStorageName(materialInventoryPO.getStorageName());
|
||||
inventoryAdjustmentRecord.setStorageLocationId(materialInventoryPO.getStorageLocationId());
|
||||
@@ -338,8 +343,8 @@ public class OutMaterialDetailImpl extends ServiceImpl<OutMaterialDetailMapper,
|
||||
inventoryAdjustmentRecord.setStorageLocationName(materialInventoryPO.getStorageLocationName());
|
||||
inventoryAdjustmentRecord.setMaterialInventoryId(materialInventoryPO.getMaterialInventoryId());
|
||||
inventoryAdjustmentRecord.setMaterialBaseInfoId(materialInventoryPO.getMaterialBaseInfoId());
|
||||
inventoryAdjustmentRecord.setShipperId(stockOutOrderPO.getShipperId());
|
||||
inventoryAdjustmentRecord.setShipperName(stockOutOrderPO.getShipperName());
|
||||
inventoryAdjustmentRecord.setShipperId(stockOutOrder.getShipperId());
|
||||
inventoryAdjustmentRecord.setShipperName(stockOutOrder.getShipperName());
|
||||
inventoryAdjustmentRecord.setStorageSectionId(materialInventoryPO.getStorageSectionId());
|
||||
inventoryAdjustmentRecord.setStorageLocationId(materialInventoryPO.getStorageLocationId());
|
||||
inventoryAdjustmentRecord.setCreateBy(loginUser.getUserid());
|
||||
|
||||
Reference in New Issue
Block a user