pDto.put("product", "1");
List alist = g4Reader.queryForList("Demo.getFcfDataList", pDto);
List aSetList = new ArrayList();
for (int i = 0; i < alist.size(); i++) {
Dto dto = (BaseDto)alist.get(i);
Set set = new Set();
set.setValue(dto.getAsString("value"));
aSetList.add(set);
}
dataSet1.setData(aSetList);
dataList.add(dataSet1);
DataSet dataSet2 = new DataSet();
dataSet2.setSeriesname("产品B");
dataSet2.setColor("44BC2F");
pDto.put("product", "2");
List blist = g4Reader.queryForList("Demo.getFcfDataList", pDto);
List bSetList = new ArrayList();
for (int i = 0; i < blist.size(); i++) {
Dto dto = (BaseDto)blist.get(i);
Set set = new Set();
set.setValue(dto.getAsString("value"));
bSetList.add(set);
}
dataSet2.setData(bSetList);
dataList.add(dataSet2);
return dataList;