diff --git a/src/api/mmlManage/neOperate.ts b/src/api/mmlManage/neOperate.ts index 3222baf4..2b227719 100644 --- a/src/api/mmlManage/neOperate.ts +++ b/src/api/mmlManage/neOperate.ts @@ -13,7 +13,7 @@ export async function getMMLByNE(neType: string) { url: `/api/rest/databaseManagement/v1/elementType/omc_db/objectType/mml_system`, method: 'get', params: { - SQL: `select * from mml_system where ne_type = '${neType}'`, + SQL: `select * from mml_system where ne_type = '${neType}' and status = 'Active'`, }, }); // 解析数据 diff --git a/src/api/mmlManage/omcOperate.ts b/src/api/mmlManage/omcOperate.ts index de506f12..f7d27a04 100644 --- a/src/api/mmlManage/omcOperate.ts +++ b/src/api/mmlManage/omcOperate.ts @@ -12,7 +12,7 @@ export async function getMMLByOMC() { url: `/api/rest/databaseManagement/v1/elementType/omc_db/objectType/mml_command`, method: 'get', params: { - SQL: `select * from mml_command where ne_type = 'OMC'`, + SQL: `select * from mml_command where ne_type = 'OMC' and status = 'Active'`, }, }); // 解析数据 diff --git a/src/api/mmlManage/udmOperate.ts b/src/api/mmlManage/udmOperate.ts index 2370184e..a6a7d9fe 100644 --- a/src/api/mmlManage/udmOperate.ts +++ b/src/api/mmlManage/udmOperate.ts @@ -12,7 +12,7 @@ export async function getMMLByUDM() { url: `/api/rest/databaseManagement/v1/elementType/omc_db/objectType/mml_subscriber`, method: 'get', params: { - SQL: `select * from mml_subscriber where ne_type = 'UDM'`, + SQL: `select * from mml_subscriber where ne_type = 'UDM' and status = 'Active'`, }, }); // 解析数据