处理 设备在线 发消息

This commit is contained in:
gong
2025-11-24 16:37:56 +08:00
parent e76a85b521
commit 7146128b4c
15 changed files with 156 additions and 38 deletions

View File

@@ -59,7 +59,7 @@ public class SysDevicesDTO implements Serializable {
/**
* 在线状态0 离线1 在线
*/
private Integer unlineStatus;
private Integer onlineStatus;
/**
* 最后上线时间

View File

@@ -29,7 +29,7 @@ public class SysDevicesPageDTO {
/**
* 在线状态0 离线1 在线
*/
private Integer unlineStatus;
private Integer onlineStatus;
/**
* 页码

View File

@@ -2,6 +2,7 @@ package com.czg.system.entity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
@@ -32,7 +33,7 @@ public class SysDevices implements Serializable {
/**
* 主键
*/
@Id
@Id(keyType = KeyType.Auto)
private Long id;
/**
@@ -53,7 +54,7 @@ public class SysDevices implements Serializable {
/**
* 在线状态0 离线1 在线
*/
private Integer unlineStatus;
private Integer onlineStatus;
/**
* 最后上线时间

View File

@@ -20,5 +20,7 @@ public interface SysDevicesService extends IService<SysDevices> {
Long deleteDevice(Long id);
Page<SysDevicesDTO> queryDevice(SysDevicesPageDTO reqDTO);
Page<SysDevicesDTO> queryDevicePage(SysDevicesPageDTO reqDTO);
void updateDeviceOnlineStatus(String sn, Integer online);
}