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