fix: 网元配置导入服务文件查询字段错误

This commit is contained in:
TsMask
2025-06-27 16:19:42 +08:00
parent 7c70e125d6
commit 4a397c02ec

View File

@@ -23,7 +23,7 @@ func (r NeConfigBackup) SelectByPage(query map[string]string) ([]model.NeConfigB
tx = tx.Where("ne_type = ?", 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 != "" {
tx = tx.Where("name like ?", fmt.Sprintf("%%%s%%", v))