From 3b4f3a2125aa18ed28f4f25f9383414c255daae8 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 18 Jul 2019 10:57:58 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8Ddao.getStoreDetail?= =?UTF-8?q?=E4=B8=AD=E5=8F=82=E6=95=B0=E9=A1=BA=E5=BA=8FBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/store.go | 2 +- business/partner/purchase/ebai/store_sku.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/business/model/dao/store.go b/business/model/dao/store.go index eee67464a..58b24b545 100644 --- a/business/model/dao/store.go +++ b/business/model/dao/store.go @@ -61,9 +61,9 @@ func getStoreDetail(db *DaoDB, storeID, vendorID int, vendorStoreID string) (sto sqlParams := []interface{}{ vendorID, utils.DefaultTimeValue, - utils.DefaultTimeValue, model.ConfigTypePricePack, utils.DefaultTimeValue, + utils.DefaultTimeValue, } if storeID > 0 { sql += " AND t1.id = ?" diff --git a/business/partner/purchase/ebai/store_sku.go b/business/partner/purchase/ebai/store_sku.go index c0cd8e499..00163a02e 100644 --- a/business/partner/purchase/ebai/store_sku.go +++ b/business/partner/purchase/ebai/store_sku.go @@ -230,8 +230,8 @@ func (p *PurchaseHandler) syncStoreSkus(ctx *jxcontext.Context, parentTask tasks func(t *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { storeSku := batchItemList[0].(*tStoreSkuFullInfo) pricePercentage := jxutils.GetPricePercentage(storeDetail.PricePercentagePackObj, storeSku.UnitPrice, int(storeDetail.PricePercentage)) - globals.SugarLogger.Debugf("skuID:%d, price:%d, pricePercentage:%d", storeSku.SkuID, storeSku.Price, pricePercentage) - globals.SugarLogger.Debugf(utils.Format4Output(storeDetail.PricePercentagePackObj, false)) + // globals.SugarLogger.Debugf("skuID:%d, price:%d, pricePercentage:%d", storeSku.SkuID, storeSku.Price, pricePercentage) + // globals.SugarLogger.Debugf(utils.Format4Output(storeDetail.PricePercentagePackObj, false)) updateFields := []string{model.FieldEbaiSyncStatus} if storeSku.NameID == 0 || storeSku.EbaiSyncStatus&model.SyncFlagDeletedMask != 0 { if storeSku.EbaiSyncStatus&model.SyncFlagNewMask == 0 && !jxutils.IsEmptyID(storeSku.EbaiID) {