Skip to content

Commit d5995fb

Browse files
committed
Server:引用赋值支持requestObject内提取字段后生成的数组
1 parent 6a5e1ed commit d5995fb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

APIJSON-Java-Server/APIJSONLibrary/src/main/java/zuo/biao/apijson/server/AbstractParser.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,27 @@ public JSONArray onArrayParse(final JSONObject request, String parentPath, Strin
680680
}
681681
//Table>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
682682

683+
684+
/*
685+
* 支持引用取值后的数组
686+
{
687+
"User-id[]": {
688+
"User": {
689+
"contactIdList<>": 82002
690+
}
691+
},
692+
"Moment-userId[]": {
693+
"Moment": {
694+
"userId{}@": "User-id[]"
695+
}
696+
}
697+
}
698+
*/
699+
if (childKeys != null) {
700+
putQueryResult(path, response);
701+
}
702+
703+
683704
//后面还可能用到,要还原
684705
request.put(JSONRequest.KEY_QUERY, query);
685706
request.put(JSONRequest.KEY_COUNT, count);

0 commit comments

Comments
 (0)