|
@ -709,12 +709,12 @@ public class StatisticsAllService extends BaseService {
|
|
|
|
|
|
Collections.sort(resultList, new Comparator<Map<String, Object>>() {
|
|
|
public int compare(Map<String, Object> o1, Map<String, Object> o2) {
|
|
|
long map1value = (long) o1.get("amount");
|
|
|
long map2value = (long) o2.get("amount");
|
|
|
String map1value = o1.get("rate").toString();
|
|
|
String map2value = o2.get("rate").toString();
|
|
|
|
|
|
if (map1value - map2value > 0) {
|
|
|
if (map1value.compareTo(map2value) > 0) {
|
|
|
return sort == 1 ? -1 : 1;
|
|
|
} else if (map1value - map2value < 0) {
|
|
|
} else if (map1value.compareTo(map2value) < 0) {
|
|
|
return sort == 1 ? 1 : -1;
|
|
|
} else {
|
|
|
return 0;
|