genlong 6 months ago
parent
commit
d1fee6a84c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      models/system/sys_admin.go

+ 1 - 0
models/system/sys_admin.go

@@ -251,6 +251,7 @@ func GetSysUserItems(condition string, pars []interface{}) (items []*AdminItem,
 	}
 	sql += `ORDER BY last_updated_time DESC `
 	//_, err = o.Raw(sql, pars).QueryRows(&items)
+	err = global.DEFAULT_DmSQL.Raw(sql, pars...).Find(&items).Error
 	return
 }