From c4a30dbd8b6d9f0f910e436b36dd7f645b24b56b Mon Sep 17 00:00:00 2001 From: yuanruji Date: Tue, 5 Nov 2024 10:55:25 +0800 Subject: [PATCH] 555 --- .../db-resource/internal/controller/statistic/statistic.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dbm-services/common/db-resource/internal/controller/statistic/statistic.go b/dbm-services/common/db-resource/internal/controller/statistic/statistic.go index 61400bced6..39a90a8a11 100644 --- a/dbm-services/common/db-resource/internal/controller/statistic/statistic.go +++ b/dbm-services/common/db-resource/internal/controller/statistic/statistic.go @@ -90,7 +90,9 @@ type DbmSpecParam struct { func (m DbmSpecParam) getQueryParam() map[string]string { p := make(map[string]string) if m.DbType != nil { - p["spec_db_type"] = *m.DbType + if *m.DbType != model.PUBLIC_RESOURCE_DBTYEP { + p["spec_db_type"] = *m.DbType + } } if lo.IsNotEmpty(m.MachineType) { p["spec_machine_type"] = m.MachineType