Commit 87fcc403a086b69c3195e1aa68e94ec8b895b7f6

Authored by 潘钊
1 parent cb3f9728

update...

src/main/java/com/bsth/XDApplication.java
... ... @@ -84,6 +84,7 @@ public class XDApplication implements CommandLineRunner {
84 84 }
85 85  
86 86 public void devInit(){
  87 + log.info("devInit...");
87 88 ScheduledExecutorService sexec = Application.mainServices;
88 89 //抓取GPS数据
89 90 gpsDataLoader.setFlag(-1);
... ... @@ -98,6 +99,7 @@ public class XDApplication implements CommandLineRunner {
98 99 }
99 100  
100 101 public void prodInit(){
  102 + log.info("prodInit...");
101 103 ScheduledExecutorService sexec = Application.mainServices;
102 104 //发车信息
103 105 sexec.scheduleWithFixedDelay(fcxxUpdateThread, 60, 40, TimeUnit.SECONDS);
... ...
src/main/java/com/bsth/data/gpsdata/GpsEntity.java
... ... @@ -93,7 +93,7 @@ public class GpsEntity {
93 93 * 1:网关
94 94 * 0:转发
95 95 */
96   - private int source;
  96 + private int source = -1;
97 97  
98 98 public String getDeviceId() {
99 99 return deviceId;
... ...