| | |
| | | import cn.huge.base.common.utils.IdUtils; |
| | | import cn.huge.module.client.api.impl.UtilsClientImpl; |
| | | import cn.huge.module.ctuser.dao.mapper.CtUseroleMapper; |
| | | import cn.huge.module.ctuser.domain.po.CtUsepost; |
| | | import cn.huge.module.ctuser.domain.po.CtUserole; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageImpl; |
| | | import org.springframework.data.domain.PageRequest; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | throw new ServiceException("CtUseroleService.deleteByUserId", e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据用户编号获取其角色名称 |
| | | * @param userId 用户编号 |
| | | * @return List<String> |
| | | */ |
| | | public List<String> listRoleName(String userId){ |
| | | return mapper.listRoleName(userId); |
| | | } |
| | | } |