From 8bb6f1605df4f1033c7e1bafeb8a34bd81163058 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Mon, 18 Apr 2022 13:22:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/Controllers/InspectionController.cs | 4 ++-- .../Service/Inspection/InspectionService.cs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.API/Controllers/InspectionController.cs b/IRaCIS.Core.API/Controllers/InspectionController.cs index ec976ce0d..c7e94417f 100644 --- a/IRaCIS.Core.API/Controllers/InspectionController.cs +++ b/IRaCIS.Core.API/Controllers/InspectionController.cs @@ -260,8 +260,8 @@ namespace IRaCIS.Core.API.Controllers [UnitOfWork] public async Task UpdateModality(DataInspectionDto opt) { - var fun = _qCOperationService.UpdateModality; - return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun); + var fun =await _qCOperationService.UpdateModality(opt.OptCommand.id, opt.OptCommand.type, opt.OptCommand.modality, opt.OptCommand.bodyPart); + return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo,null, fun); } #endregion diff --git a/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs b/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs index 95dc0ecb2..1e0707772 100644 --- a/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs +++ b/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs @@ -175,6 +175,10 @@ namespace IRaCIS.Core.Application.Service.Inspection /// public async Task Enforcement(dynamic OptCommand, DataInspectionAddDTO AuditInfo, SignDTO SignInfo, dynamic fun, IResponseOutput? response=null) { + if (response!=null&&response.IsSuccess == false) + { + return response; + } Guid? signId = null; MapData(OptCommand, AuditInfo); if (AuditInfo.IsSign)