From a23f93ae86bf965b16766fb0bfc8f6ea0a688479 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Sun, 12 Feb 2023 13:11:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2sku=E5=B9=B6=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E9=AA=8C=E8=AF=81=E6=97=B6=EF=BC=8C=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=85=B7=E4=BD=93=E7=BC=BA=E7=A4=BA=E7=9A=84sku?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Server.Business/PlatformSDK/JDBusiness.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index 583de442..0916af8e 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -174,7 +174,9 @@ namespace BBWY.Server.Business !string.IsNullOrEmpty(searchProductSkuRequest.Sku) && skuIdList.Count() != skuList.Count()) { - throw new BusinessException($"{searchProductSkuRequest.CheckStep}-sku条件数量和查询结果数量不一致"); + var targetSkuIdList = skuList.Select(s => s.Id); + var exceptSkuIdList = skuIdList.Except(targetSkuIdList); + throw new BusinessException($"{searchProductSkuRequest.CheckStep}-sku条件数量和查询结果数量不一致\r\n{string.Join(",", exceptSkuIdList)}"); } return skuList;