DataScope.java 508 B

1234567891011121314151617181920212223242526272829
  1. package org.zhongzheng.common.annotation;
  2. import java.lang.annotation.*;
  3. /**
  4. * 数据权限过滤注解
  5. *
  6. * @author zhongzheng
  7. */
  8. @Target(ElementType.METHOD)
  9. @Retention(RetentionPolicy.RUNTIME)
  10. @Documented
  11. public @interface DataScope
  12. {
  13. /**
  14. * 部门表的别名
  15. */
  16. public String deptAlias() default "";
  17. /**
  18. * 用户表的别名
  19. */
  20. public String userAlias() default "";
  21. /**
  22. * 业务层次表的别名
  23. */
  24. public String businessAlias() default "";
  25. }