fix: 网元配置导入服务文件查询字段错误
This commit is contained in:
@@ -23,7 +23,7 @@ func (r NeConfigBackup) SelectByPage(query map[string]string) ([]model.NeConfigB
|
|||||||
tx = tx.Where("ne_type = ?", v)
|
tx = tx.Where("ne_type = ?", v)
|
||||||
}
|
}
|
||||||
if v, ok := query["neId"]; ok && v != "" {
|
if v, ok := query["neId"]; ok && v != "" {
|
||||||
tx = tx.Where("neId = ?", v)
|
tx = tx.Where("ne_id = ?", v)
|
||||||
}
|
}
|
||||||
if v, ok := query["name"]; ok && v != "" {
|
if v, ok := query["name"]; ok && v != "" {
|
||||||
tx = tx.Where("name like ?", fmt.Sprintf("%%%s%%", v))
|
tx = tx.Where("name like ?", fmt.Sprintf("%%%s%%", v))
|
||||||
|
|||||||
Reference in New Issue
Block a user