/decodeDetail接口中数据的去重
This commit is contained in:
@@ -1809,10 +1809,17 @@ public class TodoTaskController extends BaseAction {
|
||||
msgData.put(bpn.getTaskId(),object);
|
||||
}
|
||||
}
|
||||
JSONArray jsonArray=new JSONArray();
|
||||
JSONArray jsonArray1=new JSONArray();
|
||||
for (String id:idData) {
|
||||
jsonArray.addAll(msgData.get(id).getJSONArray("itemList"));
|
||||
jsonArray1.addAll(msgData.get(id).getJSONArray("itemList"));
|
||||
}
|
||||
|
||||
Set set = new HashSet();
|
||||
for(int i = 0 ; i<jsonArray1.size();i++){
|
||||
set.add(jsonArray1.get(i));
|
||||
}
|
||||
JSONArray jsonArray = JSONArray.parseArray(set.toString());
|
||||
|
||||
boolean f=false;
|
||||
for (int i = 0; i < jsonArray.size()-1; i++) {
|
||||
for (int j = 0; j < jsonArray.size()-1-i; j++) {
|
||||
|
||||
Reference in New Issue
Block a user