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