From a39a7c76c5fad64df5b97c9dc01875db2ee72bd7 Mon Sep 17 00:00:00 2001 From: daixiaogang <2510234660@qq.com> Date: Wed, 13 Sep 2023 14:28:53 +0800 Subject: [PATCH] rebuildAddRetReason --- .../java/com/ms/api/bo/MoveProductPublishQueueBO.java | 2 ++ ms-biz/src/main/java/com/ms/api/bo/MoveShopSettingBO.java | 2 ++ .../com/ms/api/task/ProcessProductPublishTaskService.java | 8 +++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ms-biz/src/main/java/com/ms/api/bo/MoveProductPublishQueueBO.java b/ms-biz/src/main/java/com/ms/api/bo/MoveProductPublishQueueBO.java index 536625da..2382eb71 100644 --- a/ms-biz/src/main/java/com/ms/api/bo/MoveProductPublishQueueBO.java +++ b/ms-biz/src/main/java/com/ms/api/bo/MoveProductPublishQueueBO.java @@ -105,4 +105,6 @@ public class MoveProductPublishQueueBO { private StrObjMap skuPresellChildSkuDetail; + private Double hasImportPrice; + } diff --git a/ms-biz/src/main/java/com/ms/api/bo/MoveShopSettingBO.java b/ms-biz/src/main/java/com/ms/api/bo/MoveShopSettingBO.java index 28f88bab..3b3abd33 100644 --- a/ms-biz/src/main/java/com/ms/api/bo/MoveShopSettingBO.java +++ b/ms-biz/src/main/java/com/ms/api/bo/MoveShopSettingBO.java @@ -172,4 +172,6 @@ public class MoveShopSettingBO { private Integer resetSkuStockNum; private Integer resetSkuZeroStockNum; private Integer quantity; + + private String skuCodeRule; } 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 e88ca194..32efd819 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 @@ -1995,7 +1995,7 @@ public class ProcessProductPublishTaskService extends TaskBaseService { price = 0; } // TODO -// skuMap = appendSkuCode(moveBaseData, queueMsg, skuMap, itemNum); + skuMap = appendSkuCode(moveBaseData, queueMsg, skuMap, itemNum); // skuList = buildSkuListAndSkuImages(mSkus.getJSONObject() ['skuMap'], mSkus['colorMap'], mSkus['sizeMap'], condition, (price > 0 ? price : queueMsg.getPrice()), queueMsg.getShopId()); // skuList = calSkuPriceByCondition($isFastMode, $skuList, $condition['price'], $moveBaseData, $cnaliDsDetailId, $hasImportPrice); // updateSkuMinPriceInfo = getUpdateSkuMinPriceInfo($condition['price'], $skuList); @@ -2009,6 +2009,12 @@ public class ProcessProductPublishTaskService extends TaskBaseService { return result; } + private JSONObject appendSkuCode(JSONObject moveBaseData, MoveProductPublishQueueBO queueMsg, JSONObject skuList, String itemNum) { + MoveShopSettingBO condition = queueMsg.getCondition(); + + return null; + } + private JSONObject resetSkuStock(MoveShopSettingBO condition, JSONObject skuMap, int isFastMode) { if (isFastMode == 0) { return skuMap;