Commit 3e6b7efb by 杨林龙

优化Gps基站消费逻辑

1 parent 97ae4514
......@@ -167,9 +167,7 @@ public class TransitHandleService {
stayStatusData = new DeviceLocationDto();
}
DeviceLocationDto deviceLogin = mergeDeviceLogin(gpsData, bsData, stayStatusData);
if (!JSON.toJSONString(deviceLogin).equals("{}")) {
deviceLocationList.add(deviceLogin);
}
deviceLocationList.add(deviceLogin);
});
return null;
}
......@@ -219,6 +217,10 @@ public class TransitHandleService {
private DeviceLocationDto mergeDeviceLogin(DeviceLocationDto gpsData, DeviceLocationDto bsData, DeviceLocationDto stayStatusData) {
DeviceLocationDto deviceLogin = new DeviceLocationDto();
// 组合Gps数据
if (null != gpsData.getSn()) {
deviceLogin.setSn(gpsData.getSn());
}
if (null != 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!