From 7da09fcd13539ae92da56206af19e4d7782f6861 Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Wed, 6 Mar 2024 16:51:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AExternalPlatform/Service/Material/MaterialServices.cs | 2 +- .../Service/Material/Services/IMaterialServices.cs | 2 +- .../Service/Material/Services/MaterialService.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/MaterialServices.cs b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/MaterialServices.cs index 3c457ae..63d3d75 100644 --- a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/MaterialServices.cs +++ b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/MaterialServices.cs @@ -53,7 +53,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Material.Service /// /// [HttpPost("/api/ExternalPlatform/Material/DelMaterial")] - public async Task DelMaterial(BaseRequestDto inputDto) + public async Task DelMaterial(DelMaterialDto inputDto) { return await _materialServices.DelMaterial(inputDto); } diff --git a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/IMaterialServices.cs b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/IMaterialServices.cs index f931d70..b4948a6 100644 --- a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/IMaterialServices.cs +++ b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/IMaterialServices.cs @@ -35,7 +35,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Material.Service /// /// /// - Task DelMaterial(BaseRequestDto inputDto); + Task DelMaterial(DelMaterialDto inputDto); /// diff --git a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/MaterialService.cs b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/MaterialService.cs index 86a6f94..7b6dcd0 100644 --- a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/MaterialService.cs +++ b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/MaterialService.cs @@ -175,11 +175,11 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Material.Service /// /// /// - public async Task DelMaterial(BaseRequestDto inputDto) + public async Task DelMaterial(DelMaterialDto inputDto) { try { - var materialData = await SqlSugarDb.Db.Queryable().FirstAsync(x => x.Id == inputDto.DataInfo.MaterialId); + var materialData = await SqlSugarDb.Db.Queryable().FirstAsync(x => x.Id == inputDto.MaterialId); if (materialData == null) { throw Oops.Oh(ErrorCodeEnum.Code1003);