mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
fix映射排序
This commit is contained in:
parent
798c956a6c
commit
8ea32dabfe
@ -49,7 +49,7 @@ public class MappingQuery<T> extends QueryWrapper<T> {
|
|||||||
}
|
}
|
||||||
if (infoWrapper.isHasOrderByDesc()) {
|
if (infoWrapper.isHasOrderByDesc()) {
|
||||||
//mybatis plus 3.4.3 之后支持数组,但之前版本仅支持可变参数,为了兼容,多个循环处理
|
//mybatis plus 3.4.3 之后支持数组,但之前版本仅支持可变参数,为了兼容,多个循环处理
|
||||||
infoWrapper.getOrderByAsc().forEach(wrapper::orderByDesc);
|
infoWrapper.getOrderByDesc().forEach(wrapper::orderByDesc);
|
||||||
}
|
}
|
||||||
if (infoWrapper.isHasLast()) {
|
if (infoWrapper.isHasLast()) {
|
||||||
wrapper.last(infoWrapper.getLast());
|
wrapper.last(infoWrapper.getLast());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user