xiaoyong931011
2021-03-22 5a152dc09980d52bab10e139b66569866bac9d9a
20210319  平仓加载中
1 files modified
7 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java 7 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java
@@ -1222,8 +1222,10 @@
                }
                positionSettingVo.setSumRewardAmount(sumRewardAmount);
            }
            //升序
            List<PositionSettingVo> sortByProperty = CollUtil.sortByProperty(records, "sumRewardAmount");
            //降序
            Collections.sort(records, new Comparator<PositionSettingVo>() {//调用sort()方法,并实现Comparator接口中的compare()方法
            Collections.sort(sortByProperty, new Comparator<PositionSettingVo>() {//调用sort()方法,并实现Comparator接口中的compare()方法
                @Override
                public int compare(PositionSettingVo lhs, PositionSettingVo rhs) {
                    int value = Integer.valueOf(rhs.getSumRewardAmount().intValue())  
@@ -1231,9 +1233,6 @@
                    return value;
                }  
            });  
            //升序
            //CollUtil.sortByProperty(records, "sumRewardAmount");
            //CollUtil.sortByProperty(records, "accountType");
        }
        positionSettingVoIPage.setRecords(records);
        return positionSettingVoIPage;