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