From 90297e912aa78e4e6fd617ba3585e723f94c136f 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, 2 Jul 2020 13:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E8=A5=BF=E5=BB=BA=E9=97=A8=E5=BA=97?= =?UTF-8?q?=E7=BB=91=E4=BA=AC=E8=A5=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 10 ++++++++++ business/jxstore/cms/sync.go | 1 + 2 files changed, 11 insertions(+) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 0681573fc..21b21d842 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1083,6 +1083,16 @@ func CreateStore(ctx *jxcontext.Context, storeExt *StoreExt, userName string) (i UpdateOrCreateCourierStores(ctx, store.ID, false, false, false) TryAddStoreBossRole4StoreByMobile(ctx, storeExt.ID, []string{storeExt.Tel1, storeExt.Tel2}) InsertStoreCategories(ctx, db, store.ID) + AddStoreVendorMap(ctx, db, model.VendorIDJX, "", store.ID, &model.StoreMap{ + VendorStoreID: utils.Int2Str(store.ID), + AutoPickup: 1, + DeliveryCompetition: 1, + PricePercentage: 100, + IsSync: 1, + Status: model.StoreStatusOpened, + PricePercentagePack: "京西100-100", + VendorID: model.VendorIDJX, + }) return store.ID, err } return 0, err diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index b742fead4..94879927a 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -1140,6 +1140,7 @@ func syncJdsStoreStock(ctx *jxcontext.Context, db *dao.DaoDB, storeSkus []*model } func syncJdsStoresSkus(ctx *jxcontext.Context, db *dao.DaoDB, parentTask tasksch.ITask, storeMap *model.StoreMap, isAsync, isContinueWhenError bool) (err error) { + globals.SugarLogger.Debugf("syncJdsStoresSkus") var ( mainSkusMap = make(map[int][]*dao.StoreSkuSyncInfo) skusMap = make(map[int][]*dao.StoreSkuSyncInfo)