fix: 网元版本查询错误

This commit is contained in:
TsMask
2025-02-21 20:59:24 +08:00
parent 0a9a82118b
commit 773eda3fee

View File

@@ -54,7 +54,7 @@ func (r NeVersion) SelectByPage(query map[string]string) ([]model.NeVersion, int
// Select 查询集合
func (r NeVersion) Select(param model.NeVersion) []model.NeVersion {
tx := db.DB("").Model(&model.NeSoftware{})
tx := db.DB("").Model(&model.NeVersion{})
// 查询条件拼接
if param.NeType != "" {
tx = tx.Where("ne_type = ?", param.NeType)