create all
This commit is contained in:
@@ -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.SyncStore(ctx, db, storeMap.VendorID, storeID, false, userName)
|
||||||
_, err = CurVendorSync.FullSyncStoresSkus(ctx, db, []int{vendorID}, []int{storeID}, true, nil, true, true)
|
_, err = CurVendorSync.FullSyncStoresSkus(ctx, db, []int{vendorID}, []int{storeID}, true, nil, true, true)
|
||||||
if utils.IsNil(errList) && err == nil {
|
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
|
return outStoreMap, nil
|
||||||
} else {
|
} else {
|
||||||
return outStoreMap, errors.New(fmt.Sprintf("errList=%s,err=%v", utils.Format4Output(errList, true), err))
|
return outStoreMap, errors.New(fmt.Sprintf("errList=%s,err=%v", utils.Format4Output(errList, true), err))
|
||||||
|
|||||||
@@ -362,19 +362,18 @@ func (P *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
|||||||
err3 := api.EditStore(params)
|
err3 := api.EditStore(params)
|
||||||
if err3 != nil {
|
if err3 != nil {
|
||||||
errList.AddErr(err3)
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user