| | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.framework.data.FuncOperationInfo; |
| | | import com.vci.corba.framework.data.OperateInfo; |
| | | import com.vci.dto.RoleInfoDTO; |
| | | import com.vci.dto.RoleRightDTO; |
| | | import com.vci.dto.RoleRightParamDTO; |
| | | import com.vci.frameworkcore.compatibility.ISmFunctionQueryService; |
| | |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | String errorMsg = "查询子模块时出现错误,原因:"+ VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(errorMsg); |
| | | throw new VciBaseException(errorMsg); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 角色列表 |
| | | * @param roleName 搜索的角色 |
| | | * @return 角色列表 |
| | | */ |
| | | @GetMapping("/getRoleList") |
| | | public BaseResult<List<RoleInfoDTO>> getRoleList(String roleName) { |
| | | try { |
| | | return BaseResult.dataList(functionQueryService.getRoleList(roleName)); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | String errorMsg = "查询时出现错误,原因:"+ VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(errorMsg); |
| | | throw new VciBaseException(errorMsg); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取当前用户在线人数 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getOnlineUsersNum") |
| | | public BaseResult getOnlineUsersNum() { |
| | | try { |
| | | long onlineUsersNum = hmSysModConfigService.getOnlineUsersNum(); |
| | | return BaseResult.success(onlineUsersNum); |
| | | } catch (Exception e) { |
| | | String errorMsg = "获取当前用户在线人数时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(errorMsg); |
| | | throw new VciBaseException(errorMsg); |
| | | } |
| | | } |
| | | |
| | | } |