Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
ba480d8d
Commit
ba480d8d
authored
Mar 25, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.清空线程中页面号
parent
5ba83cd0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
RequestControllerAspect.java
...ava/com/baosight/hpjx/aspect/RequestControllerAspect.java
+5
-0
No files found.
src/main/java/com/baosight/hpjx/aspect/RequestControllerAspect.java
View file @
ba480d8d
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment