mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 05:19:49 +08:00
【优化】移除后台用户列表联表查询的历史积分功能,加快访问速度。
This commit is contained in:
@@ -7762,11 +7762,6 @@
|
|||||||
父级名称
|
父级名称
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CoreCms.Net.Model.Entities.CoreCmsUser.accumulativePoint">
|
|
||||||
<summary>
|
|
||||||
累计积分
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="T:CoreCms.Net.Model.Entities.CoreCmsUserBalance">
|
<member name="T:CoreCms.Net.Model.Entities.CoreCmsUserBalance">
|
||||||
<summary>
|
<summary>
|
||||||
用户余额表
|
用户余额表
|
||||||
|
|||||||
@@ -35,13 +35,5 @@ namespace CoreCms.Net.Model.Entities
|
|||||||
[SugarColumn(IsIgnore = true)]
|
[SugarColumn(IsIgnore = true)]
|
||||||
public string parentNickName { get; set; }
|
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,
|
type = (int)sWeChatInfo.type,
|
||||||
parentNickName = sParentUser.nickName,
|
parentNickName = sParentUser.nickName,
|
||||||
childNum = SqlFunc.Subqueryable<CoreCmsUser>().Where(o => o.parentId == p.id).Count(),
|
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)
|
.MergeTable().With(SqlWith.Null)
|
||||||
.OrderBy(orderByExpression, orderByType)
|
.OrderBy(orderByExpression, orderByType)
|
||||||
|
|||||||
@@ -225,8 +225,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'accumulativePoint', title: '累计积分', sort: false, width: 70, templet: function (data) {
|
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">' + data.accumulativePoint + '</a>';
|
var html = '<a class="link-hot option-show point" data-id="' + data.id + '" data-type="accumulativePoint">查看历史积分</a>';
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user