7、数据权限标注
发布时间
阅读量:
阅读量
数据权限,一个注解搞定!
源代码的获取地址为:https://github.com/1040580896/data_scope
注意点
占位符
sql.append(String.format(" OR %s.dept_id in(select rd.dept_id from sys_role_dept rd where rd.role_id=%d)", dataScope.deptAlias(), role.getRoleId()));
MySQL函数应用解析
MySQL函数find_in_set使用解析
https://www.cnblogs.com/xiaoxi/p/5889486.html
搭建项目
将引入Spring Security、Aop、mybatis-plus以及mybatis等相关依赖项
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
全部评论 (0)
还没有任何评论哟~
