diff --git a/YLErpDAL/Modules/SwapModule/SwapEndConfirmService.cs b/YLErpDAL/Modules/SwapModule/SwapEndConfirmService.cs index 11c1e0d3..3b1a1c8a 100644 --- a/YLErpDAL/Modules/SwapModule/SwapEndConfirmService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapEndConfirmService.cs @@ -60,7 +60,7 @@ namespace YLErp.Modules.SwapModule swap_position = position, ConfirmContractR = tcrConfirm, }; - query = query.OrderByDescending(s => s.swap_flow_event.id); + query = query.OrderByDescending(s => s.swap_flow_event.UnwindDate); var retListResult = query.ToSearchList(req, isWithOrder: false); var tradeIds = retListResult.rows.Select(s => s.swap_flow_event.SwapTradeId).Distinct().ToList();