public JSONArray searchSoftNameEfficiency(@Param("year") String year,
@Param("month") String month) throws ParseException {
Double[] ave = collectAveEfficiency(year, month);
List<Double> avelist=new ArrayList<Double>();
JSONArray json = new JSONArray();
for(int i=0;i<avelist.size();i++){
JSONObject jo = new JSONObject();
jo.put("efficiency", avelist.get(i));
json.add(jo);
}
System.out.println(json);
return json;
}
list转成json(带上key-value)
最新推荐文章于 2024-07-28 02:29:32 发布