|
@@ -25,8 +25,8 @@ class Customer extends BaseController
|
|
|
/*列表*/
|
|
|
public function list(){
|
|
|
$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']): 0;
|
|
|
+ $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']): "0";
|
|
|
$where =[];
|
|
|
$where []= ['is_del',"=",0];
|
|
|
$condition = [['is_del',"=",0]];
|
|
@@ -90,7 +90,7 @@ class Customer extends BaseController
|
|
|
$where[]=['itemid','=',$pid];
|
|
|
}
|
|
|
}
|
|
|
- $list = Db::name('customer_org1')->where($condition)->page($page,$size)->order("addtime desc")->column("id,pid,name,level,depart_link,creater,addtime,status");
|
|
|
+ $list = Db::name('customer_org1')->where($condition)->order("addtime desc")->column("id,pid,name,level,depart_link,creater,addtime,status");
|
|
|
$var=[];
|
|
|
foreach ($list as $item) {
|
|
|
$iten=[];
|