Commit 87fcc403a086b69c3195e1aa68e94ec8b895b7f6
1 parent
cb3f9728
update...
Showing
2 changed files
with
3 additions
and
1 deletions
src/main/java/com/bsth/XDApplication.java
| @@ -84,6 +84,7 @@ public class XDApplication implements CommandLineRunner { | @@ -84,6 +84,7 @@ public class XDApplication implements CommandLineRunner { | ||
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | public void devInit(){ | 86 | public void devInit(){ |
| 87 | + log.info("devInit..."); | ||
| 87 | ScheduledExecutorService sexec = Application.mainServices; | 88 | ScheduledExecutorService sexec = Application.mainServices; |
| 88 | //抓取GPS数据 | 89 | //抓取GPS数据 |
| 89 | gpsDataLoader.setFlag(-1); | 90 | gpsDataLoader.setFlag(-1); |
| @@ -98,6 +99,7 @@ public class XDApplication implements CommandLineRunner { | @@ -98,6 +99,7 @@ public class XDApplication implements CommandLineRunner { | ||
| 98 | } | 99 | } |
| 99 | 100 | ||
| 100 | public void prodInit(){ | 101 | public void prodInit(){ |
| 102 | + log.info("prodInit..."); | ||
| 101 | ScheduledExecutorService sexec = Application.mainServices; | 103 | ScheduledExecutorService sexec = Application.mainServices; |
| 102 | //发车信息 | 104 | //发车信息 |
| 103 | sexec.scheduleWithFixedDelay(fcxxUpdateThread, 60, 40, TimeUnit.SECONDS); | 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,7 +93,7 @@ public class GpsEntity { | ||
| 93 | * 1:网关 | 93 | * 1:网关 |
| 94 | * 0:转发 | 94 | * 0:转发 |
| 95 | */ | 95 | */ |
| 96 | - private int source; | 96 | + private int source = -1; |
| 97 | 97 | ||
| 98 | public String getDeviceId() { | 98 | public String getDeviceId() { |
| 99 | return deviceId; | 99 | return deviceId; |