京西建门店绑京西
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user