瀏覽代碼

z

ingredientmanage
zhaoy 9 月之前
父節點
當前提交
a6e8346174
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs

+ 1
- 0
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs 查看文件

@@ -461,6 +461,7 @@ 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…
取消
儲存