fix: 网元版本查询错误
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user