From 42accd2f1d2167df1387a522eaa3b2e07fcbf7cb Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Mon, 25 Mar 2024 14:25:29 +0800 Subject: [PATCH] z --- .../AExternalPlatform/Service/Goods/Services/GoodsService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs index 0e37187..3c69718 100644 --- a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs +++ b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs @@ -441,6 +441,7 @@ 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;