mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-11-05 01:59:30 +08:00
🐛 条件构建去除分页排序字段
This commit is contained in:
parent
99e4bd7579
commit
3ac1240a59
@ -65,6 +65,8 @@ public class Condition {
|
|||||||
public static <T> QueryWrapper<T> getQueryWrapper(Map<String, Object> query, Class<T> clazz) {
|
public static <T> QueryWrapper<T> getQueryWrapper(Map<String, Object> query, Class<T> clazz) {
|
||||||
query.remove("current");
|
query.remove("current");
|
||||||
query.remove("size");
|
query.remove("size");
|
||||||
|
query.remove("ascs");
|
||||||
|
query.remove("descs");
|
||||||
QueryWrapper<T> qw = new QueryWrapper<>();
|
QueryWrapper<T> qw = new QueryWrapper<>();
|
||||||
qw.setEntity(BeanUtil.newInstance(clazz));
|
qw.setEntity(BeanUtil.newInstance(clazz));
|
||||||
SqlKeyword.buildCondition(query, qw);
|
SqlKeyword.buildCondition(query, qw);
|
||||||
|
Loading…
Reference in New Issue
Block a user