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+"%") }