Skip to content

Commit 5edfca9

Browse files
committed
Server:批量操作返回的id{}改为id[],方便解析成idList
1 parent e42af3c commit 5edfca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public JSONObject execute(SQLConfig config) throws Exception {
152152
if (config.getId() > 0) {
153153
result.put(JSONResponse.KEY_ID, config.getId());
154154
} else {
155-
result.put(JSONResponse.KEY_ID_IN, config.getWhere(JSONResponse.KEY_ID_IN, true));
155+
result.put(JSONResponse.KEY_ID + "[]", config.getWhere(JSONResponse.KEY_ID_IN, true));
156156
}
157157
result.put(JSONResponse.KEY_COUNT, updateCount);//返回修改的记录数
158158
return result;

0 commit comments

Comments
 (0)