Commit ba480d8d by 宋祥

1.清空线程中页面号

parent 5ba83cd0
......@@ -56,10 +56,12 @@ public class RequestControllerAspect {
: ObjectUtils.toString(objects[0]);
if (StringUtils.isBlank(formEname)) {
log.warn("the web formEname is null");
ThreadLocalTools.FORM_ENAME.set("");
return;
}
// 非HP开头的页面不是业务模块的页面,无需校验数据权限
if (!formEname.startsWith("HP")) {
ThreadLocalTools.FORM_ENAME.set("");
return;
}
ThreadLocalTools.FORM_ENAME.set(formEname);
......@@ -78,11 +80,13 @@ public class RequestControllerAspect {
try {
Object[] objects = joinPoint.getArgs();
if (objects == null || objects.length == 0) {
ThreadLocalTools.FORM_ENAME.set("");
return;
}
Object eiInfoStr = objects.length == 4 ? objects[3] : objects[2];
if (ObjectUtils.isEmpty(eiInfoStr)) {
log.warn("{}.{} the param is not EiInfo。param -> {}", objects[0], objects[1], eiInfoStr);
ThreadLocalTools.FORM_ENAME.set("");
return;
}
EiInfo inInfo = EiInfoUtil.json2EiInfo(eiInfoStr.toString());
......@@ -92,6 +96,7 @@ public class RequestControllerAspect {
: inInfo.getString("efCurFormEname");
// 非HP开头的页面不是业务模块的页面,无需校验数据权限
if (StringUtils.isBlank(pageEname) || !pageEname.startsWith("HP")) {
ThreadLocalTools.FORM_ENAME.set("");
return;
}
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