From 71f47e692814392c1069a737fc99e740c8f881b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 16 Aug 2024 16:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=98=E5=AE=9D=E5=95=86=E5=93=81=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E5=95=86=E5=93=81=E5=90=8C=E6=AD=A5=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E4=BD=86=E6=98=AF=E6=9C=AC=E5=9C=B0tao=5Fid=E6=9C=AA=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E6=83=85=E5=86=B5,=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=95=86=E5=93=81=E6=97=A0=E6=B3=95=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E7=B3=BB=E7=BB=9F=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync_store_sku.go | 26 ------------------- .../purchase/tao_vegetable/store_sku2.go | 2 -- 2 files changed, 28 deletions(-) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 10f2426ad..4891e6a03 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -551,9 +551,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag // if vendorID == model.VendorIDJDShop { // formalizeStoreSkuListForJds(skus) // } - if storeID == 668428 { - globals.SugarLogger.Debugf("============skus : %s", utils.Format4Output(skus, false)) - } singleStoreHandler, _ := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.ISingleStoreStoreSkuHandler) storeSkuHandler := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.IPurchasePlatformStoreSkuHandler) reorderHandler, _ := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.IStoreSkuSorter) @@ -754,15 +751,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag } - if storeID == 668428 { - globals.SugarLogger.Debugf("============1 : %s", utils.Format4Output(createList, false)) - globals.SugarLogger.Debugf("============2 : %s", utils.Format4Output(deleteList, false)) - globals.SugarLogger.Debugf("============3 : %s", utils.Format4Output(updateList, false)) - globals.SugarLogger.Debugf("============4 : %s", utils.Format4Output(stockList, false)) - globals.SugarLogger.Debugf("============5 : %s", utils.Format4Output(onlineList, false)) - globals.SugarLogger.Debugf("============6 : %s", utils.Format4Output(offlineList, false)) - globals.SugarLogger.Debugf("============7 : %s", utils.Format4Output(priceList, false)) - } task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx, func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { step := batchItemList[0].(int) @@ -877,24 +865,10 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag status = model.SkuStatusDontSale name = "不可售门店商品" } - if storeID == 668428 { - globals.SugarLogger.Debugf("============statusList : %s", utils.Format4Output(statusList, false)) - globals.SugarLogger.Debugf("============offlineList : %s", utils.Format4Output(offlineList, false)) - } if len(statusList) > 0 { _, err = putils.FreeBatchStoreSkuInfo(name, func(task tasksch.ITask, batchedStoreSkuList []*partner.StoreSkuInfo) (result interface{}, successCount int, err error) { var failedList []*partner.StoreSkuInfoWithErr - if storeID == 668428 { - globals.SugarLogger.Debugf("============11111111111 : %s", utils.Format4Output(11111111111, false)) - } failedList, err = storeSkuHandler.UpdateStoreSkusStatus(ctx, storeDetail.VendorOrgCode, storeID, vendorStoreID, batchedStoreSkuList, status) - if storeID == 668428 { - globals.SugarLogger.Debugf("============22222222222222 : %s", utils.Format4Output(22222222222222, false)) - } - if storeID == 668428 { - globals.SugarLogger.Debugf("============failedList : %s", utils.Format4Output(failedList, false)) - globals.SugarLogger.Debugf("============err : %v", err) - } failedList, err = buildFailedListAndErr(failedList, err, batchedStoreSkuList, nil, storeID, vendorID, "更新门店商品状态") if len(failedList) > 0 { task.AddFailedList(failedList) diff --git a/business/partner/purchase/tao_vegetable/store_sku2.go b/business/partner/purchase/tao_vegetable/store_sku2.go index 5268c372b..b8d54e6c0 100644 --- a/business/partner/purchase/tao_vegetable/store_sku2.go +++ b/business/partner/purchase/tao_vegetable/store_sku2.go @@ -571,7 +571,6 @@ func (p *PurchaseHandler) DeleteStoreSkus(ctx *jxcontext.Context, storeID int, v // UpdateStoreSkusStatus 批量更新商品上下架状态 func (p *PurchaseHandler) UpdateStoreSkusStatus(ctx *jxcontext.Context, vendorOrgCode string, storeID int, vendorStoreID string, storeSkuList []*partner.StoreSkuInfo, status int) (failedList []*partner.StoreSkuInfoWithErr, err error) { - globals.SugarLogger.Debugf("============vendorStoreID : %s", utils.Format4Output(vendorStoreID, false)) param := &request585.AlibabaWdkSkuUpdateRequest{} updateSkuList := make([]domain585.AlibabaWdkSkuUpdateSkuDo, 0, 0) api := getAPI(getStoreVendorOrgCode(storeID), storeID, vendorStoreID) @@ -589,7 +588,6 @@ func (p *PurchaseHandler) UpdateStoreSkusStatus(ctx *jxcontext.Context, vendorOr } param.ParamList = &updateSkuList - globals.SugarLogger.Debugf("============vendorStoreID param: %s", utils.Format4Output(param, false)) result, err := api.UpdateStoreSku(param) if err != nil { globals.SugarLogger.Debugf("UpdateStoreSku Tao Vegetable err : %s", err.Error())