From fd5e61b2491b2eda7b5f7756f6fcc7c827be3595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 14 Jul 2026 09:53:48 +0800 Subject: [PATCH] 1 --- business/partner/purchase/mtwm/order.go | 1 - business/partner/purchase/mtwm/store_sku2.go | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/business/partner/purchase/mtwm/order.go b/business/partner/purchase/mtwm/order.go index 8d1149ce8..03afc139c 100644 --- a/business/partner/purchase/mtwm/order.go +++ b/business/partner/purchase/mtwm/order.go @@ -335,7 +335,6 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo } order.CouponIDs = strings.Join(tagListStr, ",") } - // 包装袋金额 store, _ := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), order.VendorStoreID, model.VendorIDMTWM, order.VendorOrgCode) if store != nil { diff --git a/business/partner/purchase/mtwm/store_sku2.go b/business/partner/purchase/mtwm/store_sku2.go index ea25706b6..ddf0fcb1f 100644 --- a/business/partner/purchase/mtwm/store_sku2.go +++ b/business/partner/purchase/mtwm/store_sku2.go @@ -341,6 +341,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI } else { syncType = "更新商品" } + for i, storeSku := range storeSkuList { isNeedUpdatePrice := isCreate //storeSku.SkuSyncStatus&(model.SyncFlagPriceMask|model.SyncFlagNewMask) != 0 foodData := make(map[string]interface{}) @@ -469,6 +470,11 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI } } + + if storeID == 668530 { + globals.SugarLogger.Debugf("------storeSkuList:%s,%s", syncType, utils.Format4Output(storeSkuList, false)) + globals.SugarLogger.Debugf("------foodDataList:%s", utils.Format4Output(foodDataList, false)) + } api := getAPI(getStoreVendorOrgCode(storeID), storeID, vendorStoreID) if globals.EnableMtwmStoreWrite { if len(foodDataList) == 1 {