Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-device-kafka-consumer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ff10cb3f
authored
Apr 12, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]kafka消费数据修改
1 parent
65a381a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/cn/com/glsx/smart/utils/ProtobufConvert.java
src/main/java/cn/com/glsx/smart/utils/ProtobufConvert.java
View file @
ff10cb3
...
@@ -38,7 +38,7 @@ public class ProtobufConvert {
...
@@ -38,7 +38,7 @@ public class ProtobufConvert {
}
}
Event
event
=
new
Event
();
Event
event
=
new
Event
();
event
.
setSn
(
String
.
valueOf
(
protobufIgnition
.
getDevicesn
().
trim
()));
event
.
setSn
(
String
.
valueOf
(
protobufIgnition
.
getDevicesn
().
trim
()));
event
.
setTime
(
DateUtils
.
parseDate
(
DateUtils
.
parseTimeStampDate
(
protobufIgnition
.
get
Gpst
ime
())));
event
.
setTime
(
DateUtils
.
parseDate
(
DateUtils
.
parseTimeStampDate
(
protobufIgnition
.
get
T
ime
())));
event
.
setDeviceType
(
Constants
.
MACHINE_STATUS_ORDER
);
event
.
setDeviceType
(
Constants
.
MACHINE_STATUS_ORDER
);
event
.
setValue
(
"true"
);
event
.
setValue
(
"true"
);
return
event
;
return
event
;
...
@@ -58,7 +58,7 @@ public class ProtobufConvert {
...
@@ -58,7 +58,7 @@ public class ProtobufConvert {
}
}
Event
event
=
new
Event
();
Event
event
=
new
Event
();
event
.
setSn
(
String
.
valueOf
(
protobufFlameOut
.
getDevicesn
().
trim
()));
event
.
setSn
(
String
.
valueOf
(
protobufFlameOut
.
getDevicesn
().
trim
()));
event
.
setTime
(
DateUtils
.
parseDate
(
DateUtils
.
parseTimeStampDate
(
protobufFlameOut
.
get
Gpst
ime
())));
event
.
setTime
(
DateUtils
.
parseDate
(
DateUtils
.
parseTimeStampDate
(
protobufFlameOut
.
get
T
ime
())));
event
.
setDeviceType
(
Constants
.
MACHINE_STATUS_ORDER
);
event
.
setDeviceType
(
Constants
.
MACHINE_STATUS_ORDER
);
event
.
setValue
(
"false"
);
event
.
setValue
(
"false"
);
return
event
;
return
event
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment