Commit 9809187e by 杨林龙

修复换绑设备事务冲突的问题

1 parent 847f09ca
......@@ -5,8 +5,8 @@ import cn.com.glsx.admin.modules.model.datasync.DeviceActiveSync;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
import org.springframework.transaction.event.TransactionalEventListener;
/**
* 设备激活同步激活经纬度和激活地址
......@@ -20,7 +20,7 @@ public class DeviceActiveEventHandle {
@Autowired
private DeviceActiveComponent deviceActiveComponent;
@EventListener
@TransactionalEventListener
public void event(DeviceActiveSync deviceActiveSync) {
log.info("event channel DeviceActive snList:{}", JSONUtil.toJsonStr(deviceActiveSync.getSnList()));
deviceActiveComponent.saveActiveInfo(deviceActiveSync);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!