分配问题修改;

This commit is contained in:
王奎兴
2026-02-28 15:42:16 +08:00
parent 48ca441674
commit 5cdc8ccc3b
2 changed files with 6 additions and 2 deletions
@@ -289,6 +289,10 @@ public class OutMaterialDetailImpl extends ServiceImpl<OutMaterialDetailMapper,
outMaterialDetailChild.setCreateBy(loginUser.getUserid());
outMaterialDetailChild.setCreateByName(loginUser.getUsername());
outMaterialDetailChild.setCreateTime(new Date());
BigDecimal allocationQuantity = outMaterialDetailChild.getAllocationQuantity();
BigDecimal alreadyAllocationQuantity = outMaterialDetailChild.getAlreadyAllocationQuantity();
BigDecimal nowAllocationQuantity = allocationQuantity.subtract(alreadyAllocationQuantity);
outMaterialDetailChild.setNowAllocationQuantity(nowAllocationQuantity);
outMaterialDetailListChild.add(outMaterialDetailChild);
}
}