浏览代码

z

ingredientmanage
zhaoy 7 个月前
父节点
当前提交
daa6e4e72b
共有 1 个文件被更改,包括 0 次插入2 次删除
  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 查看文件

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


正在加载...
取消
保存