xiaoyong931011
2021-03-22 b85b05fab57a57e63d8751b5936cdacfd665ef5f
src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java
@@ -2,6 +2,8 @@
import java.math.BigDecimal;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -1220,7 +1222,19 @@
            }
            positionSettingVo.setSumRewardAmount(sumRewardAmount);
         }
         CollUtil.sortByProperty(records, "sumRewardAmount");
         //降序
         Collections.sort(records, new Comparator<PositionSettingVo>() {//调用sort()方法,并实现Comparator接口中的compare()方法
         @Override
         public int compare(PositionSettingVo lhs, PositionSettingVo rhs) {
            int value = Integer.valueOf(rhs.getSumRewardAmount().intValue())
                        - Integer.valueOf(lhs.getSumRewardAmount().intValue());
            return 0;
         }
        });
         //升序
         //CollUtil.sortByProperty(records, "sumRewardAmount");
         //CollUtil.sortByProperty(records, "accountType");
      }
      return positionSettingVoIPage;