Browse Source

fix CenterResources bug

Signed-off-by: jagger <cossjie@foxmail.com>
pull/339/head
jagger 1 year ago
parent
commit
4afad4ea22
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      internal/logic/core/centerresourceslogic.go

+ 1
- 1
internal/logic/core/centerresourceslogic.go View File

@@ -45,7 +45,7 @@ func (l *CenterResourcesLogic) CenterResources() (*types.CenterResourcesResp, er
}
for _, centerIndex := range centersIndex {
// Query the types of resource centers
tx := l.svcCtx.DbEngin.Raw("select name,type as CenterType from t_adapter where id = ?", centerIndex.Id).Scan(&centerIndex)
tx := l.svcCtx.DbEngin.Raw("select id,name,type as CenterType from t_adapter where id = ?", centerIndex.Id).Scan(&centerIndex)
if tx.Error != nil {
return nil, tx.Error
}


Loading…
Cancel
Save