perf: 优化in查询对应的参数名,in会和kotlin的关键字同名
This commit is contained in:
@@ -141,11 +141,11 @@ public class Query {
|
||||
/**
|
||||
* 指定字段值在指定范围内的条件映射(字段名 -> 值列表)
|
||||
*/
|
||||
private Map<String, List<Object>> in;
|
||||
private Map<String, List<Object>> inside;
|
||||
/**
|
||||
* 指定字段值不在指定范围内的条件映射(字段名 -> 值列表)
|
||||
*/
|
||||
private Map<String, List<Object>> notIn;
|
||||
private Map<String, List<Object>> notInside;
|
||||
/**
|
||||
* 指定字段值在指定区间内的条件映射(字段名 -> 区间范围)
|
||||
*/
|
||||
|
||||
@@ -316,11 +316,11 @@ public abstract class SimpleServiceSupport<ENTITY extends SimpleEntity> implemen
|
||||
predicates.add(builder.lessThanOrEqualTo(path, (Comparable<Object>) value));
|
||||
});
|
||||
}
|
||||
if (ObjectHelper.isNotEmpty(queryable.getIn())) {
|
||||
queryable.getIn().forEach((column, value) -> predicates.add(builder.in(column(root, column)).value(value)));
|
||||
if (ObjectHelper.isNotEmpty(queryable.getInside())) {
|
||||
queryable.getInside().forEach((column, value) -> predicates.add(builder.in(column(root, column)).value(value)));
|
||||
}
|
||||
if (ObjectHelper.isNotEmpty(queryable.getNotIn())) {
|
||||
queryable.getNotIn().forEach((column, value) -> predicates.add(builder.in(column(root, column)).value(value).not()));
|
||||
if (ObjectHelper.isNotEmpty(queryable.getNotInside())) {
|
||||
queryable.getNotInside().forEach((column, value) -> predicates.add(builder.in(column(root, column)).value(value).not()));
|
||||
}
|
||||
if (ObjectHelper.isNotEmpty(queryable.getBetween())) {
|
||||
queryable.getBetween().forEach((column, value) -> {
|
||||
|
||||
Reference in New Issue
Block a user