From 661486e46e048be2a4afd4b780877b7c92994d01 Mon Sep 17 00:00:00 2001 From: richjohnrambo Date: Mon, 19 Oct 2026 10:14:55 +0800 Subject: [PATCH] fix: exclude manual products from product list --- server/internal/logic/sys/product.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/logic/sys/product.go b/server/internal/logic/sys/product.go index 214c0f4..f71fff2 100644 --- a/server/internal/logic/sys/product.go +++ b/server/internal/logic/sys/product.go @@ -45,7 +45,7 @@ func (s *sSysProduct) listModel(ctx context.Context) *gdb.Model { } func (s *sSysProduct) List(ctx context.Context, in *sysin.ProductListInp) (list []*sysin.ProductListModel, total int, err error) { pc := dao.Product.Columns() - mod := s.listModel(ctx) + mod := s.listModel(ctx).Where(col("p", pc.ProductType), consts.ProductTypeStandard) if in.Name != "" { mod = mod.WhereLike(col("p", pc.Name), "%"+in.Name+"%") }