mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	集群节点列表可以使用“未分组”筛选
This commit is contained in:
		@@ -360,6 +360,8 @@ func (this *NodeDAO) ListEnabledNodesMatch(tx *dbs.Tx,
 | 
			
		||||
	// 分组
 | 
			
		||||
	if groupId > 0 {
 | 
			
		||||
		query.Attr("groupId", groupId)
 | 
			
		||||
	} else if groupId < 0 {
 | 
			
		||||
		query.Attr("groupId", 0)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// 区域
 | 
			
		||||
@@ -757,6 +759,8 @@ func (this *NodeDAO) CountAllEnabledNodesMatch(tx *dbs.Tx,
 | 
			
		||||
	// 分组
 | 
			
		||||
	if groupId > 0 {
 | 
			
		||||
		query.Attr("groupId", groupId)
 | 
			
		||||
	} else if groupId < 0 {
 | 
			
		||||
		query.Attr("groupId", 0)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// 区域
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user