if(DataUtil.isJsonArray(tidByVisitoid)) {
Map<String, String> map = new HashMap<>();
JSONArray jArray = JSONArray.fromObject(tidByVisitoid);
if(jArray.length()>0) {
JSONArray newJsonArr = new JSONArray();
List<JSONObject> sortList = new ArrayList<>();
String where="obj.pid="+versionId;
List<EntityTabledesp> tableList = EntityUtil.listEntity(projectId, where, "obj.sortindex", EntityTabledesp.class);
for (int i = 0; i < tableList.size(); i++) {
String tid = tableList.get(i).tid;
map.put(tid, tableList.get(i).sortindex);
}
for(int i = 0; i < jArray.length
json数组根据数组中对象某个属性排序
最新推荐文章于 2024-03-07 22:13:00 发布