润德安全帽bug修复

This commit is contained in:
guoshengxiong 2025-12-03 18:23:00 +08:00
parent b9e030f66e
commit 98c61bbb0a

View File

@ -113,6 +113,7 @@ public class SafetyHatWSClient {
//设置在线和外部用户id
if (!Objects.equals(dev.getOnline(), 1) || !Objects.equals(dev.getExtUserId(), userId)) {
dev.setOnline(1);
dev.setHeartbeatTime(new Date());
dev.setExtUserId(userId);
SpringContextUtils.getBean(SafetyHatDevMapper.class).updateById(dev);
}