update
This commit is contained in:
parent
e98c9743fc
commit
508ec34fe4
@ -19,13 +19,13 @@
|
|||||||
}
|
}
|
||||||
$where = [];
|
$where = [];
|
||||||
if($params['type'] == 2){
|
if($params['type'] == 2){
|
||||||
$where = ['check_status','=',0];
|
$where[] = ['check_status','=',0];
|
||||||
}
|
}
|
||||||
if($params['type'] == 3){
|
if($params['type'] == 3){
|
||||||
$where = ['check_status','=',2];
|
$where[] = ['check_status','=',2];
|
||||||
}
|
}
|
||||||
if($params['type'] == 4){
|
if($params['type'] == 4){
|
||||||
$where = ['check_status','=',3];
|
$where[] = ['check_status','=',3];
|
||||||
}
|
}
|
||||||
$lists = Db::name('oa_approve')->field('id,type,flow_id,admin_id,check_admin_ids,check_status,create_time')->where('admin_id',$this->adminId)->where($where)
|
$lists = Db::name('oa_approve')->field('id,type,flow_id,admin_id,check_admin_ids,check_status,create_time')->where('admin_id',$this->adminId)->where($where)
|
||||||
->page($page_no, $page_size)->order('id desc')->select()->each(function($data){
|
->page($page_no, $page_size)->order('id desc')->select()->each(function($data){
|
||||||
@ -468,4 +468,5 @@
|
|||||||
}
|
}
|
||||||
return $this->fail();
|
return $this->fail();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user