sku排序
This commit is contained in:
parent
d292ab57f0
commit
4c723d4531
|
@ -260,7 +260,9 @@ func (m *GoodsDetailReq) GoodsDetail() (*Goods, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
var goodsAttributes []GoodsAttribute
|
var goodsAttributes []GoodsAttribute
|
||||||
err = DB.Table("goods_attribute").Where("goods_id=?", m.GoodsId).
|
err = DB.Table("goods_attribute").
|
||||||
|
Where("goods_id=?", m.GoodsId).
|
||||||
|
Order("sort DESC").
|
||||||
Find(&goodsAttributes).Error
|
Find(&goodsAttributes).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Msgf("goods attribute err:%#v", err)
|
log.Error().Msgf("goods attribute err:%#v", err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user