optimize
wet 2 years ago
parent 16f2ff8aed
commit 21a50d734b

@ -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<GoodsStatusQuery>(config).Distinct().OrderBy(x => x.Sort).ToList();
return list.Union<GoodsStatusQuery>(config).OrderBy(x => x.Sort).ToList();
}
return null;

Loading…
Cancel
Save