fix CenterResources bug

Signed-off-by: jagger <cossjie@foxmail.com>
This commit is contained in:
jagger 2024-11-07 15:07:50 +08:00
parent 98d071f750
commit 4afad4ea22
1 changed files with 1 additions and 1 deletions

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
}