|
@ -2461,10 +2461,27 @@ public class StatisticsAllService extends BaseService {
|
|
|
double rate = (double)bindCout/signCout*100;
|
|
|
DecimalFormat decimalFormat = new DecimalFormat("0.00");
|
|
|
map.put("bindRate",decimalFormat.format(rate)+"%");
|
|
|
map.put("bindDoubleRate",rate);
|
|
|
}else{
|
|
|
map.put("bindRate","0.00%");
|
|
|
map.put("bindDoubleRate",0.00);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 排序
|
|
|
resultList.sort(new Comparator<Map<String, Object>>() {
|
|
|
@Override
|
|
|
public int compare(Map<String, Object> o1, Map<String, Object> o2) {
|
|
|
if ((double)o1.get("bindDoubleRate")>=(double)o2.get("bindDoubleRate")) {
|
|
|
return -1;
|
|
|
} else if ((double)o1.get("bindDoubleRate")<(double)o2.get("bindDoubleRate")) {
|
|
|
return 1;
|
|
|
} else {
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
return new JSONArray(resultList);
|
|
|
} else {
|
|
|
return new JSONArray();
|