|
@ -992,8 +992,23 @@ namespace BBWY.Server.Business |
|
|
stepText = "组装上架/改名/设置细节图参数"; |
|
|
stepText = "组装上架/改名/设置细节图参数"; |
|
|
var indexCount = colorSaleAttrs.Count() - 1; |
|
|
var indexCount = colorSaleAttrs.Count() - 1; |
|
|
var noUsedIndexList = new List<int>(); |
|
|
var noUsedIndexList = new List<int>(); |
|
|
|
|
|
bool isClearMainProductSkuList = false; |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (mainProductSkuList == null || mainProductSkuList.Count() == 0) |
|
|
|
|
|
{ |
|
|
|
|
|
isClearMainProductSkuList = true; |
|
|
|
|
|
mainProductSkuList = GetProductSkuList(new SearchProductSkuRequest() |
|
|
|
|
|
{ |
|
|
|
|
|
AppKey = request.AppKey, |
|
|
|
|
|
AppSecret = request.AppSecret, |
|
|
|
|
|
AppToken = request.AppToken, |
|
|
|
|
|
IsContainSource = true, |
|
|
|
|
|
Platform = Enums.Platform.京东, |
|
|
|
|
|
Spu = request.MainProductSpu |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
var usedIndexList = new List<int>(); |
|
|
var usedIndexList = new List<int>(); |
|
|
usedIndexList.AddRange(mainProductSkuList.Select(ps => Convert.ToInt32(ps.Source["saleAttrs"][0]["attrValuesSeqNo"][0].ToString()))); |
|
|
usedIndexList.AddRange(mainProductSkuList.Select(ps => Convert.ToInt32(ps.Source["saleAttrs"][0]["attrValuesSeqNo"][0].ToString()))); |
|
|
for (var i = 0; i <= indexCount; i++) |
|
|
for (var i = 0; i <= indexCount; i++) |
|
@ -1010,6 +1025,14 @@ namespace BBWY.Server.Business |
|
|
noUsedIndexList.Add(i); |
|
|
noUsedIndexList.Add(i); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
finally |
|
|
|
|
|
{ |
|
|
|
|
|
if (isClearMainProductSkuList && mainProductSkuList != null) |
|
|
|
|
|
{ |
|
|
|
|
|
mainProductSkuList.Clear(); |
|
|
|
|
|
mainProductSkuList = null; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
var skusParamList = new List<SkuWriteUpdateSkusItem>(); |
|
|
var skusParamList = new List<SkuWriteUpdateSkusItem>(); |
|
|
var updateSkuTitleParamList = new List<WareWriteUpdateWareSaleAttrvalueAliasRequestItem>(); |
|
|
var updateSkuTitleParamList = new List<WareWriteUpdateWareSaleAttrvalueAliasRequestItem>(); |
|
|