首页>代码>基于SpringBoot+freemarker实现的人事管理系统>/person_system/person-admin/src/main/java/com/person/common/annotation/DataFilter.java
/**
 * 
 *
 *
 *
 * 
 */

package com.person.common.annotation;

import java.lang.annotation.*;

/**
 * 数据过滤
 *
 * @author 
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataFilter {
    /**  表的别名 */
    String tableAlias() default "";

    /**  true:没有本部门数据权限,也能查询本人数据 */
    boolean user() default true;

    /**  true:拥有子部门数据权限 */
    boolean subDept() default false;

    /**  部门ID */
    String deptId() default "dept_id";

    /**  用户ID */
    String userId() default "user_id";
}

最近下载更多
gann2015  LV25 6月6日
陈小灏  LV18 2月18日
Mhgfhjyrf  LV3 2024年12月10日
15953970869  LV6 2024年11月10日
talete  LV3 2024年10月10日
微信网友_7134912998903808  LV15 2024年8月29日
255921158  LV5 2024年7月16日
2578193624  LV2 2024年6月1日
qwe6002  LV10 2024年5月24日
可是不知道么  LV23 2024年4月16日
最近浏览更多
短巷拥猫  LV12 6月23日
3334004690  LV11 6月19日
gann2015  LV25 6月6日
luomengqi 6月2日
暂无贡献等级
yangguang  LV8 5月1日
docnnxxy688 3月16日
暂无贡献等级
哪里的完整版  LV8 2月26日
陈小灏  LV18 2月18日
444105047  LV6 1月17日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友