Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop
This commit is contained in:
@@ -6308,10 +6308,17 @@ func BatchGetMTStoreLogos(vendorOrgCode string, mtStoreIDs []string) (storeLogos
|
|||||||
//批量更新美团门店logos
|
//批量更新美团门店logos
|
||||||
func BatchUpdateMTStoreLogos(vendorOrgCode string, relInfo []MtRelInfo) (hint string) {
|
func BatchUpdateMTStoreLogos(vendorOrgCode string, relInfo []MtRelInfo) (hint string) {
|
||||||
for _, v := range relInfo {
|
for _, v := range relInfo {
|
||||||
param := map[string]interface{}{
|
if len(v.PicUrl) == 0 && len(v.Address) == 0 {
|
||||||
"pic_url": v.PicUrl,
|
return "暂无需要更新数据"
|
||||||
"address": v.Address,
|
|
||||||
}
|
}
|
||||||
|
param := map[string]interface{}{}
|
||||||
|
if len(v.PicUrl) > 0 {
|
||||||
|
param["pic_url"] = v.PicUrl
|
||||||
|
}
|
||||||
|
if len(v.Address) > 0 {
|
||||||
|
param["address"] = v.Address
|
||||||
|
}
|
||||||
|
|
||||||
storeDetail, err1 := dao.GetStoreDetailForDD(dao.GetDB(), 0, model.VendorIDMTWM, v.PoiCode, "")
|
storeDetail, err1 := dao.GetStoreDetailForDD(dao.GetDB(), 0, model.VendorIDMTWM, v.PoiCode, "")
|
||||||
if err1 != nil {
|
if err1 != nil {
|
||||||
hint += fmt.Sprintf("%s:%v\n", v.PoiCode, err1)
|
hint += fmt.Sprintf("%s:%v\n", v.PoiCode, err1)
|
||||||
|
|||||||
Reference in New Issue
Block a user