diff --git a/model/gmodel/fs_product_size_logic.go b/model/gmodel/fs_product_size_logic.go index d0a71343..cc08fa26 100755 --- a/model/gmodel/fs_product_size_logic.go +++ b/model/gmodel/fs_product_size_logic.go @@ -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) { err = s.db.WithContext(ctx).Model(&FsProductSize{}). - Select("product_id,count(*) as num"). Where("`product_id` = ? and `status` = ?", productId, 1). Order("sort ASC"). Take(&resp).Error