From 4d9b87eeab1bb64cb855b0d63b8d6d1bffa7dfbe Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 27 Feb 2024 16:01:05 +0800 Subject: [PATCH] update --- app/adminapi/lists/DataReceptionLists.php | 152 +++++++++++----------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/app/adminapi/lists/DataReceptionLists.php b/app/adminapi/lists/DataReceptionLists.php index 360893bcb..a5dc9eee0 100644 --- a/app/adminapi/lists/DataReceptionLists.php +++ b/app/adminapi/lists/DataReceptionLists.php @@ -1,77 +1,77 @@ - ['num', 'project', 'project_num'], - ]; - } - - - /** - * @notes 获取列表 - * @return array - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\DbException - * @throws \think\db\exception\ModelNotFoundException - * @author likeadmin - * @date 2024/02/23 09:21 - */ - public function lists(): array - { - return DataReception::where($this->searchWhere) - ->field(['id', 'dataid', 'num', 'project', 'project_num', 'apptime', 'person', 'number', 'position', 'tips']) - ->limit($this->limitOffset, $this->limitLength) - ->order(['id' => 'desc']) - ->select() - ->toArray(); - } - - - /** - * @notes 获取数量 - * @return int - * @author likeadmin - * @date 2024/02/23 09:21 - */ - public function count(): int - { - return DataReception::where($this->searchWhere)->count(); - } - + ['num', 'project', 'project_num'], + + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function lists(): array + { + return DataReception::where($this->searchWhere) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function count(): int + { + return DataReception::where($this->searchWhere)->count(); + } + } \ No newline at end of file