From abb171b7856fd50ecc4f4ecf47d7f83cb229a691 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 8 Apr 2024 13:42:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/svc/goods/svc_goods_list_by_pay.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/admin/svc/goods/svc_goods_list_by_pay.go b/app/admin/svc/goods/svc_goods_list_by_pay.go index b5d6a35..0308887 100644 --- a/app/admin/svc/goods/svc_goods_list_by_pay.go +++ b/app/admin/svc/goods/svc_goods_list_by_pay.go @@ -16,7 +16,11 @@ func GetSkuScheme(engine *xorm.Engine, EnterpriseId string, gids []string) map[i var enterpriseScheme model.SchemeWithEnterprise engine.Where("enterprise_id=?", EnterpriseId).Get(&enterpriseScheme) if enterpriseScheme.SchemeId > 0 { - + var scheme model.Scheme + engine.Where("id=?", enterpriseScheme.SchemeId).Get(&scheme) + if scheme.State != 1 { + return skuSchemeMap + } var skuScheme []model.SchemeWithSku engine.In("goods_id", gids).And("scheme_id=?", enterpriseScheme.SchemeId).Find(&skuScheme) for _, v := range skuScheme {