fix: 基站状态记录上报移除在线用户数字段

This commit is contained in:
TsMask
2025-02-08 19:42:21 +08:00
parent a10c09bec8
commit 2155d98754
5 changed files with 4 additions and 11 deletions

View File

@@ -9,7 +9,6 @@ type NBState struct {
CreateTime int64 `json:"createTime" gorm:"column:create_time"` // 创建时间
Address string `json:"address" gorm:"column:address"` // 基站IP地址
NbName string `json:"nbName" gorm:"column:nb_name"` // 基站设备名称
UeNum int64 `json:"ueNum" gorm:"column:ue_num"` // 在线用户数
Name string `json:"name" gorm:"column:name"` // 基站名称
Position string `json:"position" gorm:"column:position"` // 基站位置
State string `json:"state" gorm:"column:state"` // 基站状态 OFF ON

View File

@@ -55,9 +55,8 @@ func (r NBState) ExportXlsx(rows []model.NBState, fileName, language string) (st
"C1": i18n.TKey(language, "nbState.export.position"),
"D1": i18n.TKey(language, "nbState.export.address"),
"E1": i18n.TKey(language, "nbState.export.nbName"),
"F1": i18n.TKey(language, "nbState.export.ueNum"),
"G1": i18n.TKey(language, "nbState.export.state"),
"H1": i18n.TKey(language, "nbState.export.time"),
"F1": i18n.TKey(language, "nbState.export.state"),
"G1": i18n.TKey(language, "nbState.export.time"),
}
// 从第二行开始的数据
@@ -75,9 +74,8 @@ func (r NBState) ExportXlsx(rows []model.NBState, fileName, language string) (st
"C" + idx: row.Position,
"D" + idx: row.Address,
"E" + idx: row.NbName,
"F" + idx: row.UeNum,
"G" + idx: statusValue,
"H" + idx: row.Time,
"F" + idx: statusValue,
"G" + idx: row.Time,
})
}