修改字段
parent
ab1b62df6b
commit
1853fd8559
|
@ -80,13 +80,11 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
|
||||
public DateTime? SignTime { get; set; }
|
||||
|
||||
//是否回退过
|
||||
public bool IsReturned { get; set; }
|
||||
|
||||
public RequestReReadingResult RequestReReadingResultEnum { get; set; }
|
||||
|
||||
//是否 重阅
|
||||
public bool IsReReading { get; set; }
|
||||
////是否 重阅
|
||||
//public bool IsReReading { get; set; }
|
||||
public DateTime? SuggesteFinishedTime { get; set; }
|
||||
|
||||
}
|
||||
|
|
|
@ -901,7 +901,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
{
|
||||
throw new BusinessValidationFailedException("已申请,或者同意状态不允许再次申请重阅");
|
||||
}
|
||||
|
||||
task.ReReadingApplyState = ReReadingApplyState.HaveApplyed;
|
||||
|
||||
//产生了裁判
|
||||
if (task.JudgeVisitTaskId != null)
|
||||
|
@ -960,8 +960,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
{
|
||||
await _visitTaskRepository.UpdatePartialFromQueryAsync(t => t.Id == item.OriginalReReadingTaskId, u => new VisitTask()
|
||||
{
|
||||
ReReadingApplyState = (agreeReReadingCommand.RequestReReadingResultEnum == RequestReReadingResult.Agree ? ReReadingApplyState.Agree : ReReadingApplyState.Reject),
|
||||
IsReReading=true
|
||||
ReReadingApplyState = (agreeReReadingCommand.RequestReReadingResultEnum == RequestReReadingResult.Agree ? ReReadingApplyState.Agree : ReReadingApplyState.Reject)
|
||||
});
|
||||
|
||||
await _visitTaskReReadingRepository.UpdatePartialFromQueryAsync(t => t.Id == item.Id, u => new VisitTaskReReading()
|
||||
|
|
|
@ -591,8 +591,10 @@ namespace IRaCIS.Application.Services
|
|||
/// <returns></returns>
|
||||
private async Task TriggerJudgeQuestion(Guid visitTaskId)
|
||||
{
|
||||
|
||||
//x.ReReadingApplyState!=ReReadingApplyState.Agree 排除重阅的
|
||||
var visitTask = await _visitTaskRepository.Where(x => x.Id == visitTaskId).FirstOrDefaultAsync();
|
||||
var visitTaskids = await _visitTaskRepository.Where(x => x.ReadingTaskState == ReadingTaskState.HaveSigned &&x.ReadingCategory!= ReadingCategory.Judge&&!x.IsReReading && x.SourceSubjectVisitId == visitTask.SourceSubjectVisitId && x.SouceReadModuleId == visitTask.SouceReadModuleId).Select(x => x.Id).ToListAsync();
|
||||
var visitTaskids = await _visitTaskRepository.Where(x => x.ReadingTaskState == ReadingTaskState.HaveSigned &&x.ReadingCategory!= ReadingCategory.Judge && x.ReReadingApplyState!=ReReadingApplyState.Agree && x.SourceSubjectVisitId == visitTask.SourceSubjectVisitId && x.SouceReadModuleId == visitTask.SouceReadModuleId).Select(x => x.Id).ToListAsync();
|
||||
if (visitTaskids.Count == 2)
|
||||
{
|
||||
var query = from questionAnswet in _readingTaskQuestionAnswerRepository.Where(x => visitTaskids.Contains(x.VisitTaskId))
|
||||
|
|
|
@ -133,8 +133,8 @@ namespace IRaCIS.Core.Domain.Models
|
|||
|
||||
|
||||
|
||||
//是否 重阅
|
||||
public bool IsReReading { get; set; }
|
||||
////是否 重阅
|
||||
//public bool IsReReading { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// DoctorUserId
|
||||
|
@ -147,8 +147,7 @@ namespace IRaCIS.Core.Domain.Models
|
|||
public TaskAllocationRule DoctorTaskAllocationRule { get; set; }
|
||||
|
||||
|
||||
//是否回退过
|
||||
public bool IsReturned { get; set; }
|
||||
|
||||
|
||||
//裁判任务的Id
|
||||
public Guid? JudgeVisitTaskId { get; set; }
|
||||
|
|
Loading…
Reference in New Issue