Commit ba480d8d by 宋祥

1.清空线程中页面号

parent 5ba83cd0
...@@ -56,10 +56,12 @@ public class RequestControllerAspect { ...@@ -56,10 +56,12 @@ public class RequestControllerAspect {
: ObjectUtils.toString(objects[0]); : ObjectUtils.toString(objects[0]);
if (StringUtils.isBlank(formEname)) { if (StringUtils.isBlank(formEname)) {
log.warn("the web formEname is null"); log.warn("the web formEname is null");
ThreadLocalTools.FORM_ENAME.set("");
return; return;
} }
// 非HP开头的页面不是业务模块的页面,无需校验数据权限 // 非HP开头的页面不是业务模块的页面,无需校验数据权限
if (!formEname.startsWith("HP")) { if (!formEname.startsWith("HP")) {
ThreadLocalTools.FORM_ENAME.set("");
return; return;
} }
ThreadLocalTools.FORM_ENAME.set(formEname); ThreadLocalTools.FORM_ENAME.set(formEname);
...@@ -78,11 +80,13 @@ public class RequestControllerAspect { ...@@ -78,11 +80,13 @@ public class RequestControllerAspect {
try { try {
Object[] objects = joinPoint.getArgs(); Object[] objects = joinPoint.getArgs();
if (objects == null || objects.length == 0) { if (objects == null || objects.length == 0) {
ThreadLocalTools.FORM_ENAME.set("");
return; return;
} }
Object eiInfoStr = objects.length == 4 ? objects[3] : objects[2]; Object eiInfoStr = objects.length == 4 ? objects[3] : objects[2];
if (ObjectUtils.isEmpty(eiInfoStr)) { if (ObjectUtils.isEmpty(eiInfoStr)) {
log.warn("{}.{} the param is not EiInfo。param -> {}", objects[0], objects[1], eiInfoStr); log.warn("{}.{} the param is not EiInfo。param -> {}", objects[0], objects[1], eiInfoStr);
ThreadLocalTools.FORM_ENAME.set("");
return; return;
} }
EiInfo inInfo = EiInfoUtil.json2EiInfo(eiInfoStr.toString()); EiInfo inInfo = EiInfoUtil.json2EiInfo(eiInfoStr.toString());
...@@ -92,6 +96,7 @@ public class RequestControllerAspect { ...@@ -92,6 +96,7 @@ public class RequestControllerAspect {
: inInfo.getString("efCurFormEname"); : inInfo.getString("efCurFormEname");
// 非HP开头的页面不是业务模块的页面,无需校验数据权限 // 非HP开头的页面不是业务模块的页面,无需校验数据权限
if (StringUtils.isBlank(pageEname) || !pageEname.startsWith("HP")) { if (StringUtils.isBlank(pageEname) || !pageEname.startsWith("HP")) {
ThreadLocalTools.FORM_ENAME.set("");
return; return;
} }
ThreadLocalTools.FORM_ENAME.set(pageEname); ThreadLocalTools.FORM_ENAME.set(pageEname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment