|
@@ -129,27 +129,27 @@ public function title(){
|
|
|
public function tlist(){
|
|
|
$page = isset($this->post['page']) && $this->post['page'] !=="" ? intval($this->post['page']):"1";
|
|
|
$size = isset($this->post['size']) && $this->post['size'] !=="" ? intval($this->post['size']):"10";
|
|
|
- $where =[['is_del',"=",0]];
|
|
|
+ $where =[['c.is_del',"=",0]];
|
|
|
$cat_name=isset($this->post['cat_name']) && $this->post['cat_name'] !==""? trim($this->post['cat_name']) :"";
|
|
|
if($cat_name!==""){
|
|
|
- $where[]=['cat_name',"like","%$cat_name%"];
|
|
|
+ $where[]=['c.cat_name',"like","%$cat_name%"];
|
|
|
}
|
|
|
$status=isset($this->post['status']) && $this->post['status'] !==""? intval($this->post['status']) :"";
|
|
|
if($status!==""){
|
|
|
- $where[]=['status',"=",$status];
|
|
|
+ $where[]=['c.status',"=",$status];
|
|
|
}
|
|
|
$creater=isset($this->post['creater']) && $this->post['creater'] !==""? trim($this->post['creater']) :"";
|
|
|
if($creater!==""){
|
|
|
- $where[]=['creater',"like","%$creater%"];
|
|
|
+ $where[]=['c.creater',"like","%$creater%"];
|
|
|
}
|
|
|
|
|
|
$start = isset($this->post['start']) && $this->post['start'] !== "" ? $this->post['start']:"";
|
|
|
if($start!==""){
|
|
|
- $where[]=['addtime',">=",$start];
|
|
|
+ $where[]=['c.addtime',">=",$start];
|
|
|
}
|
|
|
$end = isset($this->post['end']) && $this->post['end'] !== "" ? $this->post['end'] :"";
|
|
|
if($end !==""){
|
|
|
- $where[]=['addtime',"<=",$end];
|
|
|
+ $where[]=['c.addtime',"<=",$end];
|
|
|
}
|
|
|
$company_name = isset($this->post['company_name']) && $this->post['company_name'] !== "" ? trim($this->post['company_name']) : "";
|
|
|
if ($company_name !== "") $where[] = ["c.createrid", 'in', get_company_item_user_by_name($company_name)];
|