Update Join.java

This commit is contained in:
TommyLemon 2022-10-17 21:33:07 +08:00 committed by GitHub
parent 7e75671ca1
commit 94a0d558c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,12 +105,12 @@ public class Join {
this.outerConfig = outerConfig; this.outerConfig = outerConfig;
} }
public boolean isOne2One() { public boolean isOne2One() {
return ! isOne2Many(); return ! isOne2Many();
} }
public boolean isOne2Many() { public boolean isOne2Many() {
return count != 1 || (path != null && path.contains("[]")); // TODO 必须保证一对一时不会传包含 [] path return count != 1 || (path != null && path.contains("[]")); // TODO 必须保证一对一时不会传包含 [] path
} }
public boolean isAppJoin() { public boolean isAppJoin() {
return "@".equals(getJoinType()); return "@".equals(getJoinType());