Commit 9739deeb by 刘鑫

fix(容量):最大空闲时间 计算不能直接取对应枚举

1 parent c1ead991
......@@ -247,7 +247,7 @@ public class CapacityUtils {
long engineerMaxDuration = Optional.ofNullable(timeSlots).orElse(Collections.emptyList())
.stream()
.mapToLong(t1 -> Duration.between(t1.getBeginTime(), t1.getEndTime()).abs().toMinutes())
.sum();
.max().getAsLong();
engineerMaxDurationList.add(engineerMaxDuration);
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!