fix:modify the number of clusters, adapters, and tasks

Former-commit-id: 8f27b00b8a5c8381ffb7705052981074a227e0c8
This commit is contained in:
qiwang 2024-02-28 10:22:26 +08:00
parent bf8969f1a6
commit 296df89ac5
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func (l *GetClusterSumLogic) GetClusterSum(req *types.ClusterSumReq) (resp *type
var ClusterSum int //
var TaskSum int //
//
sqlStr := "SELECT COUNT(*) FROM `t_adapter` t where t.type = 0`"
sqlStr := "SELECT COUNT(*) FROM `t_adapter` t where t.type = 0"
tx := l.svcCtx.DbEngin.Raw(sqlStr).Scan(&AdapterSum)
if tx.Error != nil {
logx.Error(err)