修改
This commit is contained in:
@@ -20,8 +20,6 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||
|
||||
public UserSimpleInfo AnalysisDoctorUser { get; set; }
|
||||
|
||||
public UserSimpleInfo CompareDoctorUser { get; set; }
|
||||
|
||||
|
||||
public int? GeneratedSubjectCount { get; set; }
|
||||
|
||||
|
||||
@@ -275,7 +275,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
var query = from enroll in _repository.Where<Enroll>(t => t.TrialId == trialId)
|
||||
join user in _repository.Where<User>() on enroll.DoctorId equals user.DoctorId
|
||||
join taskConsistentRule in _repository.Where<TaskConsistentRule>(t=>t.TrialId==addOrEdit.TrialId) on user.Id equals taskConsistentRule.AnalysisDoctorUserId into c
|
||||
join taskConsistentRule in _repository.Where<TaskConsistentRule>(t=>t.TrialId== trialId) on user.Id equals taskConsistentRule.AnalysisDoctorUserId into c
|
||||
from taskConsistentRule in c.DefaultIfEmpty()
|
||||
select new
|
||||
{
|
||||
@@ -298,7 +298,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
var verifyExp1 = new EntityVerifyExp<TaskConsistentRule>()
|
||||
{
|
||||
VerifyExp = t => t.AnalysisDoctorUserId == addOrEdit.AnalysisDoctorUserId && t.TrialId == addOrEdit.TrialId,
|
||||
VerifyExp = t => t.AnalysisDoctorUserId == doctor.DoctorUserId && t.TrialId == trialId,
|
||||
VerifyMsg = "已有该医生配置,不允许继续增加"
|
||||
};
|
||||
|
||||
@@ -308,7 +308,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
}
|
||||
else
|
||||
{
|
||||
await _taskConsistentRuleRepository.UpdatePartialFromQueryAsync(t => t.TrialId == addOrEdit.TrialId, c => new TaskConsistentRule()
|
||||
await _taskConsistentRuleRepository.UpdatePartialFromQueryAsync(t => t.TrialId == trialId, c => new TaskConsistentRule()
|
||||
{
|
||||
PlanSubjectCount = c.PlanSubjectCount,
|
||||
PlanVisitCount = c.PlanVisitCount,
|
||||
|
||||
Reference in New Issue
Block a user