fix
This commit is contained in:
parent
425ad8be2c
commit
bc04dbe43e
|
@ -103,7 +103,6 @@ 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 *FsProductTemplateV2, err error) {
|
||||||
err = s.db.WithContext(ctx).Model(&FsProductSize{}).
|
err = s.db.WithContext(ctx).Model(&FsProductSize{}).
|
||||||
Select("product_id,count(*) as num").
|
|
||||||
Where("`product_id` = ? and `status` = ?", productId, 1).
|
Where("`product_id` = ? and `status` = ?", productId, 1).
|
||||||
Order("sort ASC").
|
Order("sort ASC").
|
||||||
Take(&resp).Error
|
Take(&resp).Error
|
||||||
|
|
Loading…
Reference in New Issue
Block a user