diff --git a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs index 3c69718..aba777e 100644 --- a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs +++ b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs @@ -441,7 +441,6 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Goods.Services { var resEntity = new BPA_GoodsType(); resEntity.Id = Guid.NewGuid().ToString(); - if (dto[i].Pid == null) dto[i].Pid = "0"; resEntity.Name = dto[i].Name; resEntity.Pid = dto[i].Pid; resEntity.Sort = dto[i].Sort; @@ -462,7 +461,6 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Goods.Services { var model=SqlSugarDb.Db.Queryable().Where(x => x.Id == dto.Id).First(); if(model==null) throw Oops.Oh("商品分类不存在"); - if (dto.Pid == null) dto.Pid = "0"; model.Name = dto.Name; model.Pid = dto.Pid; model.Sort = dto.Sort;