fix: 网元配置导入服务文件查询字段错误
This commit is contained in:
1 parent
7c70e125d6
commit
4a397c02ec
1 file changed
+1
-1
@@ -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