差异过账生成库存调整记录增加参数净重...
This commit is contained in:
+7
@@ -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");
|
||||
|
||||
+16
@@ -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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user