完全随机触发系统盲态名称
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-06-19 10:21:33 +08:00
parent c3631eee51
commit 41b2a638fe
2 changed files with 18 additions and 1 deletions
@@ -3135,7 +3135,7 @@ namespace IRaCIS.Core.Application.Service
Random random = new Random();
var skipcount = 0;
var minRandomOrder = query.Where(t => t.RandomOrder != null).Select(t => t.RandomOrder).MinOrDefault();
//以随机序号优先,阅片中优先先给IR
@@ -3189,6 +3189,14 @@ namespace IRaCIS.Core.Application.Service
{
throw new BusinessValidationFailedException(_localizer["ReadingImage_TaskFinish"], ApiResponseCodeEnum.CloseCurrentWindows);
}
else
{
//触发任务随机编号
await _downloadAndUploadService.SubejctRandomReadingTaskNameDeal(task.SubjectId, task.TrialReadingCriterionId);
task.TaskBlindName = await _visitTaskRepository.Where(t => t.Id == task.VisitTaskId).Select(t => t.TaskBlindName).FirstOrDefaultAsync() ?? "";
}
if (task.SubjectCode.IsNullOrEmpty())
{