【新增】后台用户列表,积分调整为可用积分,增加累计积分列及可点击列表展示。

This commit is contained in:
大灰灰
2022-08-09 00:56:47 +08:00
parent a581e19421
commit e34dff3f64
5 changed files with 37 additions and 9 deletions

View File

@@ -1256,15 +1256,15 @@ namespace CoreCms.Net.Web.Admin.Controllers
#endregion
#region ============================================================
#region ============================================================
// POST: Api/CoreCmsUser/GetUserPointLogPageList
/// <summary>
/// 获取列表
/// 获取积分列表
/// </summary>
/// <returns></returns>
[HttpPost]
[Description("获取列表")]
[Description("获取积分列表")]
public async Task<AdminUiCallBack> GetUserPointLogPageList()
{
var jm = new AdminUiCallBack();
@@ -1349,6 +1349,14 @@ namespace CoreCms.Net.Web.Admin.Controllers
}
}
//积分余额 int
var searchType = Request.Form["searchType"].FirstOrDefault();
if (!string.IsNullOrEmpty(searchType) && searchType == "accumulativePoint")
{
where = where.And(p => p.num > 0);
}
//获取数据
var list = await _coreCmsUserPointLogServices.QueryPageAsync(where, orderEx, orderBy, pageCurrent,
pageSize);