修改排序

This commit is contained in:
zpc 2024-08-19 12:15:10 +08:00
parent 1e26d75369
commit 53c989368f
2 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>寰梦后台管理</title>
<script type="module" crossorigin src="/static/js/index-Cw_NB0vp.js"></script>
<script type="module" crossorigin src="/static/js/index-DZ3SCI4I.js"></script>
<link rel="stylesheet" crossorigin href="/static/css/index-CzwB8sLn.css">
</head>

View File

@ -43,9 +43,7 @@ public class T_ProductsService : ApplicationService<IRepository<T_Products>>
//道具类型
.WhereIf(pagingSearchInput.Search?.ProductType != null && pagingSearchInput.Search?.ProductType > 0,
w => w.ProductType == pagingSearchInput.Search.ProductType)
.OrderBy(w => w.OrderById)
.OrderBy(it=>it.ProductType).ThenBy(it=>it.OrderById)
.Select(w => new
{
w.Id,