Uat_Study
parent
a9a45fd8ac
commit
cc0933da8a
|
@ -325,6 +325,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
[NotDefault]
|
[NotDefault]
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 描述
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 排序
|
/// 排序
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -370,6 +375,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string CriterionName { get; set; }
|
public string CriterionName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 描述
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否启用
|
/// 是否启用
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1160,8 +1170,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public int QuestionCount { get; set; }
|
public int QuestionCount { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 描述
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
public bool IsBeUsed { get; set; } = false;
|
public bool IsBeUsed { get; set; } = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1204,6 +1217,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
public FormType FormType { get; set; }
|
public FormType FormType { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 描述
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 修约小数点
|
/// 修约小数点
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1088,26 +1088,18 @@ namespace IRaCIS.Application.Services
|
||||||
.Select(x => x.ReadingQuestionCriterionSystemId);
|
.Select(x => x.ReadingQuestionCriterionSystemId);
|
||||||
var trialCriterionNames= _readingQuestionCriterionTrialRepository.Where(x => x.TrialId == trialId)
|
var trialCriterionNames= _readingQuestionCriterionTrialRepository.Where(x => x.TrialId == trialId)
|
||||||
.Select(x => x.CriterionName);
|
.Select(x => x.CriterionName);
|
||||||
var needAddSystemDataList = await _readingQuestionCriterionSystemRepository.Where(x => !trialUsrSystemIds.Contains(x.Id)&&x.IsEnable&& !trialCriterionNames.Contains(x.CriterionName)).Include(x=>x.ReadingQuestionSystemList).ToListAsync();
|
List<ReadingQuestionCriterionTrial> needAddCriterionList = await _readingQuestionCriterionSystemRepository.Where(x => !trialUsrSystemIds.Contains(x.Id)&&x.IsEnable&& !trialCriterionNames.Contains(x.CriterionName)).ProjectTo<ReadingQuestionCriterionTrial>(_mapper.ConfigurationProvider).ToListAsync();
|
||||||
List<ReadingQuestionCriterionTrial> needAddCriterionList = new List<ReadingQuestionCriterionTrial>();
|
|
||||||
List<ReadingQuestionTrial> needAddQuestionList = new List<ReadingQuestionTrial>();
|
List<ReadingQuestionTrial> needAddQuestionList = new List<ReadingQuestionTrial>();
|
||||||
needAddSystemDataList.ForEach(x =>
|
needAddCriterionList.ForEach(x =>
|
||||||
{
|
{
|
||||||
var criterion = new ReadingQuestionCriterionTrial()
|
x.IsEnable = false;
|
||||||
{
|
x.TrialId = trialId;
|
||||||
CriterionName = x.CriterionName,
|
x.ReadingQuestionCriterionSystemId = x.Id;
|
||||||
IsEnable = false,
|
x.Id = NewId.NextGuid();
|
||||||
ReadingQuestionCriterionSystemId = x.Id,
|
|
||||||
TrialId = trialId,
|
|
||||||
IsCompleteConfig=x.IsCompleteConfig,
|
|
||||||
Id = NewId.NextGuid(),
|
|
||||||
};
|
|
||||||
List<ReadingQuestionSystem> systemQuestionList = x.ReadingQuestionSystemList.Clone();
|
|
||||||
|
|
||||||
// 同步问题暂时注释
|
// 同步问题暂时注释
|
||||||
//List<ReadingQuestionTrial> readingQuestionTrialList = new List<ReadingQuestionTrial>();
|
//List<ReadingQuestionTrial> readingQuestionTrialList = new List<ReadingQuestionTrial>();
|
||||||
//SetChildParentQuestion(criterion.Id, trialId, systemQuestionList, readingQuestionTrialList);
|
//SetChildParentQuestion(criterion.Id, trialId, systemQuestionList, readingQuestionTrialList);
|
||||||
needAddCriterionList.Add(criterion);
|
|
||||||
//needAddQuestionList.AddRange(readingQuestionTrialList);
|
//needAddQuestionList.AddRange(readingQuestionTrialList);
|
||||||
});
|
});
|
||||||
await _readingQuestionCriterionTrialRepository.AddRangeAsync(needAddCriterionList);
|
await _readingQuestionCriterionTrialRepository.AddRangeAsync(needAddCriterionList);
|
||||||
|
|
|
@ -114,7 +114,10 @@ namespace IRaCIS.Core.Application.Service
|
||||||
CreateMap<ReadingTableQuestionTrial, ReadingTrialTableQuestionData>()
|
CreateMap<ReadingTableQuestionTrial, ReadingTrialTableQuestionData>()
|
||||||
.ForMember(d => d.OriginalId, u => u.MapFrom(s => s.Id));
|
.ForMember(d => d.OriginalId, u => u.MapFrom(s => s.Id));
|
||||||
|
|
||||||
|
CreateMap<ReadingQuestionCriterionSystem, ReadingQuestionCriterionTrial>()
|
||||||
|
.ForMember(dest => dest.ReadingQuestionTrialList, opt => opt.Ignore())
|
||||||
|
.ForMember(d => d.ReadingQuestionCriterionSystemId, u => u.MapFrom(s => s.Id)); ;
|
||||||
|
|
||||||
|
|
||||||
CreateMap<AddOrUpdateReadingQuestionCriterionSystemInDto, ReadingQuestionCriterionSystem>();
|
CreateMap<AddOrUpdateReadingQuestionCriterionSystemInDto, ReadingQuestionCriterionSystem>();
|
||||||
CreateMap<ReadingQuestionCriterionSystem, ReadingQuestionCriterionSystemView>()
|
CreateMap<ReadingQuestionCriterionSystem, ReadingQuestionCriterionSystemView>()
|
||||||
|
|
|
@ -44,7 +44,10 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime ConfirmTime { get; set; }
|
public DateTime ConfirmTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 描述
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建人
|
/// 创建人
|
||||||
|
|
|
@ -54,6 +54,12 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid CreateUserId { get; set; }
|
public Guid CreateUserId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 描述
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否确认
|
/// 是否确认
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue