作者 lyh

gx

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