Uat_Study
parent
1460b6f90d
commit
085e1d23cd
|
@ -209,7 +209,39 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public string QuestionName { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取其他问题返回的Dto
|
||||
/// </summary>
|
||||
public class CriterionOtherQuestionOutDto
|
||||
{
|
||||
public Guid QuestionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 问题名称
|
||||
/// </summary>
|
||||
public string QuestionName { get; set; }
|
||||
}
|
||||
public class GetTrialCriterionOtherQuestionInDto
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid ReadingQuestionCriterionTrialId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前ID
|
||||
/// </summary>
|
||||
public Guid? ReadingQuestionTrialId { get; set; }
|
||||
}
|
||||
|
||||
public class GetSystemCriterionOtherQuestionInDto
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid ReadingQuestionCriterionSystemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前ID
|
||||
/// </summary>
|
||||
public Guid? ReadingQuestionSystemId { get; set; }
|
||||
}
|
||||
|
||||
public class ReadingQuestionSystemViewInDto : PageInput
|
||||
{
|
||||
|
|
|
@ -172,6 +172,25 @@ namespace IRaCIS.Application.Services
|
|||
inDto.Asc);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取系统标准的其他问题
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<CriterionOtherQuestionOutDto>> GetSystemCriterionOtherQuestion(GetSystemCriterionOtherQuestionInDto inDto)
|
||||
{
|
||||
var questionList =await _readingQuestionSystemRepository.Where(x => x.ReadingQuestionCriterionSystemId == inDto.ReadingQuestionCriterionSystemId)
|
||||
.WhereIf(inDto.ReadingQuestionSystemId != null, x => x.Id != inDto.ReadingQuestionSystemId)
|
||||
.Select(x => new CriterionOtherQuestionOutDto()
|
||||
{
|
||||
QuestionId = x.Id,
|
||||
QuestionName = x.QuestionName
|
||||
}).ToListAsync();
|
||||
|
||||
return questionList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除系统问题
|
||||
/// </summary>
|
||||
|
@ -367,6 +386,27 @@ namespace IRaCIS.Application.Services
|
|||
inDto.Asc);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目标准的其他问题(项目)
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<CriterionOtherQuestionOutDto>> GetTrialCriterionOtherQuestion(GetTrialCriterionOtherQuestionInDto inDto)
|
||||
{
|
||||
var questionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId)
|
||||
.WhereIf(inDto.ReadingQuestionTrialId != null, x => x.Id != inDto.ReadingQuestionTrialId)
|
||||
.Select(x => new CriterionOtherQuestionOutDto()
|
||||
{
|
||||
QuestionId = x.Id,
|
||||
QuestionName = x.QuestionName
|
||||
}).ToListAsync();
|
||||
|
||||
return questionList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除项目问题(项目)
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue