From 21a50d734b6451936eeef5df55863957dc584559 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Mon, 10 Apr 2023 13:07:59 +0800 Subject: [PATCH] 1 --- .../Service/BookingOrder/BookingOrderService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index d28e8e45..7941c545 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -1431,7 +1431,7 @@ namespace Myshipping.Application }).ToListAsync(); - var config = _goodsStatusConfig.AsQueryable().Where(config => config.CreatedUserId == userid).ToList().Select(config => new GoodsStatusQuery + var config = _goodsStatusConfig.AsQueryable().Where(config => config.CreatedUserId == userid).ToList().DistinctBy(x=>x.StatusName).Select(config => new GoodsStatusQuery { ConfigId = config.Id, @@ -1452,7 +1452,7 @@ namespace Myshipping.Application } - return list.Union(config).Distinct().OrderBy(x => x.Sort).ToList(); + return list.Union(config).OrderBy(x => x.Sort).ToList(); } return null;