修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f347b34f59
commit
8f34644d45
|
|
@ -144,7 +144,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public class PreviewTheReadingListInDto : PageInput
|
||||
{
|
||||
|
||||
public Guid? Id { get; set; }
|
||||
public Guid? ReadingPeriodSetId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 阅片范围
|
||||
|
|
|
|||
|
|
@ -680,7 +680,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
// 这里还需要获取到之前已经添加的
|
||||
var isChangeReadingPlan = await IsChangeReadingPlan(new IsChangeReadingPlanInDto()
|
||||
{
|
||||
Id = inDto.Id,
|
||||
Id = inDto.ReadingPeriodSetId,
|
||||
ExpirationDate = inDto.ExpirationDate,
|
||||
ReadingScope = inDto.ReadingScope,
|
||||
TrialId = inDto.TrialId,
|
||||
|
|
@ -698,9 +698,9 @@ namespace IRaCIS.Core.Application.Service
|
|||
List<ReadModule> readModules = new List<ReadModule>();
|
||||
if (!isChangeReadingPlan)
|
||||
{
|
||||
if (inDto.Id != null)
|
||||
if (inDto.ReadingPeriodSetId != null)
|
||||
{
|
||||
readModules = await _readModuleRepository.Where(x => x.ReadingPeriodSetId == inDto.Id).ToListAsync();
|
||||
readModules = await _readModuleRepository.Where(x => x.ReadingPeriodSetId == inDto.ReadingPeriodSetId).ToListAsync();
|
||||
|
||||
var readModuleIds= readModules.Select(x => x.Id).ToList();
|
||||
|
||||
|
|
@ -709,12 +709,12 @@ namespace IRaCIS.Core.Application.Service
|
|||
isGenerateTaskVisitIds = await _readModuleRepository.Where(x => souceReadModuleIds.Contains(x.Id)&&x.ReadingPeriodPlanId!=null).Select(x=>x.SubjectVisitId).ToListAsync();
|
||||
}
|
||||
|
||||
chooseVisitVisitList = await _readingPeriodPlanRepository.Where(x => x.ReadingPeriodSetId == inDto.Id).ToListAsync();
|
||||
chooseVisitVisitList = await _readingPeriodPlanRepository.Where(x => x.ReadingPeriodSetId == inDto.ReadingPeriodSetId).ToListAsync();
|
||||
isChooseVisitIds= chooseVisitVisitList.Select(x => x.SubjectVisitId).ToList();
|
||||
IsGenerateVisitIds= chooseVisitVisitList.Where(x => x.IsGenerate).Select(x => x.SubjectVisitId).ToList();
|
||||
}
|
||||
|
||||
var isTakeEffect = await _readingPeriodSetRepository.Where(x => x.Id == inDto.Id).Select(x => x.IsTakeEffect).FirstOrDefaultAsync();
|
||||
var isTakeEffect = await _readingPeriodSetRepository.Where(x => x.Id == inDto.ReadingPeriodSetId).Select(x => x.IsTakeEffect).FirstOrDefaultAsync();
|
||||
var readModulequery = _readModuleRepository.AsQueryable();
|
||||
|
||||
// 当前项目 最晚拍片日期不为null 中心筛选
|
||||
|
|
@ -792,7 +792,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
TotalCount = totalCount,
|
||||
};
|
||||
return (result,new {
|
||||
NeedReminder=inDto.Id==null,
|
||||
NeedReminder=inDto.ReadingPeriodSetId == null,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue