瀏覽代碼

优惠券总数问题修复

evoxwht 2 年之前
父節點
當前提交
f0389d7348
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      crmeb/app/dao/activity/coupon/StoreCouponIssueDao.php

+ 11 - 0
crmeb/app/dao/activity/coupon/StoreCouponIssueDao.php

@@ -72,6 +72,17 @@ class StoreCouponIssueDao extends BaseDao
             ->page($page, $limit)->order('id desc')->select()->toArray();
     }
 
+    /**
+     * 优惠券数量
+     * @param $where
+     * @return int
+     * @throws \ReflectionException
+     */
+    public function couponCount($where): int
+    {
+        return $this->search($where)->count();
+    }
+
     /**
      * 获取优惠券列表
      * @param int $uid 用户ID