| | |
| | | public R<IPage<NcProgramExportDncPageVO>> page(NcProgramExportDncQueryVO query) { |
| | | String userRole = AuthUtil.getUserRole();//角色别名,多个角色逗号分隔 |
| | | List<String> userRoleAliasList = Func.toStrList(",", userRole); |
| | | |
| | | /* |
| | | String managerRole = paramService.getProgramManagerRoleAlias(); |
| | | if(!userRoleAliasList.contains(managerRole) && !AuthUtil.isAdministrator() && !AuthUtil.isAdmin()){ |
| | | //非数控管理员角色、管理员,限制未只能导出自己的程序 |
| | | query.setUserId(AuthUtil.getUserId()); |
| | | } |
| | | |
| | | }*/ |
| | | query.setUserId(AuthUtil.getUserId()); |
| | | query.setUserDeptIds(Func.toLongList(AuthUtil.getDeptId())); |
| | | return R.data(ncProgramApprovedService.exportDncPageQuery(query)); |
| | | } |
| | | |