Commit 3e6b7efb by 杨林龙

优化Gps基站消费逻辑

1 parent 97ae4514
...@@ -167,9 +167,7 @@ public class TransitHandleService { ...@@ -167,9 +167,7 @@ public class TransitHandleService {
stayStatusData = new DeviceLocationDto(); stayStatusData = new DeviceLocationDto();
} }
DeviceLocationDto deviceLogin = mergeDeviceLogin(gpsData, bsData, stayStatusData); DeviceLocationDto deviceLogin = mergeDeviceLogin(gpsData, bsData, stayStatusData);
if (!JSON.toJSONString(deviceLogin).equals("{}")) {
deviceLocationList.add(deviceLogin); deviceLocationList.add(deviceLogin);
}
}); });
return null; return null;
} }
...@@ -219,6 +217,10 @@ public class TransitHandleService { ...@@ -219,6 +217,10 @@ public class TransitHandleService {
private DeviceLocationDto mergeDeviceLogin(DeviceLocationDto gpsData, DeviceLocationDto bsData, DeviceLocationDto stayStatusData) { private DeviceLocationDto mergeDeviceLogin(DeviceLocationDto gpsData, DeviceLocationDto bsData, DeviceLocationDto stayStatusData) {
DeviceLocationDto deviceLogin = new DeviceLocationDto(); DeviceLocationDto deviceLogin = new DeviceLocationDto();
// 组合Gps数据 // 组合Gps数据
if (null != gpsData.getSn()) {
deviceLogin.setSn(gpsData.getSn());
}
if (null != gpsData.getSpeed()) { if (null != gpsData.getSpeed()) {
deviceLogin.setSpeed(gpsData.getSpeed()); deviceLogin.setSpeed(gpsData.getSpeed());
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!