From 1ac5e899fd4ee9c3ab60639f8814f1d99fca763e Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 22 Mar 2021 16:43:26 +0800
Subject: [PATCH] 20210319  平仓加载中

---
 src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java b/src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java
index 5c58113..a120891 100644
--- a/src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java
+++ b/src/main/java/com/xcong/excoin/modules/trademanage/service/impl/TradeManageServiceImpl.java
@@ -1222,17 +1222,18 @@
 				}
 				positionSettingVo.setSumRewardAmount(sumRewardAmount);
 			}
-			//升序
-			List<PositionSettingVo> sortByProperty = CollUtil.sortByProperty(records, "sumRewardAmount");
 			//降序
-			Collections.sort(sortByProperty, new Comparator<PositionSettingVo>() {//调用sort()方法,并实现Comparator接口中的compare()方法  
+			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 value;
 				}  
-			}); 
+			});  
+			//升序
+			//CollUtil.sortByProperty(records, "sumRewardAmount");
+			//CollUtil.sortByProperty(records, "accountType");
 		}
 		positionSettingVoIPage.setRecords(records);
 		return positionSettingVoIPage;

--
Gitblit v1.9.1