From 252a81be055cc1314131e48a36eb655166e86edd Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Wed, 13 Sep 2023 18:03:52 +0800 Subject: [PATCH] =?UTF-8?q?update:=E5=95=86=E6=88=B7=E5=90=88=E5=90=8C?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/adminapi/lists/ShopContractLists.php | 153 ++++++++++++----------- 1 file changed, 77 insertions(+), 76 deletions(-) diff --git a/app/adminapi/lists/ShopContractLists.php b/app/adminapi/lists/ShopContractLists.php index 39bbdf520..f919ff24f 100644 --- a/app/adminapi/lists/ShopContractLists.php +++ b/app/adminapi/lists/ShopContractLists.php @@ -1,77 +1,78 @@ - ['contract_no', 'party_a', 'party_b', 'check_status'], - ]; - } - - - /** - * @notes 获取列表 - * @return array - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\DbException - * @throws \think\db\exception\ModelNotFoundException - * @author likeadmin - * @date 2023/09/13 17:01 - */ - public function lists(): array - { - return ShopContract::where($this->searchWhere) - ->field(['id', 'contract_no', 'party_a', 'party_b', 'area_manager', 'type', 'evidence_url', 'check_status']) - ->limit($this->limitOffset, $this->limitLength) - ->order(['id' => 'desc']) - ->select() - ->toArray(); - } - - - /** - * @notes 获取数量 - * @return int - * @author likeadmin - * @date 2023/09/13 17:01 - */ - public function count(): int - { - return ShopContract::where($this->searchWhere)->count(); - } - + ['contract_no', 'party_a', 'party_b', 'check_status'], + + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2023/09/13 17:01 + */ + public function lists(): array + { + return ShopContract::where($this->searchWhere) + ->field(['id', 'contract_no', 'party_a', 'party_b', 'area_manager', 'type', 'evidence_url', 'check_status', 'status']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2023/09/13 17:01 + */ + public function count(): int + { + return ShopContract::where($this->searchWhere)->count(); + } + } \ No newline at end of file