作者 lyh

gx

@@ -23,10 +23,7 @@ class UserController extends BaseController @@ -23,10 +23,7 @@ class UserController extends BaseController
23 */ 23 */
24 public function lists(ViewDeptUser $viewDeptUser){ 24 public function lists(ViewDeptUser $viewDeptUser){
25 $this->map['project_id'] = $this->user['project_id']; 25 $this->map['project_id'] = $this->user['project_id'];
26 - $lists = ViewDeptUser->lists($this->map,$this->page,$this->row,'user_id');  
27 - if(empty($lists)){  
28 - $this->response('error',Code::USER_ERROR,[]);  
29 - } 26 + $lists = $viewDeptUser->lists($this->map,$this->page,$this->row,'user_id');
30 $this->response('success',Code::SUCCESS,$lists); 27 $this->response('success',Code::SUCCESS,$lists);
31 } 28 }
32 29