Compare commits
No commits in common. "345199f48a0c82358060aa7535dbd9060525d17b" and "b64e1244197fc2913bf1610e9fc09e95ca3f2c28" have entirely different histories.
345199f48a
...
b64e124419
|
|
@ -29,7 +29,6 @@ public class HeartBeatService {
|
|||
logger.info("deviceInfoDAO: {}",deviceInfoDAO);
|
||||
if (deviceInfoDAO == null) {
|
||||
// 设备信息不存在,可能是无效的设备
|
||||
logger.info("device not find,start add device to mysql.");
|
||||
boolean isSuccess = addDeviceInfo(deviceInfo);
|
||||
if (isSuccess){
|
||||
return ServerResponseEntity.success();
|
||||
|
|
@ -105,7 +104,6 @@ public class HeartBeatService {
|
|||
* @return 转换后的 DeviceInfoDAO 对象。
|
||||
*/
|
||||
private DeviceInfoDAO convertToDeviceInfoDAO(DeviceInfo deviceInfo) {
|
||||
logger.info("start convert to device info dao");
|
||||
// 这里需要实现将 DeviceInfo 转换为 DeviceInfoDAO 的逻辑
|
||||
// 示例代码(根据实际字段调整):
|
||||
DeviceInfoDAO deviceInfoDAO = new DeviceInfoDAO();
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ class MonitorServiceTest {
|
|||
|
||||
@Test
|
||||
void monitorOnlineDevices() {
|
||||
|
||||
monitorService.monitorOnlineDevices();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue