This commit is contained in:
laodaming 2023-08-17 14:11:11 +08:00
parent 3f9ccaeea8
commit ddfed4a2ef

View File

@ -118,7 +118,7 @@ func (t *FsProductTemplateV2Model) FindOneByProductIdTagIdWithSizeTable(ctx cont
Where("t.product_id = ? and t.template_tag = ? ", productId, templateTag).
Where("t.status = ? and t.is_del = ?", 1, 0).
Where("s.status = ?", 1).
Order("s.sort ASC").
Order("t.sort ASC,s.sort ASC").
Take(&resp).Error
return resp, err
}