润德安全帽bug修复
This commit is contained in:
parent
b9e030f66e
commit
98c61bbb0a
@ -113,6 +113,7 @@ public class SafetyHatWSClient {
|
|||||||
//设置在线和外部用户id
|
//设置在线和外部用户id
|
||||||
if (!Objects.equals(dev.getOnline(), 1) || !Objects.equals(dev.getExtUserId(), userId)) {
|
if (!Objects.equals(dev.getOnline(), 1) || !Objects.equals(dev.getExtUserId(), userId)) {
|
||||||
dev.setOnline(1);
|
dev.setOnline(1);
|
||||||
|
dev.setHeartbeatTime(new Date());
|
||||||
dev.setExtUserId(userId);
|
dev.setExtUserId(userId);
|
||||||
SpringContextUtils.getBean(SafetyHatDevMapper.class).updateById(dev);
|
SpringContextUtils.getBean(SafetyHatDevMapper.class).updateById(dev);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user