From a30594ccaa93dc4aa31da5305268237341820be2 Mon Sep 17 00:00:00 2001
From: he <10978375@qq.com>
Date: Fri, 26 Aug 2022 16:25:58 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Service/Reading/ReadingQuestionService.cs | 25 +++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs
index 1bd88a16b..3b955840c 100644
--- a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs
+++ b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs
@@ -286,6 +286,31 @@ namespace IRaCIS.Application.Services
return ResponseOutput.Result(success);
}
+ ///
+ /// 获取项目表格其他问题
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task> GetReadingTableOtherQuestionTrial(GetReadingTableOtherQuestionSystemInDto inDto)
+ {
+ var types = new List()
+ {
+ "select","radio"
+ };
+ var questionList = await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == inDto.ReadingQuestionId)
+ .Where(x => types.Contains(x.Type))
+ .WhereIf(inDto.Id != null, x => x.Id != inDto.Id && x.ParentId != inDto.Id)
+
+ .Select(x => new CriterionOtherQuestionOutDto()
+ {
+ QuestionId = x.Id,
+ QuestionName = x.QuestionName,
+ TypeValue = x.TypeValue,
+ }).ToListAsync();
+
+ return questionList;
+ }
///
/// 获取系统表格其他问题