mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:03:27 +08:00
【优化】优化售后单数量统计规则。
This commit is contained in:
@@ -147,12 +147,12 @@ namespace CoreCms.Net.Services
|
||||
/// <summary>
|
||||
/// 统计用户的售后数量
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="status"></param>
|
||||
/// <param name="whereExpression"></param>
|
||||
/// <param name="noLock"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<int> GetUserAfterSalesNum(int userId, int status)
|
||||
public async Task<int> GetUserAfterSalesNum(Expression<Func<CoreCmsBillAftersales, bool>> whereExpression, bool noLock = false)
|
||||
{
|
||||
var count = await base.GetCountAsync(p => p.userId == userId && p.status == status);
|
||||
var count = await base.GetCountAsync(whereExpression, noLock);
|
||||
return count;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user