From 3dd29cac12e0dd02b6eaabbd4569fca5569767d3 Mon Sep 17 00:00:00 2001 From: zhouqunjie Date: Tue, 16 May 2023 15:30:43 +0800 Subject: [PATCH] feature:add column hubCode for centerOverview Former-commit-id: 95fdd3e217ecc138a59767cf073e462a83b2e584 --- adaptor/PCM-CORE/api/desc/core/pcm-core.api | 1 + adaptor/PCM-CORE/api/internal/logic/core/listcenterlogic.go | 1 + adaptor/PCM-CORE/api/internal/types/types.go | 1 + adaptor/PCM-CORE/model/centerOverviewModel_gen.go | 1 + 4 files changed, 4 insertions(+) diff --git a/adaptor/PCM-CORE/api/desc/core/pcm-core.api b/adaptor/PCM-CORE/api/desc/core/pcm-core.api index 2d212f59..0e656b76 100644 --- a/adaptor/PCM-CORE/api/desc/core/pcm-core.api +++ b/adaptor/PCM-CORE/api/desc/core/pcm-core.api @@ -267,6 +267,7 @@ type ( HpcUmngStorage int64 `json:"hpcUmngStorage"` Edwc bool `json:"edwc"` Ydyl bool `json:"ydyl"` + HubCode int64 `json:"hubCode"` } ) diff --git a/adaptor/PCM-CORE/api/internal/logic/core/listcenterlogic.go b/adaptor/PCM-CORE/api/internal/logic/core/listcenterlogic.go index 200231ee..760b796f 100644 --- a/adaptor/PCM-CORE/api/internal/logic/core/listcenterlogic.go +++ b/adaptor/PCM-CORE/api/internal/logic/core/listcenterlogic.go @@ -73,6 +73,7 @@ func (l *ListCenterLogic) ListCenter() (*types.ListCenterResp, error) { center.HpcUmngStorage = overview.HpcUmngStorage.Int64 center.Edwc = overview.Edwc.Bool center.Ydyl = overview.Ydyl.Bool + center.HubCode = overview.HubCode.Int64 center.DeletedFlag = overview.DeletedFlag.Int64 centers = append(centers, center) } diff --git a/adaptor/PCM-CORE/api/internal/types/types.go b/adaptor/PCM-CORE/api/internal/types/types.go index ca97a648..d70919ea 100644 --- a/adaptor/PCM-CORE/api/internal/types/types.go +++ b/adaptor/PCM-CORE/api/internal/types/types.go @@ -246,6 +246,7 @@ type Center struct { HpcUmngStorage int64 `json:"hpcUmngStorage"` Edwc bool `json:"edwc"` Ydyl bool `json:"ydyl"` + HubCode int64 `json:"hubCode"` } type CpResp struct { diff --git a/adaptor/PCM-CORE/model/centerOverviewModel_gen.go b/adaptor/PCM-CORE/model/centerOverviewModel_gen.go index fdcc0b7f..3ce5d226 100644 --- a/adaptor/PCM-CORE/model/centerOverviewModel_gen.go +++ b/adaptor/PCM-CORE/model/centerOverviewModel_gen.go @@ -59,6 +59,7 @@ type ( HpcUmngStorage sql.NullInt64 `json:"hpcUmngStorage"` Edwc sql.NullBool `json:"edwc"` Ydyl sql.NullBool `json:"ydyl"` + HubCode sql.NullInt64 `json:"hubCode"` } )