|
@@ -50,6 +50,15 @@ class Resign extends BaseController
|
|
|
if($good_name!=""){
|
|
|
$where['good_name'] = Db::raw(" like %{$good_name}%");
|
|
|
}
|
|
|
+
|
|
|
+ $apply_name = isset($this->post['apply_name']) && $this->post['apply_name']!="" ? trim($this->post['apply_name']):"";
|
|
|
+ if($apply_name!=""){
|
|
|
+ $where['apply_name'] =Db::Raw("like '%{$apply_name}%'");
|
|
|
+ }
|
|
|
+ $status = isset($this->post['status']) && $this->post['status']!=="" ? intval($this->post['status']):"";
|
|
|
+ if($status!==""){
|
|
|
+ $where['status'] = $status;
|
|
|
+ }
|
|
|
$count=Db::name("purchease")->where($where)->count();
|
|
|
$total = ceil($count/$size);
|
|
|
$page = $page >= $total ? $total : $page;
|