This commit is contained in:
邹宗楠
2023-05-29 10:04:27 +08:00
parent bff2be81e8
commit 2a4de66bd4
7 changed files with 11 additions and 73 deletions

View File

@@ -109,12 +109,6 @@ func (c *DeliveryHandler) IsErrStoreNotExist(err error) bool {
}
func (c *DeliveryHandler) UpdateStore(ctx *jxcontext.Context, storeDetail *dao.StoreDetail2) (err error) {
// 获取品牌名称
brandInfo, err := dao.GetBrands(dao.GetDB(), "", storeDetail.BrandID, "", false, "")
if err != nil {
return err
}
// 获取蜂鸟门店id
fnStore, err := api.FnAPI.GetStore(storeDetail.VendorStoreID)
if err != nil {
@@ -139,7 +133,7 @@ func (c *DeliveryHandler) UpdateStore(ctx *jxcontext.Context, storeDetail *dao.S
BusinessLicencePicHash: storeDetail.Licence,
}
if storeDetail.Name != fnStore.Name {
updateStore.HeadShopName = brandInfo[0].Name + "-" + storeDetail.Name
updateStore.HeadShopName = storeDetail.Name
updateStore.BranchShopName = storeDetail.Name
}
if updateStore.OwnerName == "" {