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 {