mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 20:03:26 +08:00
【优化】移除后台用户列表联表查询的历史积分功能,加快访问速度。
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user