com.alibaba.fastjson.JSONObject.put多个Long值?
Recom.alibaba.fastjson.JSONObject.put多个Long值?
'department': [1, 2],
department List 数组类型,数组里面值为整型,成员所属部门id列表
部门参数是多个的时候,是json数组形式,如上,Java里用List即可;
例如:
List departmentList = new ArrayList();
departmentList.add(1);
departmentList.add(2);
objJSONResponse.put('department', departmentList);
赞0
踩0