From e1e2fe5710a5b5cd9c19bd3aa99c998a1a613ca8 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Sat, 17 Jan 2026 17:58:01 +0800
Subject: [PATCH] 团购组件增加筛选

---
 admin/app/common/model/supplier/member/Plan.php |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/admin/app/common/model/supplier/member/Plan.php b/admin/app/common/model/supplier/member/Plan.php
index 314289f..bedb40f 100644
--- a/admin/app/common/model/supplier/member/Plan.php
+++ b/admin/app/common/model/supplier/member/Plan.php
@@ -26,7 +26,16 @@
      */
     public function getEnabledPlans()
     {
-        return $this->where(['status' => 1, 'is_default' =>0])
+        return $this->where(['status' => 1, 'is_default' =>0,'is_delete'=>0])
+            ->order(['sort' => 'asc', 'create_time' => 'desc'])
+            ->select();
+    }
+    /**
+     * 获取启用的年卡列表(包含默认年卡)
+     */
+    public function getEnabledPlansAll()
+    {
+        return $this->where(['status' => 1,'is_delete'=>0])
             ->order(['sort' => 'asc', 'create_time' => 'desc'])
             ->select();
     }

--
Gitblit v1.9.2