修改警告
This commit is contained in:
@@ -167,8 +167,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
public Guid SignId { get; set; }
|
||||
|
||||
|
||||
[NotDefault]
|
||||
public string SignCode { get; set; }
|
||||
[NotDefault]
|
||||
public string SignCode { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class TrialConfigDTO: BasicTrialConfig
|
||||
@@ -240,7 +240,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
public bool IsQCQuestionConfirmed { get; set; }
|
||||
|
||||
public string TrialStatusStr { get; set; }
|
||||
public string TrialStatusStr { get; set; } = string.Empty;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||
|
||||
public DateTime? ConfirmTime { get; set; }
|
||||
|
||||
public string RejectReason { get; set; }
|
||||
public string RejectReason { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
///<summary>TrialExternalUserQuery 列表查询参数模型</summary>
|
||||
@@ -102,7 +102,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||
|
||||
public DateTime? ConfirmTime { get; set; }
|
||||
|
||||
public string RejectReason { get; set; }
|
||||
public string RejectReason { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,9 @@ namespace IRaCIS.Core.Application.Services
|
||||
/// </summary>
|
||||
/// <param name="trialId"></param>
|
||||
/// <param name="isSiteUserNotAll">isAllSiteUser true : site用户列表,false :Site调研汇总表</param>
|
||||
|
||||
/// <param name="_commonDocumentRepository"></param>
|
||||
/// <param name="_trialSiteSurveyRepository"></param>
|
||||
/// <param name="_trialSiteUserSurveyRepository"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="Exception"></exception>
|
||||
[HttpGet, Route("{trialId:guid}/{isSiteUserNotAll:bool}")]
|
||||
@@ -67,13 +69,13 @@ namespace IRaCIS.Core.Application.Services
|
||||
|
||||
if (isSiteUserNotAll)
|
||||
{
|
||||
exportInfo = await _trialRepository.Where(t => t.Id == trialId).IgnoreQueryFilters().ProjectTo<TrialSiteUserExportDto>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
|
||||
exportInfo = (await _trialRepository.Where(t => t.Id == trialId).IgnoreQueryFilters().ProjectTo<TrialSiteUserExportDto>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
var data = await _trialRepository.Where(t => t.Id == trialId).IgnoreQueryFilters().ProjectTo<TrialSiteUserSummaryExportDto>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
|
||||
var data = (await _trialRepository.Where(t => t.Id == trialId).IgnoreQueryFilters().ProjectTo<TrialSiteUserSummaryExportDto>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
||||
|
||||
var groupSelectIdQuery =
|
||||
_trialSiteSurveyRepository.Where(t => t.TrialId == trialId && t.IsDeleted == false)
|
||||
|
||||
Reference in New Issue
Block a user