fix
This commit is contained in:
parent
bc04dbe43e
commit
b373b7ed73
|
@ -101,7 +101,7 @@ func (s *FsProductSizeModel) GetAllByStatus(ctx context.Context, status int64, s
|
|||
}
|
||||
|
||||
// 获取第一个尺寸
|
||||
func (s *FsProductSizeModel) GetProductFirstSize(ctx context.Context, productId int64) (resp *FsProductTemplateV2, err error) {
|
||||
func (s *FsProductSizeModel) GetProductFirstSize(ctx context.Context, productId int64) (resp *FsProductSize, err error) {
|
||||
err = s.db.WithContext(ctx).Model(&FsProductSize{}).
|
||||
Where("`product_id` = ? and `status` = ?", productId, 1).
|
||||
Order("sort ASC").
|
||||
|
|
Loading…
Reference in New Issue
Block a user