From c358dab842378cdbe6c7a738ea20c5d7420c7dda Mon Sep 17 00:00:00 2001 From: daixiaogang <2510234660@qq.com> Date: Sun, 17 Sep 2023 18:28:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/task/ProcessProductPublishTaskService.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ms-biz/src/main/java/com/ms/api/task/ProcessProductPublishTaskService.java b/ms-biz/src/main/java/com/ms/api/task/ProcessProductPublishTaskService.java index 2ef7fd75..bed48edc 100644 --- a/ms-biz/src/main/java/com/ms/api/task/ProcessProductPublishTaskService.java +++ b/ms-biz/src/main/java/com/ms/api/task/ProcessProductPublishTaskService.java @@ -680,8 +680,9 @@ public class ProcessProductPublishTaskService extends TaskBaseService { if (!Objects.isNull(imagePaths) && !imagePaths.isEmpty()) { defaultColorImg = imagePaths.get(0); } - JSONObject skus = buildFastModeAddSkuMinPriceSku(queueMsg.getIsFastMode(), moveBaseData.getJSONObject("skus"), queueMsg.getCondition(), defaultColorImg); - moveBaseData.put("skus", skus); + // // TODO: 2023/9/17 暂时不走极速模式 +// JSONObject skus = buildFastModeAddSkuMinPriceSku(queueMsg.getIsFastMode(), moveBaseData.getJSONObject("skus"), queueMsg.getCondition(), defaultColorImg); +// moveBaseData.put("skus", skus); Ret processSkuAliasRet = replaceAndDeleteSkuName(moveBaseData, (JSONObject) JSONObject.toJSON(condition)); if (CommonTool.isFailRet(processSkuAliasRet)) { @@ -1961,9 +1962,9 @@ public class ProcessProductPublishTaskService extends TaskBaseService { Object[] processedResult = processAddSkuMinPrice(priceCondition, minPrice, colorMap, sizeMap, skuMap, defaultColorImg); - skuMap = (JSONObject) processedResult[0]; - colorMap = (JSONObject) processedResult[1]; - sizeMap = (JSONObject) processedResult[2]; + colorMap = (JSONObject) processedResult[0]; + sizeMap= (JSONObject) processedResult[1]; + skuMap = (JSONObject) processedResult[2]; skus.put("skuMap", skuMap); skus.put("colorMap", colorMap); @@ -2054,8 +2055,8 @@ public class ProcessProductPublishTaskService extends TaskBaseService { // addSkuMinPriceColorImg = defaultColorImg; // } // propInfo.put("imgUrls", new JSONArray().add(addSkuMinPriceColorImg)); +// saleProp.put(skuMinPriceStr, propInfo); } - saleProp.put(skuMinPriceStr, propInfo); return saleProp; }