通道树支持展示在线离线状态
This commit is contained in:
@@ -19,4 +19,7 @@ public class GroupTree extends Group{
|
||||
@Schema(description = "类型, 行政区划:0 摄像头: 1")
|
||||
private int type;
|
||||
|
||||
@Schema(description = "在线状态")
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
||||
@@ -18,4 +18,7 @@ public class RegionTree extends Region {
|
||||
|
||||
@Schema(description = "类型, 行政区划:0 摄像头: 1")
|
||||
private int type;
|
||||
|
||||
@Schema(description = "在线状态")
|
||||
private String status;
|
||||
}
|
||||
|
||||
@@ -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 " +
|
||||
|
||||
@@ -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> " +
|
||||
|
||||
@@ -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 " +
|
||||
|
||||
Reference in New Issue
Block a user