From 1a07ff016df960cbda55527811e782bfc882794e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Mon, 24 Mar 2025 10:54:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=95=B0=E6=8D=AE=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/data/repoimpl/product.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/data/repoimpl/product.go b/internal/data/repoimpl/product.go index b5ca996..2b6b0bf 100644 --- a/internal/data/repoimpl/product.go +++ b/internal/data/repoimpl/product.go @@ -63,6 +63,9 @@ func (r *ProductRepoImpl) GetByProductNo(ctx context.Context, productNo string) } item, err = r.getByProductNo(ctx, item, productNo) + if err != nil { + return err + } b, err3 := json.Marshal(item) if err3 != nil {