【优化】移除后台用户列表联表查询的历史积分功能,加快访问速度。

This commit is contained in:
jianweie code
2023-11-29 23:58:44 +08:00
parent f02143eb59
commit de17c91e1f
4 changed files with 2 additions and 16 deletions

View File

@@ -134,7 +134,6 @@ namespace CoreCms.Net.Repository
type = (int)sWeChatInfo.type,
parentNickName = sParentUser.nickName,
childNum = SqlFunc.Subqueryable<CoreCmsUser>().Where(o => o.parentId == p.id).Count(),
accumulativePoint = SqlFunc.Subqueryable<CoreCmsUserPointLog>().Where(o => o.userId == p.id && o.num > 0).Sum(c => c.num),
})
.MergeTable().With(SqlWith.Null)
.OrderBy(orderByExpression, orderByType)