项目邮件配置修改--024
parent
7c0c096be4
commit
d48333e71e
|
@ -18,7 +18,7 @@ namespace IRaCIS.Core.API
|
|||
{
|
||||
|
||||
|
||||
app.UseHangfireDashboard("/api/hangfire", new DashboardOptions()
|
||||
app.UseHangfireDashboard("/hangfire", new DashboardOptions()
|
||||
{
|
||||
//直接访问,没有带token 获取不到用户身份信息,所以这种自定义授权暂时没法使用
|
||||
//Authorization = new[] { new hangfireAuthorizationFilter() }
|
||||
|
|
|
@ -1508,8 +1508,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
var query = _trialUserRepository.Where(t => t.TrialId == trialId, false, true).IgnoreQueryFilters().Select(t => t.User.UserTypeRole).Distinct()
|
||||
|
||||
.ProjectTo<TrialUserType>(_mapper.ConfigurationProvider);
|
||||
|
||||
.ProjectTo<TrialUserType>(_mapper.ConfigurationProvider);
|
||||
|
||||
return await query.ToListAsync();
|
||||
|
||||
}
|
||||
|
@ -1517,11 +1517,19 @@ namespace IRaCIS.Core.Application.Service
|
|||
/// <summary>
|
||||
/// 黑名单用户Id 列表
|
||||
/// </summary>
|
||||
/// <param name="trialId"></param>
|
||||
/// <param name="trialEmailNoticeConfigId"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<List<TrialSelectUser>> GetTrialUserIdSelectList(Guid trialId)
|
||||
public async Task<List<TrialSelectUser>> GetTrialUserIdSelectList(Guid trialEmailNoticeConfigId)
|
||||
{
|
||||
var query = _trialUserRepository.Where(t => t.TrialId == trialId, false, true).IgnoreQueryFilters()
|
||||
|
||||
var trialEmailNoticeConfig = await _trialEmailNoticeConfigRepository.Where(t => t.Id == trialEmailNoticeConfigId).Include(t => t.TrialEmailNoticeUserList).FirstNotNullAsync();
|
||||
|
||||
var trialId = trialEmailNoticeConfig.TrialId;
|
||||
|
||||
var userTypeList = trialEmailNoticeConfig.TrialEmailNoticeUserList.Select(t => t.UserType).ToList();
|
||||
|
||||
|
||||
var query = _trialUserRepository.Where(t => t.TrialId == trialId && userTypeList.Contains(t.User.UserTypeEnum), false, true).IgnoreQueryFilters()
|
||||
.Select(t => new TrialSelectUser()
|
||||
{
|
||||
UserId = t.UserId,
|
||||
|
|
Loading…
Reference in New Issue