From c6c82d08c5728d47442b8a5b0885051bccfbd1a4 Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Fri, 1 Sep 2023 09:16:50 +0800 Subject: [PATCH] update --- .../controller/contract/ContractController.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/adminapi/controller/contract/ContractController.php b/app/adminapi/controller/contract/ContractController.php index 5d147478..eb657f7f 100644 --- a/app/adminapi/controller/contract/ContractController.php +++ b/app/adminapi/controller/contract/ContractController.php @@ -11,7 +11,7 @@ use app\common\model\platform\Platform; class ContractController extends BaseAdminController { private $domain = 'https://worker-task.lihaink.cn'; -// private $domain = 'http://www.task.local'; + public function initiatingContract() { //获取参数 $params = $this->request->post(['id']); @@ -120,14 +120,11 @@ class ContractController extends BaseAdminController public function lists() { $param = $this->request->get(); $where = []; - if(isset($param['company_name'])){ - $where[] = ['company_b_name','like','%'.$param['company_name'].'%']; + if(isset($param['company_user'])){ + $where[] = ['company_b_user','like','%'.$param['company_user'].'%']; } - if(isset($param['contract_no'])){ - $where[] = ['contract_no','like','%'.$param['contract_no'].'%']; - } - if(isset($param['status'])){ - $where[] = ['status','=', $param['contract_no']]; + if(isset($param['company_phone'])){ + $where[] = ['company_b_phone','like','%'.$param['company_phone'].'%']; } $pageNo = !empty($param['page_no']) ? $param['page_no'] : 1; $pageSize = !empty($param['page_size']) ? $param['page_size'] : 15;