create all

This commit is contained in:
richboo111
2022-11-02 16:37:54 +08:00
parent 1f9ed97c1c
commit 3e32ffeba5
2 changed files with 13 additions and 12 deletions

View File

@@ -1596,6 +1596,8 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
_, err = CurVendorSync.SyncStore(ctx, db, storeMap.VendorID, storeID, false, userName)
_, err = CurVendorSync.FullSyncStoresSkus(ctx, db, []int{vendorID}, []int{storeID}, true, nil, true, true)
if utils.IsNil(errList) && err == nil {
globals.SugarLogger.Debug("utils.IsNil(errList)==============", utils.IsNil(errList))
globals.SugarLogger.Debug("fakeErr===========%v,%v", errList, err)
return outStoreMap, nil
} else {
return outStoreMap, errors.New(fmt.Sprintf("errList=%s,err=%v", utils.Format4Output(errList, true), err))

View File

@@ -362,19 +362,18 @@ func (P *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
err3 := api.EditStore(params)
if err3 != nil {
errList.AddErr(err3)
} else {
//更新运费模板
err = UpdateFreightTemplate(storeID)
if err != nil {
return errors.New(fmt.Sprintf("更新运费模板失败,原因:%v", err))
}
//更新电子围栏
err = UpdateFenceByStore(storeInfo.VendorOrgCode, storeID)
if err != nil {
return errors.New(fmt.Sprintf("更新电子围栏失败,原因:%v", err))
}
}
//更新运费模板
err = UpdateFreightTemplate(storeID)
if err != nil {
return errors.New(fmt.Sprintf("更新运费模板失败,原因:%v", err))
}
//更新电子围栏
err = UpdateFenceByStore(storeInfo.VendorOrgCode, storeID)
if err != nil {
return errors.New(fmt.Sprintf("更新电子围栏失败,原因:%v", err))
}
}
return err
}