Commit aa171feb by 杨树贤

添加展示供应商id

parent 043fef3a
Showing with 5 additions and 3 deletions
...@@ -4,7 +4,8 @@ import "gopkg.in/mgo.v2/bson" ...@@ -4,7 +4,8 @@ import "gopkg.in/mgo.v2/bson"
// PrevSku 对应prev_sku集合的数据结构 // PrevSku 对应prev_sku集合的数据结构
type PrevSku struct { type PrevSku struct {
ID bson.ObjectId `bson:"_id"` ID bson.ObjectId `bson:"_id"`
SkuId int64 `bson:"sku_id"` SkuId int64 `bson:"sku_id"`
SpuId int64 `bson:"spu_id"` SpuId int64 `bson:"spu_id"`
SupplierId int64 `bson:"supplier_id"`
} }
...@@ -93,6 +93,7 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan ...@@ -93,6 +93,7 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
GoodsRes.Store(goodsId, false) GoodsRes.Store(goodsId, false)
continue continue
} }
sku.SupplierId = prevSku.SupplierId
sku.SpuId = spuIdStr sku.SpuId = spuIdStr
spu = spuStr spu = spuStr
} else { } else {
......
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