mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:03:25 +08:00
【新增】后端分发优惠券增加按用户组分发的队列功能。
This commit is contained in:
@@ -205,5 +205,18 @@ namespace CoreCms.Net.Repository
|
||||
return outs;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据会员组获取会员id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task<List<int>> GetUserIdsByGrade(int gradeId)
|
||||
{
|
||||
|
||||
var ids = await DbClient.Queryable<CoreCmsUser>().Where(p => p.grade == gradeId).Select(p => p.id)
|
||||
.ToListAsync();
|
||||
return ids;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user