There was an error while loading. Please reload this page.
1 parent 1e7f38e commit 4efcfd3Copy full SHA for 4efcfd3
APIJSONORM/src/main/java/apijson/orm/Join.java
@@ -109,7 +109,7 @@ public boolean isOne2One() {
109
return ! isOne2Many();
110
}
111
public boolean isOne2Many() {
112
- return path != null && path.contains("[]"); // TODO 必须保证一对一时不会传包含 [] 的 path
+ return count != 1 || (path != null && path.contains("[]")); // TODO 必须保证一对一时不会传包含 [] 的 path
113
114
115
public boolean isAppJoin() {
0 commit comments