Browse Source

1

AddValidOverTime
shanji 2 years ago
parent
commit
327ecbc8ad
  1. 11
      BBWY.Server.Business/PlatformSDK/JDBusiness.cs

11
BBWY.Server.Business/PlatformSDK/JDBusiness.cs

@ -186,7 +186,8 @@ namespace BBWY.Server.Business
var targetSkuIdList = skuList.Select(s => s.Id);
var exceptSkuIdList = skuIdList.Except(targetSkuIdList);
// throw new BusinessException($"{searchProductSkuRequest.CheckStep}-sku条件数量和查询结果数量不一致\r\n{string.Join(",", exceptSkuIdList)}");
throw new BusinessException($"{JsonConvert.SerializeObject(skuIdList)} 以上SKU可能已下架,请修改任务将该SKU移除奶妈列表");
//throw new BusinessException($"{JsonConvert.SerializeObject(skuIdList)} 以上SKU可能已下架,请修改任务将该SKU移除奶妈列表");
throw new BusinessException($"以上{searchProductSkuRequest.CheckStep}状态异常,可能被系统自动下架,请检查任务的精简标题是否正确\r\n{string.Join(",", exceptSkuIdList)}");
}
return skuList;
@ -899,7 +900,7 @@ namespace BBWY.Server.Business
{
stepText = "查询奶妈模板SKU";
searchProductSkuRequest.Sku = request.MotherTemplateSku;
searchProductSkuRequest.CheckStep = "奶妈模板";
searchProductSkuRequest.CheckStep = "奶妈模板SKU";
motherTemplateSkuList = GetProductSkuList(searchProductSkuRequest);
}
#endregion
@ -909,7 +910,7 @@ namespace BBWY.Server.Business
{
stepText = "查询自定义奶妈SKU";
searchProductSkuRequest.Sku = request.CustomMotherSku;
searchProductSkuRequest.CheckStep = "自定义奶妈";
searchProductSkuRequest.CheckStep = "自定义奶妈SKU";
customerMotherSkuList = GetProductSkuList(searchProductSkuRequest);
}
#endregion
@ -919,7 +920,7 @@ namespace BBWY.Server.Business
{
stepText = "查询主商品SKU";
searchProductSkuRequest.Sku = request.MainProductSku;
searchProductSkuRequest.CheckStep = "主商品";
searchProductSkuRequest.CheckStep = "主商品SKU";
mainProductSkuList = GetProductSkuList(searchProductSkuRequest);
if (mainProductSkuList != null && mainProductSkuList.Any(s => s.ProductId != request.MainProductSpu))
throw new BusinessException("主商品SKU归属有误");
@ -931,7 +932,7 @@ namespace BBWY.Server.Business
{
stepText = "查询主商品赠品SKU";
searchProductSkuRequest.Sku = request.MainProductGiftSku;
searchProductSkuRequest.CheckStep = "主商品赠品";
searchProductSkuRequest.CheckStep = "赠品SKU";
giftSkuList = GetProductSkuList(searchProductSkuRequest);
giftSkuIdList = giftSkuList.Select(gs => gs.Id).ToList();

Loading…
Cancel
Save