|
@@ -2577,7 +2577,7 @@ public class ConditionerAddTimeServiceImpl implements ConditionerAddTimeService
|
|
|
* 使用时长
|
|
|
* 空调加时最低申请1小时,半小时按1小时收取费用
|
|
|
*/
|
|
|
- BigDecimal useLengthTime = DateUtils.compareStringTimesToHour(minDate, order.getUseEndTime());
|
|
|
+ BigDecimal useLengthTime = DateUtils.compareStringTimesToHour(minDate, maxDate);
|
|
|
useLengthTime = useLengthTime.setScale(0, RoundingMode.UP);// 向上取整
|
|
|
|
|
|
airConditionerAddTime.setUseLengthTime(useLengthTime);
|