...
|
...
|
@@ -150,9 +150,10 @@ class Company extends Api |
|
|
* @ApiMethod (POST)
|
|
|
*
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiParams (name="status", type="string", required=false, description="0=未审核,1=已通过")
|
|
|
* @ApiParams (name="page", type="inter", required=false, description="当前页(默认1)")
|
|
|
* @ApiParams (name="page_num", type="inter", required=false, description="每页显示数据个数(默认10)")
|
|
|
* @ApiParams (name="status", type="string", required=false, description="0=未审核,1=已通过")
|
|
|
* @ApiParams (name="keyword", type="string", required=false, description="关键字")
|
|
|
*
|
|
|
* @ApiReturn({
|
|
|
"code": 1,
|
...
|
...
|
@@ -173,11 +174,16 @@ class Company extends Api |
|
|
*/
|
|
|
public function companyUser()
|
|
|
{
|
|
|
$status = $this->request->param('status','0');
|
|
|
$page = $this->request->param('page', 1, 'intval');
|
|
|
$page_num = $this->request->param('page_num', 10, 'intval');
|
|
|
$status = $this->request->param('status','0');
|
|
|
$keyword = $this->request->param('keyword');
|
|
|
$where['status'] = $status;
|
|
|
if(!empty($keyword)){
|
|
|
$where['name'] = ['like','%'.$keyword.'%'];
|
|
|
}
|
|
|
$data = CompanyUser::where('company_id',$this->company_id)
|
|
|
->where('status',$status)
|
|
|
->where($where)
|
|
|
->paginate($page_num,false,['page'=>$page])
|
|
|
->each(function($v){
|
|
|
$v['createtime'] = date('Y.m.d',$v['createtime']);
|
...
|
...
|
|