修改一版
parent
a8a2e1965c
commit
a3f8245077
|
@ -88,10 +88,25 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public string ParentCode { get; set; }
|
public string ParentCode { get; set; }
|
||||||
|
|
||||||
public List<Guid> DictionaryIds { get; set; }
|
public List<SetCriterionDictionaryDto> DictionaryList { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class SetCriterionDictionaryDto
|
||||||
|
{
|
||||||
|
public Guid DictionaryId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// IsBaseLineUse
|
||||||
|
/// </summary>
|
||||||
|
public bool IsBaseLineUse { get; set; } = false;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// IsBaseUse
|
||||||
|
/// </summary>
|
||||||
|
public bool IsFollowVisitUse { get; set; } = false;
|
||||||
|
}
|
||||||
|
|
||||||
public class SetDictionaryFollowVisitUseInDto
|
public class SetDictionaryFollowVisitUseInDto
|
||||||
{
|
{
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
|
@ -139,6 +154,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsBaseLineUse { get; set; } = false;
|
public bool IsBaseLineUse { get; set; } = false;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// IsBaseUse
|
/// IsBaseUse
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -473,10 +473,12 @@ namespace IRaCIS.Core.Application.Service.RC
|
||||||
{
|
{
|
||||||
await _readingCriterionDictionaryRepository.BatchDeleteNoTrackingAsync(x => x.CriterionId == inDto.CriterionId && x.ParentCode == inDto.ParentCode);
|
await _readingCriterionDictionaryRepository.BatchDeleteNoTrackingAsync(x => x.CriterionId == inDto.CriterionId && x.ParentCode == inDto.ParentCode);
|
||||||
|
|
||||||
await _readingCriterionDictionaryRepository.AddRangeAsync(inDto.DictionaryIds.Select(x => new ReadingCriterionDictionary()
|
await _readingCriterionDictionaryRepository.AddRangeAsync(inDto.DictionaryList.Select(x => new ReadingCriterionDictionary()
|
||||||
{
|
{
|
||||||
CriterionId = inDto.CriterionId,
|
CriterionId = inDto.CriterionId,
|
||||||
DictionaryId = x,
|
DictionaryId = x.DictionaryId,
|
||||||
|
IsBaseLineUse=x.IsBaseLineUse,
|
||||||
|
IsFollowVisitUse=x.IsFollowVisitUse,
|
||||||
IsSystemCriterion = true,
|
IsSystemCriterion = true,
|
||||||
ParentCode = inDto.ParentCode
|
ParentCode = inDto.ParentCode
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue