mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
根据区域查询节点数量时加入集群状态条件
This commit is contained in:
@@ -738,6 +738,7 @@ func (this *NodeDAO) CountAllEnabledNodesWithRegionId(tx *dbs.Tx, regionId int64
|
||||
return this.Query(tx).
|
||||
State(NodeStateEnabled).
|
||||
Attr("regionId", regionId).
|
||||
Where("clusterId IN (SELECT id FROM " + SharedNodeClusterDAO.Table + " WHERE state=1)").
|
||||
Count()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user