Ver código fonte

z

ingredientmanage
zhaoy 7 meses atrás
pai
commit
daa6e4e72b
1 arquivos alterados com 0 adições e 2 exclusões
  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 Ver arquivo

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


Carregando…
Cancelar
Salvar