mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:23:26 +08:00
【优化】移除后台会员列表分页联表中的childNum赋值,调整为接口端直接查询
This commit is contained in:
@@ -2082,13 +2082,13 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
||||
var data = await _userServices.QueryPageAsync(where, p => p.createTime, OrderByType.Desc, entity.page, entity.limit);
|
||||
|
||||
jm.status = true;
|
||||
jm.data = data.Select(p => new
|
||||
jm.data = data.Select(async p => new
|
||||
{
|
||||
p.nickName,
|
||||
p.avatarImage,
|
||||
mobile = UserHelper.FormatMobile(p.mobile),
|
||||
p.createTime,
|
||||
p.childNum
|
||||
childNum = await _userServices.GetCountAsync(p => p.parentId == p.id)
|
||||
});
|
||||
jm.otherData = new
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user