From ebec62c9227ef09a9105c3dbdb7573f0577c5fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 19 Nov 2020 17:05:40 +0800 Subject: [PATCH] test --- business/jxstore/cms/sync_store_sku.go | 3 +++ business/model/dao/store.go | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 1d91a5b86..91fddccaf 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -432,6 +432,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag if err != nil || len(skus) == 0 { return err } + if vendorID == model.VendorIDJDShop && storeID == model.JdShopMainStoreID2 { + globals.SugarLogger.Debugf("syncStoreSkuNew", utils.Format4Output(skus, false)) + } if len(excludeSkuIDs) > 0 { excludeSkuMap := jxutils.IntList2Map(excludeSkuIDs) var skus2 []*dao.StoreSkuSyncInfo diff --git a/business/model/dao/store.go b/business/model/dao/store.go index 63f77a927..5f646d311 100644 --- a/business/model/dao/store.go +++ b/business/model/dao/store.go @@ -1,7 +1,6 @@ package dao import ( - "fmt" "sort" "time" @@ -153,8 +152,6 @@ func getStoreDetail(db *DaoDB, storeID, vendorID int, vendorStoreID, vendorOrgCo if vendorID == model.VendorIDJDShop && vendorOrgCode == "" { sql += " AND t2.vendor_org_code = 1" } - fmt.Println(sql) - fmt.Println(sqlParams) if err = GetRow(db, &storeDetail, sql, sqlParams...); err == nil { storeDetail.PricePercentagePackObj = PricePercentagePack2Obj(storeDetail.PricePercentagePackStr) storeDetail.FreightDeductionPackObj = FreightDeductionPack2Obj(storeDetail.FreightDeductionPackStr)