netty-修改请求框架,并且注册客户端信息落地,之后通过调用netty接口来进行后续操作。

This commit is contained in:
limqhz
2020-07-11 23:33:02 +08:00
parent 3703ee2844
commit 6f08b24538
29 changed files with 266 additions and 689 deletions

View File

@@ -62,4 +62,18 @@ public interface DeviceMapper {
List<DeviceDTO> findAllDTO();
Integer countByStream(@Param("stream") String stream,@Param("id") Integer id);
/**
* 更新设备状态为 0 - 未连接
*/
void offline(@Param("venueId") Integer venueId,@Param("deviceName") String deviceName);
/**
* 更新设备状态为 2 - 连接成功
*/
void online(@Param("venueId") Integer venueId,@Param("deviceName") String deviceName);
Integer checkDevice(@Param("deviceName") String deviceName,@Param("venueId") Integer venueId);
}