| | |
| | | package com.kidgrow.usercenter.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.kidgrow.common.constant.CommonConstant; |
| | | import com.kidgrow.common.context.ClientContextHolder; |
| | | import com.kidgrow.common.model.ResultBody; |
| | | import com.kidgrow.common.model.SysMenu; |
| | |
| | | |
| | | @Override |
| | | public List<SysMenu> findByRoleCodes(Set<String> roleCodes, Integer type) { |
| | | return roleMenuService.findMenusByRoleCodes(roleCodes, type, ClientContextHolder.getClient()); |
| | | String tentid=ClientContextHolder.getClient(); |
| | | if (roleCodes.contains(CommonConstant.SYSTEM_ADMIN_ROLE_CODE)) { |
| | | tentid=""; |
| | | } |
| | | return roleMenuService.findMenusByRoleCodes(roleCodes, type,tentid); |
| | | } |
| | | |
| | | /** |