通道树支持展示在线离线状态

This commit is contained in:
648540858
2024-10-21 12:29:15 +08:00
parent e91f34a983
commit 022b16dbbe
8 changed files with 20 additions and 6 deletions

View File

@@ -19,4 +19,7 @@ public class GroupTree extends Group{
@Schema(description = "类型, 行政区划:0 摄像头: 1")
private int type;
@Schema(description = "在线状态")
private String status;
}

View File

@@ -18,4 +18,7 @@ public class RegionTree extends Region {
@Schema(description = "类型, 行政区划:0 摄像头: 1")
private int type;
@Schema(description = "在线状态")
private String status;
}

View File

@@ -267,6 +267,7 @@ public interface CommonGBChannelMapper {
" coalesce(gb_device_id, device_id) as device_id," +
" coalesce(gb_name, name) as name, " +
" coalesce(gb_parent_id, parent_id) as parent_device_id, " +
" coalesce(gb_status, status) as status, " +
" 1 as type, " +
" true as is_leaf " +
" from wvp_device_channel " +
@@ -358,6 +359,7 @@ public interface CommonGBChannelMapper {
" coalesce(gb_name, name) as name, " +
" coalesce(gb_parent_id, parent_id) as parent_device_id, " +
" coalesce(gb_business_group_id, business_group_id) as business_group, " +
" coalesce(gb_status, status) as status, " +
" 1 as type, " +
" true as is_leaf " +
" from wvp_device_channel " +

View File

@@ -69,7 +69,8 @@ public interface GroupMapper {
" * , " +
" concat('group', id) as tree_id," +
" 0 as type," +
" false as is_leaf" +
" false as is_leaf," +
" 'ON' as status" +
" from wvp_common_group " +
" where 1=1 " +
" <if test='parentId != null'> and parent_id = #{parentId} </if> " +

View File

@@ -74,6 +74,7 @@ public interface RegionMapper {
" *, " +
" concat('region', id) as tree_id," +
" 0 as type," +
" 'ON' as status," +
" false as is_leaf" +
" from wvp_common_region " +
" where " +