|
@@ -451,9 +451,10 @@ public class MeterReadRecordServiceImpl implements MeterReadRecordService {
|
|
throw new ServiceException(ResultStatus.READING_ERROR_4);
|
|
throw new ServiceException(ResultStatus.READING_ERROR_4);
|
|
}
|
|
}
|
|
// 计算今日用水量
|
|
// 计算今日用水量
|
|
- Double todayCost = calculateTodayCost(currentReading,
|
|
|
|
|
|
+ Double todayCost = new BigDecimal(calculateTodayCost(currentReading,
|
|
new Double(getMeterLastValid(waterMeter,readDay)),
|
|
new Double(getMeterLastValid(waterMeter,readDay)),
|
|
- record);
|
|
|
|
|
|
+ record)).setScale(3,BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
|
|
+
|
|
MeterReadRecord update = new MeterReadRecord();
|
|
MeterReadRecord update = new MeterReadRecord();
|
|
update.setId(record.getId());
|
|
update.setId(record.getId());
|
|
update.setLastCost(todayCost);
|
|
update.setLastCost(todayCost);
|