Browse Source

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

smallchill 5 years ago
parent
commit
3ac1240a59

+ 2 - 0
blade-core-mybatis/src/main/java/org/springblade/core/mp/support/Condition.java

@@ -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);