修改一版
parent
f2fbe1102f
commit
2cde33e9ec
|
@ -12,6 +12,7 @@ using EasyCaching.Core;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
using IRaCIS.Core.Infrastructure;
|
using IRaCIS.Core.Infrastructure;
|
||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
|
using MassTransit;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Application.Service
|
namespace IRaCIS.Core.Application.Service
|
||||||
{
|
{
|
||||||
|
@ -291,17 +292,18 @@ namespace IRaCIS.Core.Application.Service
|
||||||
VisitTask visitTask = new VisitTask()
|
VisitTask visitTask = new VisitTask()
|
||||||
{
|
{
|
||||||
ArmEnum = Arm.JudgeArm,
|
ArmEnum = Arm.JudgeArm,
|
||||||
|
Id= NewId.NextGuid(),
|
||||||
SubjectId = firstTask.SubjectId,
|
SubjectId = firstTask.SubjectId,
|
||||||
ReadingTaskState = ReadingTaskState.WaitReading,
|
ReadingTaskState = ReadingTaskState.WaitReading,
|
||||||
TaskName = firstTask.TaskName,
|
TaskName = firstTask.TaskName,
|
||||||
ReadingCategory = ReadingCategory.Judge,
|
ReadingCategory = ReadingCategory.Judge,
|
||||||
TrialId = firstTask.TrialId,
|
TrialId = firstTask.TrialId,
|
||||||
|
|
||||||
Code = currentMaxCodeInt + 1,
|
Code = currentMaxCodeInt + 1,
|
||||||
TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask)),
|
TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask)),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
await _visitTaskRepository.AddAsync(visitTask);
|
||||||
currentMaxCodeInt = currentMaxCodeInt + 1;
|
currentMaxCodeInt = currentMaxCodeInt + 1;
|
||||||
|
|
||||||
_provider.Set<int>($"{trialId }_{ StaticData.CacheKey.TaskMaxCode}", currentMaxCodeInt + 1, TimeSpan.FromMinutes(30));
|
_provider.Set<int>($"{trialId }_{ StaticData.CacheKey.TaskMaxCode}", currentMaxCodeInt + 1, TimeSpan.FromMinutes(30));
|
||||||
|
|
Loading…
Reference in New Issue