|
|
@@ -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); |
|
|
|