Uat_Study
parent
68788c5294
commit
ab0d75903a
|
@ -4454,6 +4454,11 @@
|
||||||
问题英文分组
|
问题英文分组
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.CalculateRelationDto.QuestionName">
|
||||||
|
<summary>
|
||||||
|
问题名称
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.CalculateRelationDto.CustomCalculateMark">
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.CalculateRelationDto.CustomCalculateMark">
|
||||||
<summary>
|
<summary>
|
||||||
自定义计算标记
|
自定义计算标记
|
||||||
|
|
|
@ -1140,6 +1140,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public Guid? ReadingQuestionId { get; set; }
|
public Guid? ReadingQuestionId { get; set; }
|
||||||
|
|
||||||
|
public bool IsGetAll { get; set; } = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -420,7 +420,7 @@ namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
var relationList = await GetQuestionCalculateRelation(new GetQuestionCalculateRelationInDto()
|
var relationList = await GetQuestionCalculateRelation(new GetQuestionCalculateRelationInDto()
|
||||||
{
|
{
|
||||||
|
IsGetAll=true,
|
||||||
TrialReadingCriterionId = indto.ReadingQuestionCriterionTrialId,
|
TrialReadingCriterionId = indto.ReadingQuestionCriterionTrialId,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -504,8 +504,8 @@ namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
if (inDto.TrialReadingCriterionId != null)
|
if (inDto.TrialReadingCriterionId != null)
|
||||||
{
|
{
|
||||||
return await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId
|
return await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
|
||||||
&&x.DataSource== DataSources.Automatic&&x.Type== "number")
|
.WhereIf(!inDto.IsGetAll,x=>x.DataSource== DataSources.Automatic&&x.Type== "number")
|
||||||
.Select(x => new CalculateRelationDto()
|
.Select(x => new CalculateRelationDto()
|
||||||
{
|
{
|
||||||
QuestionId = x.Id,
|
QuestionId = x.Id,
|
||||||
|
@ -520,7 +520,8 @@ namespace IRaCIS.Application.Services
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == inDto.ReadingQuestionId && x.DataSource == DataSources.Automatic && x.Type == "number")
|
return await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == inDto.ReadingQuestionId)
|
||||||
|
.WhereIf(!inDto.IsGetAll, x => x.DataSource == DataSources.Automatic && x.Type == "number")
|
||||||
.Select(x => new CalculateRelationDto()
|
.Select(x => new CalculateRelationDto()
|
||||||
{
|
{
|
||||||
QuestionId = x.Id,
|
QuestionId = x.Id,
|
||||||
|
@ -673,9 +674,9 @@ namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
var relationList = await GetQuestionCalculateRelation(new GetQuestionCalculateRelationInDto()
|
var relationList = await GetQuestionCalculateRelation(new GetQuestionCalculateRelationInDto()
|
||||||
{
|
{
|
||||||
|
IsGetAll = true,
|
||||||
ReadingQuestionId = indto.ReadingQuestionId,
|
ReadingQuestionId = indto.ReadingQuestionId,
|
||||||
});
|
}) ;
|
||||||
|
|
||||||
var relation = relationList.FirstOrDefault(x => x.QuestionId == indto.Id);
|
var relation = relationList.FirstOrDefault(x => x.QuestionId == indto.Id);
|
||||||
List<CalculateInfo> calculateInfoList = new List<CalculateInfo>();
|
List<CalculateInfo> calculateInfoList = new List<CalculateInfo>();
|
||||||
|
|
Loading…
Reference in New Issue