mybatis-plus icon indicating copy to clipboard operation
mybatis-plus copied to clipboard

LambdaQueryWrapper的orderBy方法是否支持直接写SQL,实现自定义排序

Open liunancun opened this issue 3 years ago • 1 comments

当前使用版本(必填,否则不予处理)

3.5.1

该问题是如何引起的?(确定最新版也有问题再提!!!)

使用LambdaQueryWrapper之后,不支持复杂排序 比如 order by FIELD(status, 1, 0, 2, 3) ASC, start_time desc

重现步骤(如果有就写完整)

报错信息

方法不支持

liunancun avatar Jun 10 '22 02:06 liunancun

new QueryWrapper<SysUserEntity>()
                .orderBy()
                .lambda()
                .eq()

uncarbon97 avatar Jul 14 '22 02:07 uncarbon97