Skip to content

Commit

Permalink
Update Join.java
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Oct 17, 2022
1 parent 7e75671 commit 94a0d55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions APIJSONORM/src/main/java/apijson/orm/Join.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ public void setOuterConfig(SQLConfig outerConfig) {
this.outerConfig = outerConfig;
}

public boolean isOne2One() {
return ! isOne2Many();
}
public boolean isOne2Many() {
return count != 1 || (path != null && path.contains("[]")); // TODO 必须保证一对一时不会传包含 [] 的 path
}
public boolean isOne2One() {
return ! isOne2Many();
}
public boolean isOne2Many() {
return count != 1 || (path != null && path.contains("[]")); // TODO 必须保证一对一时不会传包含 [] 的 path
}

public boolean isAppJoin() {
return "@".equals(getJoinType());
Expand Down

0 comments on commit 94a0d55

Please sign in to comment.