修复通道导入bug

This commit is contained in:
648540858
2023-02-20 15:21:41 +08:00
parent 21d5bed1a9
commit 4446218f9e
4 changed files with 58 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ public class DeviceQuery {
@Parameter(name = "online", description = "是否在线")
@Parameter(name = "channelType", description = "设备/子目录-> false/true")
@Parameter(name = "catalogUnderDevice", description = "是否直属与设备的目录")
public PageInfo channels(@PathVariable String deviceId,
public PageInfo<DeviceChannel> channels(@PathVariable String deviceId,
int page, int count,
@RequestParam(required = false) String query,
@RequestParam(required = false) Boolean online,
@@ -223,7 +223,7 @@ public class DeviceQuery {
@Parameter(name = "online", description = "是否在线")
@Parameter(name = "channelType", description = "设备/子目录-> false/true")
@GetMapping("/sub_channels/{deviceId}/{channelId}/channels")
public PageInfo subChannels(@PathVariable String deviceId,
public PageInfo<DeviceChannel> subChannels(@PathVariable String deviceId,
@PathVariable String channelId,
int page,
int count,
@@ -237,8 +237,7 @@ public class DeviceQuery {
return deviceChannelPageResult;
}
PageInfo pageResult = storager.querySubChannels(deviceId, channelId, query, channelType, online, page, count);
return pageResult;
return storager.querySubChannels(deviceId, channelId, query, channelType, online, page, count);
}
/**