|
@@ -27,6 +27,7 @@ class Customer extends BaseController
|
|
|
$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;
|
|
|
$pid = isset($this->post['pid']) &&$this->post['pid']!=="" ?intval($this->post['pid']): "";
|
|
|
+ $condition[] = ['is_del',"=",0];
|
|
|
if($pid!==""){
|
|
|
$condition[]=["pid","=",$pid];
|
|
|
}
|
|
@@ -34,7 +35,6 @@ class Customer extends BaseController
|
|
|
if($name!=""){
|
|
|
$condition[]=["name","like","%{$this->post['name']}%"];
|
|
|
}
|
|
|
- $condition[] = ['is_del',"=",0];
|
|
|
$count = Db::name('customer_org1')->where($condition)->count();
|
|
|
$page>=ceil($count/$size) ? $page=ceil($count/$size) :"";
|
|
|
$list = Db::name('customer_org1')->where($condition)->page($page,$size)->column("pid,name,level,depart_link");
|