Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-kafkaconsumer-gpsbs
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 c6433e96
authored
Jan 04, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化Gps基站消费逻辑
1 parent
46928f6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
src/main/java/cn/com/glsx/kafka/service/TransitHandleService.java
src/test/java/cn/com/glsx/kafka/queue/remote/RemoteDeviceLocationServiceTest.java
src/main/java/cn/com/glsx/kafka/service/TransitHandleService.java
View file @
c6433e9
...
...
@@ -268,6 +268,9 @@ public class TransitHandleService {
return
"gpsbs_"
+
sn
+
"_"
+
type
;
}
/**
* 同步数据库中的设备上点数据到redis
*/
public
void
syncAllDeviceLocationData
()
{
log
.
info
(
"同步数据库中的上点数据到redis开始==="
);
List
<
DeviceLocationDto
>
deviceLocationList
=
remoteDeviceLocationService
.
getAllDeviceLocationData
();
...
...
src/test/java/cn/com/glsx/kafka/queue/remote/RemoteDeviceLocationServiceTest.java
View file @
c6433e9
...
...
@@ -41,4 +41,10 @@ public class RemoteDeviceLocationServiceTest {
remoteDeviceLocationService
.
saveOrUpdateDeviceLocationData
(
deviceLocationDtos
);
System
.
out
.
println
(
"更新成功==="
);
}
@Test
public
void
getAllDeviceLocationData
()
{
List
<
DeviceLocationDto
>
deviceLocationDtoList
=
remoteDeviceLocationService
.
getAllDeviceLocationData
();
System
.
out
.
println
(
"deviceLocationDtoList = "
+
JSON
.
toJSONString
(
deviceLocationDtoList
));
}
}
\ No newline at end of file
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