修改一版
This commit is contained in:
@@ -9,6 +9,10 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
{
|
||||
public class FinishMedicalReviewInDto
|
||||
{
|
||||
public Guid TaskMedicalReviewId { get; set; }
|
||||
}
|
||||
public class SendMedicalReviewDialogInDto
|
||||
{
|
||||
public Guid TaskMedicalReviewId { get; set; }
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
|
||||
using IRaCIS.Core.Application.Service.Reading.Dto;
|
||||
|
||||
namespace IRaCIS.Core.Application.Contracts
|
||||
{
|
||||
public interface IReadingMedicalReviewService
|
||||
{
|
||||
Task<IResponseOutput> FinishMedicalReview(FinishMedicalReviewInDto inDto);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,8 @@ using MassTransit;
|
||||
using IRaCIS.Core.Infrastructure;
|
||||
using IRaCIS.Core.Application.Service.Reading.Dto;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using Panda.DynamicWebApi.Attributes;
|
||||
using IRaCIS.Core.Application.Contracts;
|
||||
|
||||
namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
@@ -15,7 +17,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
/// 阅片医学审核
|
||||
/// </summary>
|
||||
[ ApiExplorerSettings(GroupName = "Reading")]
|
||||
public class ReadingMedicalReviewService : BaseService
|
||||
public class ReadingMedicalReviewService : BaseService, IReadingMedicalReviewService
|
||||
{
|
||||
|
||||
private readonly IRepository<ReadingMedicineTrialQuestion> _readingMedicineTrialQuestionRepository;
|
||||
@@ -297,10 +299,26 @@ namespace IRaCIS.Core.Application.Service
|
||||
return ResponseOutput.Result(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 完成医学审核
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[NonDynamicMethod]
|
||||
public async Task<IResponseOutput> FinishMedicalReview(FinishMedicalReviewInDto inDto)
|
||||
{
|
||||
|
||||
await _taskMedicalReviewRepository.UpdatePartialFromQueryAsync(inDto.TaskMedicalReviewId, x => new TaskMedicalReview()
|
||||
{
|
||||
IsReviewFinish = true
|
||||
});
|
||||
|
||||
var result = await _taskMedicalReviewRepository.SaveChangesAsync();
|
||||
return ResponseOutput.Result(result);
|
||||
}
|
||||
|
||||
|
||||
//public async Task<IResponseOutput>
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user