|
@@ -102,7 +102,7 @@ func GetSysRoleListCount(condition string, pars []interface{}) (count int, err e
|
|
|
sql += condition
|
|
|
}
|
|
|
//err = o.Raw(sql, pars).QueryRow(&count)
|
|
|
- err = global.DEFAULT_DmSQL.Raw(sql, pars).Scan(&count).Error
|
|
|
+ err = global.DEFAULT_DmSQL.Raw(sql, pars...).Scan(&count).Error
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -116,6 +116,7 @@ func GetSysRoleList(condition string, pars []interface{}, startSize, pageSize in
|
|
|
//_, err = o.Raw(sql, pars...).QueryRows(&items)
|
|
|
pars = append(pars, startSize)
|
|
|
pars = append(pars, pageSize)
|
|
|
+
|
|
|
err = global.DEFAULT_DmSQL.Raw(sql, pars...).Find(&items).Error
|
|
|
return
|
|
|
}
|