|  | @@ -11,6 +11,7 @@ import javax.servlet.http.HttpServletResponse;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import cn.hutool.core.collection.CollUtil;
 | 
	
		
			
				|  |  |  import com.rtrh.projects.modules.rolemeun.dao.SecUserAuthDao;
 | 
	
		
			
				|  |  | +import com.rtrh.projects.modules.rolemeun.mapper.SecUserAuthMapper;
 | 
	
		
			
				|  |  |  import com.rtrh.projects.modules.rolemeun.po.SecUserAuth;
 | 
	
		
			
				|  |  |  import org.apache.log4j.LogManager;
 | 
	
		
			
				|  |  |  import org.apache.log4j.Logger;
 | 
	
	
		
			
				|  | @@ -24,6 +25,9 @@ public abstract class BaseController {
 | 
	
		
			
				|  |  |  	@Resource
 | 
	
		
			
				|  |  |  	private SecUserAuthDao userAuthDao;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +	@Resource
 | 
	
		
			
				|  |  | +	private SecUserAuthMapper userAuthMapper;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	/**
 | 
	
		
			
				|  |  |  	 * 当前用户的session
 | 
	
		
			
				|  |  |  	 */
 | 
	
	
		
			
				|  | @@ -55,8 +59,9 @@ public abstract class BaseController {
 | 
	
		
			
				|  |  |  	public List<String> getSubjectIds() {
 | 
	
		
			
				|  |  |  		TeamShiroUser principal = (TeamShiroUser)SecurityUtils.getSubject().getPrincipal();
 | 
	
		
			
				|  |  |  		if ("1".equals(principal.getStatusSubject())){
 | 
	
		
			
				|  |  | -			List<SecUserAuth> list = userAuthDao.findListByUserId(principal.getId());
 | 
	
		
			
				|  |  | -			return CollUtil.isEmpty(list)? new ArrayList<>():list.stream().map(SecUserAuth::getSubjectId).collect(Collectors.toList());
 | 
	
		
			
				|  |  | +			// List<SecUserAuth> list = userAuthDao.findListByUserId(principal.getId());
 | 
	
		
			
				|  |  | +			// return CollUtil.isEmpty(list)? new ArrayList<>():list.stream().map(SecUserAuth::getSubjectId).collect(Collectors.toList());
 | 
	
		
			
				|  |  | +			return userAuthMapper.findSubjectAuthIdsByUserId(principal.getId());
 | 
	
		
			
				|  |  |  		}else {
 | 
	
		
			
				|  |  |  			return new ArrayList<>();
 | 
	
		
			
				|  |  |  		}
 |