Commit 3183c265 by mushishixian

接入更新商品队列

parent 0e0f8ee2
......@@ -37,11 +37,6 @@ func MatchGoodsNameByAttrs(bomItems []model.BomItem) (result []model.BomItem, er
search = searchAttr(item, search)
searchFlag = true
}
////如果没有型号,但是有参数(参数有可能是型号),那就去匹配参数
//if item.GoodsName == "" && item.Attrs != "" {
// search = searchAttr(item, search)
// searchFlag = true
//}
}
if !searchFlag {
return bomItems, nil
......
......@@ -62,7 +62,7 @@ func BatchSaveMatchings(bomId int, matchingList []model.BomItemMatching) (err er
return
}
//更新商品价格和库存的队列
//go UpdateGoodsPriceAndStockQueue(matching.GoodsName)
go UpdateGoodsPriceAndStockQueue(matching.GoodsName)
}
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment