Commit ff10cb3f by 111-PC\111

[+]kafka消费数据修改

1 parent 65a381a1
......@@ -38,7 +38,7 @@ public class ProtobufConvert {
}
Event event = new Event();
event.setSn(String.valueOf(protobufIgnition.getDevicesn().trim()));
event.setTime(DateUtils.parseDate(DateUtils.parseTimeStampDate(protobufIgnition.getGpstime())));
event.setTime(DateUtils.parseDate(DateUtils.parseTimeStampDate(protobufIgnition.getTime())));
event.setDeviceType(Constants.MACHINE_STATUS_ORDER);
event.setValue("true");
return event;
......@@ -58,7 +58,7 @@ public class ProtobufConvert {
}
Event event = new Event();
event.setSn(String.valueOf(protobufFlameOut.getDevicesn().trim()));
event.setTime(DateUtils.parseDate(DateUtils.parseTimeStampDate(protobufFlameOut.getGpstime())));
event.setTime(DateUtils.parseDate(DateUtils.parseTimeStampDate(protobufFlameOut.getTime())));
event.setDeviceType(Constants.MACHINE_STATUS_ORDER);
event.setValue("false");
return event;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!