Commit 0456d09651ed9e3a017653b0187baba22618a5bd

Authored by 潘钊
1 parent 84e190ba

update...

src/main/java/com/bsth/data/ThreadMonotor.java
... ... @@ -18,7 +18,7 @@ public class ThreadMonotor extends Thread{
18 18 @Override
19 19 public void run() {
20 20  
21   - //线调GPS分析线程
  21 + //线调GPS分析线程
22 22 if(GpsRealAnalyse.isBlock()){
23 23 log.warn("GpsRealAnalyse isBlock true !!!!");
24 24 GpsRealAnalyse.shutdown();
... ... @@ -30,7 +30,7 @@ public class ThreadMonotor extends Thread{
30 30 WebSocketPushQueue.start();
31 31 }
32 32  
33   - //系统自动发送的网关指令 推送队列
  33 + //网关指令推送队列(系统自动发送的)
34 34 if(DirectivePushQueue.isIdle()){
35 35 log.warn("DirectivePushQueue isIdle true !!!!");
36 36 DirectivePushQueue.start();
... ...
src/main/java/com/bsth/data/gpsdata/GpsEntity.java
... ... @@ -88,6 +88,13 @@ public class GpsEntity {
88 88 /** gps是否有效 设备端发送的状态 */
89 89 private int valid;
90 90  
  91 + /**
  92 + * 数据来源
  93 + * 1:网关
  94 + * 0:转发
  95 + */
  96 + private int source;
  97 +
91 98 public String getDeviceId() {
92 99 return deviceId;
93 100 }
... ... @@ -292,4 +299,12 @@ public class GpsEntity {
292 299 public void setSpeed(Float speed) {
293 300 this.speed = speed;
294 301 }
  302 +
  303 + public int getSource() {
  304 + return source;
  305 + }
  306 +
  307 + public void setSource(int source) {
  308 + this.source = source;
  309 + }
295 310 }
... ...