From c08bad2feca46190c994b97dd392115c49d4d788 Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Thu, 21 Nov 2024 11:34:41 +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/Doctor/DTO/DoctorModel.cs | 4 ++++
.../Service/Doctor/DoctorService.cs | 15 +++++++++++++--
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs
index ae4fbbf53..15d1d0442 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs
@@ -361,6 +361,10 @@ namespace IRaCIS.Application.Contracts
}
+ public class DeleteSummarizeInfoInDto
+ {
+ public Guid Id { get; set; }
+ }
public class GetSummarizeInfoInDto
{
public Guid DoctorId { get; set; }
diff --git a/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs b/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs
index 9476006ea..fb0a77071 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs
@@ -222,7 +222,7 @@ namespace IRaCIS.Core.Application.Service
///
///
[HttpPost]
- public async Task AddOrUpdateGneralSituation(SummarizeInfoDto inDto)
+ public async Task AddOrUpdateGneralSituation(SummarizeInfoDto inDto)
{
if (inDto.TrialId != null&&inDto.Id==null)
{
@@ -250,9 +250,20 @@ namespace IRaCIS.Core.Application.Service
var entity = await _doctorSummarizeRepository.InsertOrUpdateAsync(inDto, true);
- return entity;
+ return true;
}
+ ///
+ /// 删除概述
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task DeleteSummarizeInfo(DeleteSummarizeInfoInDto inDto)
+ {
+ var result = await _doctorSummarizeRepository.DeleteFromQueryAsync(x=>x.Id==inDto.Id);
+ return await _doctorSummarizeRepository.SaveChangesAsync();
+ }
///
/// 获取概述