xiaoyong931011
2021-03-22 39b75c6d030945538181634f84b492f5865a1d49
20210319  平仓加载中
1 files modified
16 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java 16 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java
@@ -1224,15 +1224,13 @@
            }
            //降序
            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;
            }
        });
                @Override
                public int compare(PositionSettingVo lhs, PositionSettingVo rhs) {
                    int value = Integer.valueOf(rhs.getSumRewardAmount().intValue())
                            - Integer.valueOf(lhs.getSumRewardAmount().intValue());
                    return value;
                }
            });
            //升序
            //CollUtil.sortByProperty(records, "sumRewardAmount");
            //CollUtil.sortByProperty(records, "accountType");