fix: nbi_cm replace northbound_cm
This commit is contained in:
@@ -211,18 +211,18 @@ func XormGetNorthboundPm(date string, index int, neType string, pms *[]Northboun
|
||||
log.Debug("XormGetNorthboundPm processing... ")
|
||||
|
||||
pm := new(NorthboundPm)
|
||||
rows, err := dbClient.xEngine.Table("northbound_pm").
|
||||
rows, err := dbClient.xEngine.Table("nbi_pm").
|
||||
Where("`ne_type` = ? AND `date` = ? AND `index` = ?", neType, date, index).
|
||||
Rows(pm)
|
||||
if err != nil {
|
||||
log.Error("Failed to get table northbound_pm from database:", err)
|
||||
log.Error("Failed to get table nbi_pm from database:", err)
|
||||
return nil, err
|
||||
}
|
||||
defer rows.Close()
|
||||
for rows.Next() {
|
||||
err := rows.Scan(pm)
|
||||
if err != nil {
|
||||
log.Error("Failed to get table northbound_pm from database:", err)
|
||||
log.Error("Failed to get table nbi_pm from database:", err)
|
||||
return nil, err
|
||||
}
|
||||
*pms = append(*pms, *pm)
|
||||
|
||||
Reference in New Issue
Block a user