Commit 87f946eb by 杨林龙

添加速度类型字段的打印日志

1 parent 15ef3a78
...@@ -58,13 +58,12 @@ public class GpsAndBsConsumer extends MessageReceiver { ...@@ -58,13 +58,12 @@ public class GpsAndBsConsumer extends MessageReceiver {
} }
private DeviceLocationDto setGpsAndBsData(kafkaSvr.GPSAndBSReq gpsAndBsReq) { private DeviceLocationDto setGpsAndBsData(kafkaSvr.GPSAndBSReq gpsAndBsReq) {
kafkaSvr.GPSDATA gpsData = gpsAndBsReq.getGpsdata(); kafkaSvr.GPSDATA gpsData = gpsAndBsReq.getGpsdata();
if (null == gpsData) { if (null == gpsData) {
return null; return null;
} }
log.info("设备号:{},速度:{}", gpsAndBsReq.getDevicesn(), gpsAndBsReq.getGpsdata().getSpeed());
Date time = new Date(gpsData.getTime() * 1000L); Date time = new Date(gpsData.getTime() * 1000L);
//当前时间如果大于今日,过滤 //当前时间如果大于今日,过滤
Calendar c = Calendar.getInstance(); Calendar c = Calendar.getInstance();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!