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