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

@@ -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
}