From f665b1f62350701af213f39e65f61138ca336db8 Mon Sep 17 00:00:00 2001
From: he <10978375@qq.com>
Date: Mon, 22 May 2023 11:56:11 +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/Dto/GetReadModuleDto.cs | 5 +++++
.../Service/Reading/ReadingPeriod/ReadModuleService.cs | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/GetReadModuleDto.cs b/IRaCIS.Core.Application/Service/Reading/Dto/GetReadModuleDto.cs
index 5149bda7e..1b03e06fa 100644
--- a/IRaCIS.Core.Application/Service/Reading/Dto/GetReadModuleDto.cs
+++ b/IRaCIS.Core.Application/Service/Reading/Dto/GetReadModuleDto.cs
@@ -75,6 +75,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public Guid SubjectVisitIdId { get; set; }
+
+ ///
+ /// 模块名称
+ ///
+ public string ModuleName { get; set; }
}
public class GetSubjectReadVisitsInDto
diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingPeriod/ReadModuleService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingPeriod/ReadModuleService.cs
index 53ed4f94d..8c49a9d10 100644
--- a/IRaCIS.Core.Application/Service/Reading/ReadingPeriod/ReadModuleService.cs
+++ b/IRaCIS.Core.Application/Service/Reading/ReadingPeriod/ReadModuleService.cs
@@ -116,7 +116,8 @@ namespace IRaCIS.Application.Services
public async Task ChangeCutOffVisit(ChangeCutOffVisitInDto inDto)
{
await _readModuleRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new ReadModule() {
- SubjectVisitId=inDto.SubjectVisitIdId
+ SubjectVisitId=inDto.SubjectVisitIdId,
+ ModuleName=inDto.ModuleName,
});
return await _readModuleRepository.SaveChangesAsync();