From d8b646410bfd2d277588da1b4f1b79930317afdc Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Fri, 16 Sep 2022 13:32:13 +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 --- .../Reading/Dto/ReadingQuestionViewModel.cs | 15 +++++++++++++++ .../Service/Reading/ReadingQuestionService.cs | 5 +++-- .../Reading/ReadingQuestionCriterionSystem.cs | 5 +++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs index 6f6e030ed..3c3d3d455 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs @@ -373,6 +373,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto /// 是否完成配置 /// public bool IsCompleteConfig { get; set; } = false; + + /// + /// 标准英文 + /// + public string CriterionEName { get; set; } } /// @@ -1115,6 +1120,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto /// 标准 /// public string CriterionName { get; set; } + + /// + /// 标准英文 + /// + public string CriterionEName { get; set; } } public class ReadingQuestionCriterionSystemView @@ -1148,6 +1158,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto public int QuestionCount { get; set; } + /// + /// 标准英文 + /// + public string CriterionEName { get; set; } + public bool IsBeUsed { get; set; } = false; } diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs index 0c7d0aeae..2c300d490 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs @@ -664,7 +664,7 @@ namespace IRaCIS.Application.Services //[HttpPost] //public async Task AddOrUpdateReadingQuestionCriterionSystem(AddOrUpdateReadingQuestionCriterionSystemInDto indto) //{ - // var entity = await _readingQuestionCriterionSystemRepository.InsertOrUpdateAsync(indto,true); + // var entity = await _readingQuestionCriterionSystemRepository.InsertOrUpdateAsync(indto, true); // return ResponseOutput.Ok(entity.Id.ToString()); //} @@ -697,7 +697,8 @@ namespace IRaCIS.Application.Services .Select(x => new GetSystemCriterionSelectDto() { Id = x.Id, - CriterionName = x.CriterionName + CriterionName = x.CriterionName, + CriterionEName=x.CriterionEName, }).ToListAsync(); return criterionList; } diff --git a/IRaCIS.Core.Domain/Reading/ReadingQuestionCriterionSystem.cs b/IRaCIS.Core.Domain/Reading/ReadingQuestionCriterionSystem.cs index eec7e3e88..f969bf940 100644 --- a/IRaCIS.Core.Domain/Reading/ReadingQuestionCriterionSystem.cs +++ b/IRaCIS.Core.Domain/Reading/ReadingQuestionCriterionSystem.cs @@ -44,6 +44,11 @@ namespace IRaCIS.Core.Domain.Models /// public DateTime ConfirmTime { get; set; } + /// + /// 标准英文 + /// + public string CriterionEName { get; set; } = string.Empty; + /// /// 创建人 ///