1
0

fix(jpa): 修正查询条件中 notEqual 方法的错误调用

在 SimpleServiceSupport 中,notEqual 查询条件错误地调用了 getEqual 方法,已修正为 getNotEqual 方法。
This commit is contained in:
2026-01-06 10:47:51 +08:00
parent 7e993f3de8
commit e8ffaab6a8

View File

@@ -288,7 +288,7 @@ public abstract class SimpleServiceSupport<ENTITY extends SimpleEntity> implemen
});
}
if (ObjectHelper.isNotEmpty(queryable.getNotEqual())) {
queryable.getEqual().forEach((column, value) -> {
queryable.getNotEqual().forEach((column, value) -> {
var path = column(root, column);
predicates.add(builder.notEqual(path, value(path, value)));
});