-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
queryWrapper orderByDesc排序不生效 #5924
Comments
@Witnin 用 initQueryWrapper用 req 的参数创建的QueryWrapper,已经根据传递进来的参数生成了排序规则,用代码添加新的排序规则是无效的。 要想自定义排序,可以自己创建 LambdaQueryWrapper,示例如下,查询使用了 like,不是默认的 eq:
|
上面的方法也可以,就是不能使用initQueryWrapper方法了;也可以采用下面的方案配合initQueryWrapper来使用; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本号:3.6.2
前端版本:vue3版
问题描述: queryWrapper orderByDesc排序不生效
截图&代码:
The text was updated successfully, but these errors were encountered: