fix(工序出站):消耗计算保留三位,后面全部舍去

This commit is contained in:
liaohechuan 2024-12-20 11:10:37 +08:00
parent 5e4d8457b9
commit 735973ccba

View File

@ -716,7 +716,7 @@ public class OperationOutServiceImpl extends ServiceImpl<OperationOutMapper, Ope
}
if (flag == 0) {
// bom数量计算
BigDecimal bomQty = operationOutBomComponentDTO.getQty().divide(operationOutBomComponentDTO.getUnitQty(), 6, RoundingMode.DOWN);
BigDecimal bomQty = operationOutBomComponentDTO.getQty().divide(operationOutBomComponentDTO.getUnitQty(), 3, RoundingMode.DOWN);
// 获取物料上料记录
List<EqpFeeding> eqpFeedingList = eqpFeedingMapper.selectList(Wrappers.<EqpFeeding>lambdaQuery()
.eq(EqpFeeding::getSite, site)