Browse Source

z

ingredientmanage
zhaoy 6 months ago
parent
commit
daa6e4e72b
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs

+ 0
- 2
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs View File

@@ -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<BPA_GoodsType>().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;


Loading…
Cancel
Save