From 30563323a53b0d0260c97d08a9e8bd4cc8227a95 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Sat, 13 Dec 2025 18:03:52 +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 0f22cb4..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, 'app_id' => self::$app_id])
+ 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