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

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

@@ -7762,11 +7762,6 @@
父级名称
</summary>
</member>
<member name="P:CoreCms.Net.Model.Entities.CoreCmsUser.accumulativePoint">
<summary>
累计积分
</summary>
</member>
<member name="T:CoreCms.Net.Model.Entities.CoreCmsUserBalance">
<summary>
用户余额表

View File

@@ -35,13 +35,5 @@ namespace CoreCms.Net.Model.Entities
[SugarColumn(IsIgnore = true)]
public string parentNickName { get; set; }
/// <summary>
/// 累计积分
/// </summary>
[SugarColumn(IsIgnore = true)]
public int accumulativePoint { get; set; }
}
}

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)

View File

@@ -225,8 +225,8 @@
}
},
{
field: 'accumulativePoint', title: '累计积分', sort: false, width: 70, templet: function (data) {
var html = '<a class="link-hot option-show point" data-id="' + data.id + '" data-type="accumulativePoint">' + data.accumulativePoint + '</a>';
field: 'accumulativePoint', title: '累计积分', sort: false, width: 100, templet: function (data) {
var html = '<a class="link-hot option-show point" data-id="' + data.id + '" data-type="accumulativePoint">查看历史积分</a>';
return html;
}
},