Uat_Study
parent
cc84b203a7
commit
30fdd2c0f5
|
@ -780,7 +780,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
public Guid TrialReadingCriterionId { get; set; }
|
||||
|
||||
|
||||
public List<Guid> GlobalAssessTypeIds { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 表单类型
|
||||
|
@ -801,6 +801,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
public class SetCriterionReadingInfoInDto
|
||||
{
|
||||
|
||||
public List<Guid> GlobalAssessTypeIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目标准ID
|
||||
|
|
|
@ -338,13 +338,7 @@ namespace IRaCIS.Core.Application
|
|||
|
||||
await _readingCriterionDictionaryRepository.BatchDeleteNoTrackingAsync(x => x.CriterionId == inDto.TrialReadingCriterionId && x.ParentCode == "GlobalAssessType");
|
||||
|
||||
await _readingCriterionDictionaryRepository.AddRangeAsync(inDto.GlobalAssessTypeIds.Select(x => new ReadingCriterionDictionary
|
||||
{
|
||||
CriterionId = inDto.TrialReadingCriterionId,
|
||||
DictionaryId = x,
|
||||
IsSystemCriterion = false,
|
||||
ParentCode = "GlobalAssessType"
|
||||
}));
|
||||
|
||||
|
||||
|
||||
var result = await _trialRepository.SaveChangesAsync();
|
||||
|
@ -388,6 +382,14 @@ namespace IRaCIS.Core.Application
|
|||
|
||||
});
|
||||
|
||||
await _readingCriterionDictionaryRepository.AddRangeAsync(inDto.GlobalAssessTypeIds.Select(x => new ReadingCriterionDictionary
|
||||
{
|
||||
CriterionId = inDto.TrialReadingCriterionId,
|
||||
DictionaryId = x,
|
||||
IsSystemCriterion = false,
|
||||
ParentCode = "GlobalAssessType"
|
||||
}));
|
||||
|
||||
var result = await _readingQuestionCriterionTrialRepository.SaveChangesAsync();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue