xiachuang пре 1 година
родитељ
комит
afc5db9b4b

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