|
@@ -271,7 +271,7 @@ public class MiddleMeterApplyServiceImpl extends BaseServiceImpl<MiddleMeterAppl
|
|
|
formApply.setChangeBuildPictureTotal(l.getChangeTotal());
|
|
|
if (l.getCurrentMeterTotal() != null && l.getCurrentPrice() != null) {
|
|
|
formApply.setCurrentMeterTotal(l.getCurrentMeterTotal());
|
|
|
- formApply.setCurrentMeterMoney(l.getCurrentPrice().multiply(l.getCurrentMeterTotal()));
|
|
|
+ formApply.setCurrentMeterMoney(l.getCurrentPrice().multiply(l.getCurrentMeterTotal()).setScale(0,RoundingMode.HALF_UP));
|
|
|
|
|
|
}else {
|
|
|
throw new ServiceException("单价和计量数量不能为空");
|
|
@@ -298,7 +298,7 @@ public class MiddleMeterApplyServiceImpl extends BaseServiceImpl<MiddleMeterAppl
|
|
|
for (InventoryFormApply formApply : formApplies) {
|
|
|
big = big.add(formApply.getCurrentMeterMoney());
|
|
|
}
|
|
|
- apply.setMeterMoney(big);
|
|
|
+ apply.setMeterMoney(big.setScale(0,RoundingMode.HALF_UP));
|
|
|
inventoryFormApplyService.saveBatch(formApplies);
|
|
|
}else {
|
|
|
throw new ServiceException("请添加需要计量的清单");
|
|
@@ -473,7 +473,7 @@ public class MiddleMeterApplyServiceImpl extends BaseServiceImpl<MiddleMeterAppl
|
|
|
formApply.setChangeBuildPictureTotal(l.getChangeTotal());
|
|
|
if (l.getCurrentMeterTotal() != null && l.getCurrentPrice() != null) {
|
|
|
formApply.setCurrentMeterTotal(l.getCurrentMeterTotal());
|
|
|
- formApply.setCurrentMeterMoney(l.getCurrentPrice().multiply(l.getCurrentMeterTotal()));
|
|
|
+ formApply.setCurrentMeterMoney(l.getCurrentPrice().multiply(l.getCurrentMeterTotal()).setScale(0,RoundingMode.HALF_UP));
|
|
|
}else {
|
|
|
throw new ServiceException("单价和计量数量和支付比例不能为空");
|
|
|
}
|
|
@@ -499,7 +499,7 @@ public class MiddleMeterApplyServiceImpl extends BaseServiceImpl<MiddleMeterAppl
|
|
|
for (InventoryFormApply formApply : formApplies) {
|
|
|
big = big.add(formApply.getCurrentMeterMoney());
|
|
|
}
|
|
|
- apply.setMeterMoney(big);
|
|
|
+ apply.setMeterMoney(big.setScale(0,RoundingMode.HALF_UP));
|
|
|
inventoryFormApplyService.saveBatch(formApplies);
|
|
|
}
|
|
|
this.updateById(apply);
|