Uat_Study
hang 2022-07-22 13:53:45 +08:00
parent 5342d4d470
commit 494d0c53ae
2 changed files with 1 additions and 2 deletions

View File

@ -68,7 +68,7 @@ namespace IRaCIS.Core.Application.Service
[HttpDelete("{taskAllocationRuleId:guid}")]
public async Task<IResponseOutput> DeleteTaskAllocationRule(Guid taskAllocationRuleId)
{
if (await _taskAllocationRuleRepository.Where(t => t.Id == taskAllocationRuleId).AnyAsync(t => t.DoctorVisitTaskList.Any()))
if (await _taskAllocationRuleRepository.Where(t => t.Id == taskAllocationRuleId).AnyAsync(t => t.Enroll.DoctorTrialVisitTaskList.Any()))
{
return ResponseOutput.NotOk("已分配任务给该医生,不允许删除");
}

View File

@ -46,7 +46,6 @@ namespace IRaCIS.Core.Domain.Models
public int PlanReadingRatio { get; set; }
public List<VisitTask> DoctorVisitTaskList { get; set; } = new List<VisitTask>();