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)