Commit 08991d0b authored by Tong Li's avatar Tong Li

设备日历生成太多

parent c7e03b35
...@@ -206,7 +206,7 @@ public class PlanResultService { ...@@ -206,7 +206,7 @@ public class PlanResultService {
if(machineIds.get(machineId)!=null&&machineIds.get(machineId)>3600*24*200) { if(machineIds.get(machineId)!=null&&machineIds.get(machineId)>3600*24*200) {
int day = (int) (machineIds.get(machineId) / 3600 / 24)+100; int day = (int) (machineIds.get(machineId) / 3600 / 24)+100;
day=Math.min(day,400); // day=Math.min(day,400);
List<TimeSegment> segments = machineScheduler.generateTimeSegment(machine, null, day); List<TimeSegment> segments = machineScheduler.generateTimeSegment(machine, null, day);
machineScheduler.addSegmentsWithDeduplication(machine, segments); machineScheduler.addSegmentsWithDeduplication(machine, segments);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment