28 lines
639 B
Java
28 lines
639 B
Java
package com.xkrs.service.impl;
|
|
|
|
import com.xkrs.dao.SysRoleDao;
|
|
import com.xkrs.model.entity.SysRoleEntity;
|
|
import com.xkrs.service.SysRoleService;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import javax.annotation.Resource;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 系统角色服务实现
|
|
* @author tajochen
|
|
*/
|
|
@Service
|
|
public class SysRoleServiceImpl implements SysRoleService {
|
|
|
|
@Resource
|
|
private SysRoleDao sysRoleDao;
|
|
|
|
@Override
|
|
public List<SysRoleEntity> getSysRoleListByUserName(String userName) {
|
|
return sysRoleDao.selectByUserName(userName);
|
|
}
|
|
}
|