WIN-2308041133\Administrator 6 月之前
父节点
当前提交
b4ea15e0bd
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      app/common/repositories/user/AwardIntegralPriceRepository.php
  2. 1 1
      app/controller/admin/user/Award.php

+ 2 - 2
app/common/repositories/user/AwardIntegralPriceRepository.php

@@ -116,8 +116,8 @@ class AwardIntegralPriceRepository extends BaseRepository
 
         // 查询满足条件的数据列表,带有 'label' 关联数据,按 'label_rule_id' 倒序排列
         // 分页查询,返回当前页码的 $limit 条数据,并将结果转换为数组形式
-        $list = $query->page($page, $limit)->select()->toArray();
-
+//        $list = $query->page($page, $limit)->select()->toArray();
+        $list = $this->dao->search($where)->select()->toArray();
         // 返回包含数据总数和数据列表的数组
         return compact('count', 'list');
     }

+ 1 - 1
app/controller/admin/user/Award.php

@@ -46,7 +46,7 @@ class Award extends BaseController
     public function lst()
     {
         [$page, $limit] = $this->getPage();
-        $where = $this->request->params(['day']);
+//        $where = $this->request->params(['day']);
         return app('json')->success($this->repository->getList($where, $page, $limit));
     }