|  |  | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  |  | 
 |  |  | import com.ruoyi.common.core.domain.entity.SysUserRole; | 
 |  |  | import com.ruoyi.common.utils.SecurityUtils; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.beans.factory.annotation.Value; | 
 |  |  | import org.springframework.validation.annotation.Validated; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private ISysDeptService deptService; | 
 |  |  |      | 
 |  |  |  | 
 |  |  |     @Value("${isAdmin}") | 
 |  |  |     private List<Long> isAdmin; | 
 |  |  |  | 
 |  |  | 
 |  |  |     @GetMapping("/list") | 
 |  |  |     public TableDataInfo list(SysRole role) { | 
 |  |  |         startPage(); | 
 |  |  |         SysUser user = SecurityUtils.getLoginUser().getUser(); | 
 |  |  |         role.setOrgid(user.getOrgid()); | 
 |  |  |         List<SysRole> list = roleService.selectRoleList(role); | 
 |  |  |         return getDataTable(list); | 
 |  |  |     } |