Commit f5b9928076f1c2dbc6d89779143e8b215a93cd84

Authored by 潘钊
1 parent 4505e3c1

update...

src/main/java/com/bsth/data/schedule/real/InOutScheduleDataBuffer.java
@@ -182,7 +182,7 @@ public class InOutScheduleDataBuffer implements CommandLineRunner { @@ -182,7 +182,7 @@ public class InOutScheduleDataBuffer implements CommandLineRunner {
182 182
183 @Override 183 @Override
184 public void run(String... strings) throws Exception { 184 public void run(String... strings) throws Exception {
185 - Application.mainServices.scheduleWithFixedDelay(fixedRefreshThread, 10, 60 * 5, TimeUnit.SECONDS); 185 + Application.mainServices.scheduleWithFixedDelay(fixedRefreshThread, 10, 20, TimeUnit.SECONDS);
186 } 186 }
187 187
188 /** 188 /**
@@ -238,6 +238,8 @@ public class InOutScheduleDataBuffer implements CommandLineRunner { @@ -238,6 +238,8 @@ public class InOutScheduleDataBuffer implements CommandLineRunner {
238 Collections.sort(listCopy, schComparator); 238 Collections.sort(listCopy, schComparator);
239 Line line; 239 Line line;
240 for (ScheduleInOut sio : listCopy) { 240 for (ScheduleInOut sio : listCopy) {
  241 + if(sio.getStatus()==-1)
  242 + continue;
241 //进场还是出场 243 //进场还是出场
242 if (sio.getQdzCode().equals(tccCode)) { 244 if (sio.getQdzCode().equals(tccCode)) {
243 sio.setBcType("out"); 245 sio.setBcType("out");