From bc04dbe43e93d8f90a9fed41ef4393b744319679 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 22 Aug 2023 17:18:06 +0800 Subject: [PATCH] fix --- model/gmodel/fs_product_size_logic.go | 1 - 1 file changed, 1 deletion(-) 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