浏览代码

优化count方法

evoxwht 2 年之前
父节点
当前提交
ee452721af
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      crmeb/app/dao/service/StoreServiceDao.php

+ 1 - 1
crmeb/app/dao/service/StoreServiceDao.php

@@ -96,7 +96,7 @@ class StoreServiceDao extends BaseDao
      * @email 442384644@qq.com
      * @email 442384644@qq.com
      * @date 2023/05/10
      * @date 2023/05/10
      */
      */
-    public function count($where = [], $search = true)
+    public function count(array $where = [], $search = true)
     {
     {
         return $this->search($where, false)->when(isset($where['noId']), function ($query) use ($where) {
         return $this->search($where, false)->when(isset($where['noId']), function ($query) use ($where) {
             $query->whereNotIn('uid', $where['noId']);
             $query->whereNotIn('uid', $where['noId']);