|
|
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
12
|
12
|
import javax.servlet.http.HttpSession;
|
|
13
|
13
|
|
|
14
|
14
|
import org.apache.commons.lang.ObjectUtils;
|
|
|
15
|
+import org.apache.commons.lang3.StringUtils;
|
|
15
|
16
|
|
|
16
|
17
|
public class CustomFilter implements Filter {
|
|
17
|
18
|
|
|
|
@@ -34,7 +35,7 @@ public class CustomFilter implements Filter {
|
|
34
|
35
|
if ("10".equals(orgId)) {
|
|
35
|
36
|
orgId = null;
|
|
36
|
37
|
}
|
|
37
|
|
- if (!orgId.isEmpty()) {
|
|
|
38
|
+ if (StringUtils.isNotBlank(orgId)) {
|
|
38
|
39
|
DataPolicyEngine.set(orgId);
|
|
39
|
40
|
// 将参数追加到request url 之后
|
|
40
|
41
|
requestWrapper.addParameter("orgId", orgId);
|