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;