zhaoy 6 달 전
부모
커밋
299cd2204f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs

+ 2
- 0
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs 파일 보기

@@ -439,6 +439,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Goods.Services
List<BPA_GoodsType> GoodsTypelist = new();
for (int i = 0; i < dto.Count; i++)
{
if (dto[i].Pid == null) dto[i].Pid = "0";
var resEntity = new BPA_GoodsType();
resEntity.Id = Guid.NewGuid().ToString();
resEntity.Name = dto[i].Name;
@@ -461,6 +462,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;


불러오는 중...
취소
저장