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 {