|
...
|
...
|
@@ -17,13 +17,12 @@ class DeptUserController extends BaseController |
|
|
|
*/
|
|
|
|
public function lists(){
|
|
|
|
$query = DB::table('gl_project_user')
|
|
|
|
->select($this->selectParam())
|
|
|
|
->leftJoin('gl_project_dept_user', 'gl_project_user.id', '=', 'gl_project_dept_user.user_id')
|
|
|
|
->leftJoin('gl_project_dept', 'gl_project_dept_user.dept_id', '=', 'gl_project_dept.id')
|
|
|
|
->join('gl_project_role', 'gl_project_user.role_id', '=', 'gl_project_role.id')
|
|
|
|
->orderBy('gl_project_dept_user.id','desc');
|
|
|
|
$query = $this->searchParam($query);
|
|
|
|
$lists = $query->paginate($this->row, ['*'], 'page', $this->page);
|
|
|
|
$lists = $query->paginate($this->row, $this->selectParam(), 'page', $this->page);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -82,7 +81,7 @@ class DeptUserController extends BaseController |
|
|
|
],[
|
|
|
|
'id.required' => 'id不能为空'
|
|
|
|
]);
|
|
|
|
$info = $deptUserLogic->dept_user_info($this->param);
|
|
|
|
$info = $deptUserLogic->dept_user_info();
|
|
|
|
$this->response('success',Code::SUCCESS,$info);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|