소스 검색

解决部分bug:买卖大厅排序问题

yu.jie 3 년 전
부모
커밋
12b61a3e12
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      RMA/app/src/main/java/cn/muchinfo/rma/view/base/yrdzpurchase/swaps/business/SwapsBusinessHallActivity.kt

+ 4 - 4
RMA/app/src/main/java/cn/muchinfo/rma/view/base/yrdzpurchase/swaps/business/SwapsBusinessHallActivity.kt

@@ -491,7 +491,7 @@ class SwapsSellHallUI(
                         swipeToLayout.finishRefresh()
                     }
                     statusLayout.showSuccess()
-                    businessSellHallAdapter.setNewData( it?.sortedByDescending { it.orderprice })
+                    businessSellHallAdapter.setNewData( it?.sortedBy { it.orderprice })
                 }
             }
 
@@ -504,7 +504,7 @@ class SwapsSellHallUI(
                     }
                 }
                 // 每笔行情来 要重新排序
-                businessSellHallAdapter.setNewData(  viewModel.businessSellHallDataList.value?.sortedByDescending { it.orderprice })
+                businessSellHallAdapter.setNewData(  viewModel.businessSellHallDataList.value?.sortedBy { it.orderprice })
             }
         }
     }
@@ -611,7 +611,7 @@ class SwapsBuyHallUI(
                         swipeToLayout.finishRefresh()
                     }
                     statusLayout.showSuccess()
-                    businessBuyHallAdapter.setNewData( it?.sortedBy { it.orderprice })
+                    businessBuyHallAdapter.setNewData( it?.sortedByDescending { it.orderprice })
                 }
             }
 
@@ -624,7 +624,7 @@ class SwapsBuyHallUI(
                     }
                 }
                 // 每笔行情来 要重新排序
-                businessBuyHallAdapter.setNewData( viewModel.businessBuyHallDataList.value?.sortedBy { it.orderprice })
+                businessBuyHallAdapter.setNewData( viewModel.businessBuyHallDataList.value?.sortedByDescending { it.orderprice })
             }
         }
     }