差异过账生成库存调整记录增加参数净重...

This commit is contained in:
zhou-hongcheng
2026-03-09 10:52:40 +08:00
parent d87de81d82
commit d991861d03
2 changed files with 23 additions and 0 deletions
@@ -200,8 +200,15 @@ public class DifferentManageImpl extends ServiceImpl<DifferentManageMapper, Diff
private void InventoryAdjustmentRecord(InvestigetionManageDetailDO investigetionManageDetailDO){
//库存调整记录
Long materialBaseInfoId = investigetionManageDetailDO.getMaterialInventoryId();//物料库存id
MaterialInventory materialInventory1 = materialInventoryMapper.selectById(materialBaseInfoId);
LoginUser loginUser = SecurityUtils.getLoginUser();
InventoryAdjustmentRecord inventoryAdjustmentRecord = new InventoryAdjustmentRecord();
inventoryAdjustmentRecord.setNetWeight(materialInventory1.getNetWeight() == null ? BigDecimal.ZERO : materialInventory1.getNetWeight());
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.setAdjustAction("差异过账");
inventoryAdjustmentRecord.setRelateNo(investigetionManageDetailDO.getInvestigationNumber());
inventoryAdjustmentRecord.setAdjustAfterStatusCode("he_ge");
@@ -156,4 +156,20 @@ public class InventoryAdjustmentRecord extends BaseVOEntity {
@Excel(name = "关联单号")
private String relateNo;
@ApiModelProperty("净重(KG)")
@Excel(name = "净重(KG)")
private BigDecimal netWeight;
@ApiModelProperty("毛重(KG)")
@Excel(name = "毛重(KG)")
private BigDecimal grossWeight;
@ApiModelProperty("体积")
@Excel(name = "体积")
private BigDecimal volume;
@ApiModelProperty("面积")
@Excel(name = "面积")
private BigDecimal area;
}