差异过账调整前后净重...

This commit is contained in:
zhou-hongcheng
2026-03-10 17:57:50 +08:00
parent 92e1a09b50
commit 5205b1aca2
@@ -209,6 +209,10 @@ public class DifferentManageImpl extends ServiceImpl<DifferentManageMapper, Diff
inventoryAdjustmentRecord.setGrossWeight(materialInventory1.getGrossWeight() == null ? BigDecimal.ZERO : materialInventory1.getGrossWeight());
inventoryAdjustmentRecord.setVolume(materialInventory1.getVolume() == null ? BigDecimal.ZERO : materialInventory1.getVolume());
inventoryAdjustmentRecord.setArea(materialInventory1.getArea() == null ? BigDecimal.ZERO : materialInventory1.getArea());
inventoryAdjustmentRecord.setAdjustedNetWeight(materialInventory1.getNetWeight() == null ? BigDecimal.ZERO : materialInventory1.getNetWeight());
inventoryAdjustmentRecord.setAdjustedGrossWeight(materialInventory1.getGrossWeight() == null ? BigDecimal.ZERO : materialInventory1.getGrossWeight());
inventoryAdjustmentRecord.setAdjustedVolume(materialInventory1.getVolume() == null ? BigDecimal.ZERO : materialInventory1.getVolume());
inventoryAdjustmentRecord.setAdjustedArea(materialInventory1.getArea() == null ? BigDecimal.ZERO : materialInventory1.getArea());
inventoryAdjustmentRecord.setAdjustAction("差异过账");
inventoryAdjustmentRecord.setRelateNo(investigetionManageDetailDO.getInvestigationNumber());
inventoryAdjustmentRecord.setAdjustAfterStatusCode("he_ge");
@@ -216,7 +220,7 @@ public class DifferentManageImpl extends ServiceImpl<DifferentManageMapper, Diff
inventoryAdjustmentRecord.setAdjustAfterStatusName("合格");
inventoryAdjustmentRecord.setAdjustBeforeStatusName("合格");
inventoryAdjustmentRecord.setMaterialBaseInfoId(investigetionManageDetailDO.getMaterialBaseInfoId());
inventoryAdjustmentRecord.setMaterialCode(investigetionManageDetailDO.getBarCode());
inventoryAdjustmentRecord.setMaterialCode(investigetionManageDetailDO.getMaterialCode());
inventoryAdjustmentRecord.setMaterialName(investigetionManageDetailDO.getMaterialName());
inventoryAdjustmentRecord.setBarCode(investigetionManageDetailDO.getBarCode());
inventoryAdjustmentRecord.setMaterialBaseInfoId(investigetionManageDetailDO.getMaterialBaseInfoId());
@@ -243,10 +247,10 @@ public class DifferentManageImpl extends ServiceImpl<DifferentManageMapper, Diff
UserPo userPo = loginUser.getUserPo();
if (userPo != null) inventoryAdjustmentRecord.setCreateByName(userPo.getUserName());
inventoryAdjustmentRecord.setCreateTime(new Date());
// inventoryAdjustmentRecord.setAllocationAfterQuantity();
// inventoryAdjustmentRecord.setAllocationBeforeQuantity();
// inventoryAdjustmentRecord.setFreezeBeforeQuantity();
// inventoryAdjustmentRecord.setFreezeAfterQuantity();
inventoryAdjustmentRecord.setAllocationAfterQuantity(materialInventory1.getAllocationQuantity() == null ? BigDecimal.ZERO : materialInventory1.getAllocationQuantity());
inventoryAdjustmentRecord.setAllocationBeforeQuantity(materialInventory1.getAllocationQuantity() == null ? BigDecimal.ZERO : materialInventory1.getAllocationQuantity());
inventoryAdjustmentRecord.setFreezeBeforeQuantity(materialInventory1.getFreezeQuantity() == null ? BigDecimal.ZERO : materialInventory1.getFreezeQuantity());
inventoryAdjustmentRecord.setFreezeAfterQuantity(materialInventory1.getFreezeQuantity() == null ? BigDecimal.ZERO : materialInventory1.getFreezeQuantity());
inventoryAdjustmentRecord.setInventoryBeforeQuantity(investigetionManageDetailDO.getInventoryQuantity());
inventoryAdjustmentRecord.setInventoryAfterQuantity(investigetionManageDetailDO.getInvestigationQuantity());
inventoryAdjustmentRecordMapper.insert(inventoryAdjustmentRecord);