|
@@ -641,7 +641,7 @@ public class ConditionerAddTimeServiceImpl implements ConditionerAddTimeService
|
|
|
if (i == listRoomInfos.size() - 1) {
|
|
|
airConditionerAddTimeOrderAmountDetail.setAmount(remainingAmount);
|
|
|
} else {
|
|
|
- BigDecimal roomCost = roomArea.divide(totalArea, 2, RoundingMode.HALF_UP).multiply(totalAmount);
|
|
|
+ BigDecimal roomCost = roomArea.divide(totalArea, 2, RoundingMode.HALF_UP).multiply(totalAmount).setScale(2, RoundingMode.HALF_UP);
|
|
|
airConditionerAddTimeOrderAmountDetail.setAmount(roomCost);
|
|
|
remainingAmount = remainingAmount.subtract(roomCost);
|
|
|
}
|