This commit is contained in:
unknown 2023-09-01 09:16:50 +08:00
parent f206439899
commit c6c82d08c5

View File

@ -11,7 +11,7 @@ use app\common\model\platform\Platform;
class ContractController extends BaseAdminController class ContractController extends BaseAdminController
{ {
private $domain = 'https://worker-task.lihaink.cn'; private $domain = 'https://worker-task.lihaink.cn';
// private $domain = 'http://www.task.local';
public function initiatingContract() { public function initiatingContract() {
//获取参数 //获取参数
$params = $this->request->post(['id']); $params = $this->request->post(['id']);
@ -120,14 +120,11 @@ class ContractController extends BaseAdminController
public function lists() { public function lists() {
$param = $this->request->get(); $param = $this->request->get();
$where = []; $where = [];
if(isset($param['company_name'])){ if(isset($param['company_user'])){
$where[] = ['company_b_name','like','%'.$param['company_name'].'%']; $where[] = ['company_b_user','like','%'.$param['company_user'].'%'];
} }
if(isset($param['contract_no'])){ if(isset($param['company_phone'])){
$where[] = ['contract_no','like','%'.$param['contract_no'].'%']; $where[] = ['company_b_phone','like','%'.$param['company_phone'].'%'];
}
if(isset($param['status'])){
$where[] = ['status','=', $param['contract_no']];
} }
$pageNo = !empty($param['page_no']) ? $param['page_no'] : 1; $pageNo = !empty($param['page_no']) ? $param['page_no'] : 1;
$pageSize = !empty($param['page_size']) ? $param['page_size'] : 15; $pageSize = !empty($param['page_size']) ? $param['page_size'] : 15;