zqbao 9 сар өмнө
parent
commit
504e904e77

+ 1 - 1
models/sys_user.go

@@ -145,7 +145,7 @@ func GetSysUserListByCondition(condition string, pars []interface{}, startSize,
 	if condition != "" {
 	if condition != "" {
 		sql += condition
 		sql += condition
 	}
 	}
-	sql += ` ORDER BY u.is_enabled, u.modify_time DESC LIMIT ?,?`
+	sql += ` ORDER BY u.is_enabled DESC, u.modify_time DESC LIMIT ?,?`
 	o := orm.NewOrm()
 	o := orm.NewOrm()
 	_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
 	_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
 	return
 	return