Преглед на файлове

解决部分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 })
             }
         }
     }