IsAbandon->IsDeleted
This commit is contained in:
@@ -43,7 +43,7 @@ namespace IRaCIS.Core.Application
|
||||
TotalNeedSignTrialDocCount = _userInfo.UserTypeEnumInt == (int)UserTypeEnum.SuperAdmin
|
||||
? 0
|
||||
: await _trialDocumentRepository
|
||||
.Where(t => t.IsAbandon == false || (t.IsAbandon == true &&
|
||||
.Where(t => t.IsDeleted == false || (t.IsDeleted == true &&
|
||||
t.TrialDocConfirmedUserList.Any(t =>
|
||||
t.ConfirmUserId == _userInfo.Id)))
|
||||
.SelectMany(t => t.NeedConfirmedUserTypeList)
|
||||
@@ -60,7 +60,7 @@ namespace IRaCIS.Core.Application
|
||||
TotalNeedSignSystemDocCount = _userInfo.UserTypeEnumInt == (int)UserTypeEnum.SuperAdmin
|
||||
? 0
|
||||
: await _systemDocumentRepository
|
||||
.Where(t => t.IsAbandon == false || (t.IsAbandon == true && t.SystemDocConfirmedUserList.Any(t => t.ConfirmUserId == _userInfo.Id)))
|
||||
.Where(t => t.IsDeleted == false || (t.IsDeleted == true && t.SystemDocConfirmedUserList.Any(t => t.ConfirmUserId == _userInfo.Id)))
|
||||
.SelectMany(t => t.NeedConfirmedUserTypeList)
|
||||
.CountAsync(t => t.NeedConfirmUserTypeId == _userInfo.UserTypeId),
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace IRaCIS.Core.Application
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Site 调研 每个项目 处理任务数
|
||||
/// Site 调研 每个项目 需要处理的审批统计
|
||||
/// </summary>
|
||||
/// <param name="query"></param>
|
||||
/// <returns></returns>
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace IRaCIS.Core.Application.Services
|
||||
var data = await _trialRepository.Where(t => t.Id == trialId).IgnoreQueryFilters().ProjectTo<TrialSiteUserSummaryExportDto>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
|
||||
|
||||
var groupSelectIdQuery =
|
||||
_trialSiteSurveyRepository.Where(t => t.TrialId == trialId && t.IsAbandon == false)
|
||||
_trialSiteSurveyRepository.Where(t => t.TrialId == trialId && t.IsDeleted == false)
|
||||
.GroupBy(t => t.SiteId)
|
||||
.Select(g => g.OrderByDescending(u => u.CreateTime).Select(t => t.Id).First());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user