Commit fa9441dbb227c0de29ce8b4db64c51b905277a9c

Authored by 潘钊
1 parent 2e8cade2

update...

src/main/java/com/bsth/StartCommand.java
@@ -8,6 +8,7 @@ import org.springframework.boot.CommandLineRunner; @@ -8,6 +8,7 @@ import org.springframework.boot.CommandLineRunner;
8 import org.springframework.stereotype.Component; 8 import org.springframework.stereotype.Component;
9 9
10 import java.util.concurrent.ScheduledExecutorService; 10 import java.util.concurrent.ScheduledExecutorService;
  11 +import java.util.concurrent.TimeUnit;
11 12
12 13
13 /** 14 /**
@@ -33,7 +34,7 @@ public class StartCommand implements CommandLineRunner{ @@ -33,7 +34,7 @@ public class StartCommand implements CommandLineRunner{
33 34
34 ScheduledExecutorService sexec = Application.mainServices; 35 ScheduledExecutorService sexec = Application.mainServices;
35 //定时将人车卡数据入库 36 //定时将人车卡数据入库
36 - //sexec.scheduleWithFixedDelay(rfidCardInfoPersistenceThread, 120, 60 * 5, TimeUnit.SECONDS); 37 + sexec.scheduleWithFixedDelay(rfidCardInfoPersistenceThread, 120, 60 * 10, TimeUnit.SECONDS);
37 //OldWSClient.returnCCInfo(); 38 //OldWSClient.returnCCInfo();
38 //OldWSClient.getCurrentDayPlan(); 39 //OldWSClient.getCurrentDayPlan();
39 } catch (Exception e) { 40 } catch (Exception e) {