美团力荐

This commit is contained in:
苏尹岚
2020-02-20 15:08:27 +08:00
parent ca9b1eb260
commit 3b930b839f

View File

@@ -3369,9 +3369,7 @@ func UpdateStoreSkusSpecTagBin(ctx *jxcontext.Context, reader io.Reader, vendorI
}
for _, v := range results {
store, err := dao.GetStoreDetail(db, v.StoreID, model.VendorIDMTWM)
globals.SugarLogger.Debugf("store: [%v]", *store)
storeSkus, err := dao.GetStoresSkusInfo(db, []int{v.StoreID}, []int{v.SkuID})
globals.SugarLogger.Debugf("storeSkus: [%v]", *storeSkus[0])
if err != nil || store == nil {
continue
}
@@ -3380,7 +3378,7 @@ func UpdateStoreSkusSpecTagBin(ctx *jxcontext.Context, reader io.Reader, vendorI
v.IsSpec = 0
}
foodData["is_specialty"] = v.IsSpec
foodData["price"] = storeSkus[0].MtwmPrice
foodData["price"] = storeSkus[0].MtwmPrice / 100
if globals.EnableMtwmStoreWrite {
err = api.MtwmAPI.RetailInitData(ctx.GetTrackInfo(), store.VendorStoreID, utils.Int2Str(v.SkuID), foodData)
}