Browse Source

提交

master
gwbvipvip 9 months ago
parent
commit
7da09fcd13
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/MaterialServices.cs
  2. +1
    -1
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/IMaterialServices.cs
  3. +2
    -2
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/MaterialService.cs

+ 1
- 1
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/MaterialServices.cs View File

@@ -53,7 +53,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Material.Service
/// <param name="MaterialId"></param>
/// <returns></returns>
[HttpPost("/api/ExternalPlatform/Material/DelMaterial")]
public async Task<bool> DelMaterial(BaseRequestDto<DelMaterialDto> inputDto)
public async Task<bool> DelMaterial(DelMaterialDto inputDto)
{
return await _materialServices.DelMaterial(inputDto);
}


+ 1
- 1
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/IMaterialServices.cs View File

@@ -35,7 +35,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Material.Service
/// </summary>
/// <param name="MaterialId"></param>
/// <returns></returns>
Task<bool> DelMaterial(BaseRequestDto<DelMaterialDto> inputDto);
Task<bool> DelMaterial(DelMaterialDto inputDto);


/// <summary>


+ 2
- 2
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Material/Services/MaterialService.cs View File

@@ -175,11 +175,11 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Material.Service
/// </summary>
/// <param name="MaterialId"></param>
/// <returns></returns>
public async Task<bool> DelMaterial(BaseRequestDto<DelMaterialDto> inputDto)
public async Task<bool> DelMaterial(DelMaterialDto inputDto)
{
try
{
var materialData = await SqlSugarDb.Db.Queryable<BPA_Batching>().FirstAsync(x => x.Id == inputDto.DataInfo.MaterialId);
var materialData = await SqlSugarDb.Db.Queryable<BPA_Batching>().FirstAsync(x => x.Id == inputDto.MaterialId);
if (materialData == null)
{
throw Oops.Oh(ErrorCodeEnum.Code1003);


Loading…
Cancel
Save