新增角色权限权限可见性,字典状态限制。

dep_wangsr
RuoYi 6 years ago committed by Limy
parent a020e41e88
commit 98afc112d7

@ -41,12 +41,12 @@ public class LogAspect
}
/**
*
*
*
* @param joinPoint
*/
@AfterReturning(pointcut = "logPointCut()")
public void doBefore(JoinPoint joinPoint)
public void doAfterReturning(JoinPoint joinPoint)
{
handleLog(joinPoint, null);
}
@ -54,11 +54,11 @@ public class LogAspect
/**
*
*
* @param joinPoint
* @param e
* @param joinPoint
* @param e
*/
@AfterThrowing(value = "logPointCut()", throwing = "e")
public void doAfter(JoinPoint joinPoint, Exception e)
public void doAfterThrowing(JoinPoint joinPoint, Exception e)
{
handleLog(joinPoint, e);
}

@ -16,8 +16,31 @@ public class PermissionService
return isPermittedOperator(permission) ? "" : "hidden";
}
public String hasRole(String role)
{
return hasRoleOperator(role) ? "" : "hidden";
}
/**
*
*
* @param permission
* @return
*/
private boolean isPermittedOperator(String permission)
{
return SecurityUtils.getSubject().isPermitted(permission);
}
/**
*
*
* @param role
* @return
*/
private boolean hasRoleOperator(String role)
{
return SecurityUtils.getSubject().hasRole(role);
}
}

@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
where dict_type = #{dictType} order by dict_sort asc
where status = '0' and dict_type = #{dictType} order by dict_sort asc
</select>
<select id="selectDictLabel" resultType="String">

Loading…
Cancel
Save