|
@@ -27,10 +27,10 @@ class Process extends BaseController
|
|
$page =isset($this->post['page']) &&$this->post['page']!="" ? intval($this->post['page']) : 1;
|
|
$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;
|
|
$size =isset($this->post['size']) &&$this->post['size']!="" ? intval($this->post['size']) : 10;
|
|
|
|
|
|
- $count = Db::name("process")->count();
|
|
|
|
|
|
+ $count = Db::name("process")->where('is_del',1)->count();
|
|
$total = ceil($count/$size);
|
|
$total = ceil($count/$size);
|
|
$page = $page>$total ? $total:$page;
|
|
$page = $page>$total ? $total:$page;
|
|
- $list = Db::name("process")->page($page,$size)->select();
|
|
|
|
|
|
+ $list = Db::name("process")->where('is_del', 1)->page($page, $size)->select();
|
|
return app_show(0,"获取成功",["list"=>$list,"count"=>$count]);
|
|
return app_show(0,"获取成功",["list"=>$list,"count"=>$count]);
|
|
}
|
|
}
|
|
|
|
|