提交 | 用户 | 时间
|
a6de49
|
1 |
/** |
H |
2 |
* Copyright (c) 2018 人人开源 All rights reserved. |
|
3 |
* |
|
4 |
* https://www.renren.io |
|
5 |
* |
|
6 |
* 版权所有,侵权必究! |
|
7 |
*/ |
|
8 |
|
|
9 |
package com.iailab.framework.mybatis.interceptor; |
|
10 |
|
|
11 |
/** |
|
12 |
* 数据范围 |
|
13 |
* |
|
14 |
* @author Mark sunlightcs@gmail.com |
|
15 |
* @since 1.0.0 |
|
16 |
*/ |
|
17 |
public class DataScope { |
|
18 |
private String sqlFilter; |
|
19 |
|
|
20 |
public DataScope(String sqlFilter) { |
|
21 |
this.sqlFilter = sqlFilter; |
|
22 |
} |
|
23 |
|
|
24 |
public String getSqlFilter() { |
|
25 |
return sqlFilter; |
|
26 |
} |
|
27 |
|
|
28 |
public void setSqlFilter(String sqlFilter) { |
|
29 |
this.sqlFilter = sqlFilter; |
|
30 |
} |
|
31 |
|
|
32 |
@Override |
|
33 |
public String toString() { |
|
34 |
return this.sqlFilter; |
|
35 |
} |
|
36 |
} |