🐛 条件构建去除分页排序字段

This commit is contained in:
smallchill 2019-11-07 15:35:12 +08:00
parent 99e4bd7579
commit 3ac1240a59

View File

@ -65,6 +65,8 @@ public class Condition {
public static <T> QueryWrapper<T> getQueryWrapper(Map<String, Object> query, Class<T> clazz) {
query.remove("current");
query.remove("size");
query.remove("ascs");
query.remove("descs");
QueryWrapper<T> qw = new QueryWrapper<>();
qw.setEntity(BeanUtil.newInstance(clazz));
SqlKeyword.buildCondition(query, qw);