Commit d2483d77 by 刘鑫

fix(工程师容量): 修改工程师时间片空闲时间计算错误

1 parent d4c2ac6a
...@@ -125,8 +125,8 @@ public class CapacityUtils { ...@@ -125,8 +125,8 @@ public class CapacityUtils {
LocalDateTime preLast = startTime; LocalDateTime preLast = startTime;
for (OccupyInfo o : occupyInfos) { for (OccupyInfo o : occupyInfos) {
if (o.getBeginTime().isAfter(preLast)) { if (o.getBeginTime().isAfter(preLast)) {
long duraionMiu = Duration.between(startTime, o.getBeginTime()).abs().toMinutes(); long duraionMiu = Duration.between(preLast, o.getBeginTime()).abs().toMinutes();
leisureTime.add(new OccupyInfoDetail(startTime, o.getBeginTime(), duraionMiu)); leisureTime.add(new OccupyInfoDetail(preLast, o.getBeginTime(), duraionMiu));
} }
preLast = o.getEndTime(); preLast = o.getEndTime();
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!