xiachuang преди 1 година
родител
ревизия
afc5db9b4b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/palmnest/service/estateserve/airconditioner/impl/ConditionerAddTimeServiceImpl.java

+ 1 - 1
src/main/java/com/palmnest/service/estateserve/airconditioner/impl/ConditionerAddTimeServiceImpl.java

@@ -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);