Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
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 9809187e
authored
Jun 07, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复换绑设备事务冲突的问题
1 parent
847f09ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/cn/com/glsx/admin/modules/component/DeviceActiveEventHandle.java
src/main/java/cn/com/glsx/admin/modules/component/DeviceActiveEventHandle.java
View file @
9809187
...
@@ -5,8 +5,8 @@ import cn.com.glsx.admin.modules.model.datasync.DeviceActiveSync;
...
@@ -5,8 +5,8 @@ import cn.com.glsx.admin.modules.model.datasync.DeviceActiveSync;
import
cn.hutool.json.JSONUtil
;
import
cn.hutool.json.JSONUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.event.EventListener
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.transaction.event.TransactionalEventListener
;
/**
/**
* 设备激活同步激活经纬度和激活地址
* 设备激活同步激活经纬度和激活地址
...
@@ -20,7 +20,7 @@ public class DeviceActiveEventHandle {
...
@@ -20,7 +20,7 @@ public class DeviceActiveEventHandle {
@Autowired
@Autowired
private
DeviceActiveComponent
deviceActiveComponent
;
private
DeviceActiveComponent
deviceActiveComponent
;
@EventListener
@
Transactional
EventListener
public
void
event
(
DeviceActiveSync
deviceActiveSync
)
{
public
void
event
(
DeviceActiveSync
deviceActiveSync
)
{
log
.
info
(
"event channel DeviceActive snList:{}"
,
JSONUtil
.
toJsonStr
(
deviceActiveSync
.
getSnList
()));
log
.
info
(
"event channel DeviceActive snList:{}"
,
JSONUtil
.
toJsonStr
(
deviceActiveSync
.
getSnList
()));
deviceActiveComponent
.
saveActiveInfo
(
deviceActiveSync
);
deviceActiveComponent
.
saveActiveInfo
(
deviceActiveSync
);
...
...
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