Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pingshan-ranqi
Project
Project
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
yaqizhang
pingshan-ranqi
Commits
4b7c02e6
Commit
4b7c02e6
authored
Nov 12, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口权限,调整设备信息批量移动操作
parent
403c54ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
TDetectorInfoController.java
...hong/web/controller/detector/TDetectorInfoController.java
+2
-2
SecurityConfig.java
...main/java/com/zehong/framework/config/SecurityConfig.java
+3
-2
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/detector/TDetectorInfoController.java
View file @
4b7c02e6
...
...
@@ -347,14 +347,14 @@ public class TDetectorInfoController extends BaseController
tDetectorInfo
.
setDetectorCode
(
deviceNo
);
TDetectorUser
tDetectorUser1
=
new
TDetectorUser
();
tDetectorUser1
.
setNickName
(
u
sername
);
tDetectorUser1
.
setNickName
(
sourceU
sername
);
List
<
TDetectorUserVO
>
tDetectorUserList1
=
tDetectorUserService
.
detectorUserList
(
tDetectorUser1
);
if
(
tDetectorUserList1
.
size
()
==
0
){
return
AjaxResult
.
error
(
4
,
"查询不到原用户名sourceUsername="
+
sourceUsername
);
}
TDetectorUser
tDetectorUser2
=
new
TDetectorUser
();
tDetectorUser2
.
setNickName
(
u
sername
);
tDetectorUser2
.
setNickName
(
targetU
sername
);
List
<
TDetectorUserVO
>
tDetectorUserList2
=
tDetectorUserService
.
detectorUserList
(
tDetectorUser2
);
if
(
tDetectorUserList2
.
size
()
==
0
){
return
AjaxResult
.
error
(
5
,
"查询不到目标用户名targetUsername="
+
targetUsername
);
...
...
gassafety-framework/src/main/java/com/zehong/framework/config/SecurityConfig.java
View file @
4b7c02e6
...
...
@@ -97,13 +97,14 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
// 过滤请求
.
authorizeRequests
()
// 对于登录login 验证码captchaImage 允许匿名访问
.
antMatchers
(
"/login"
,
"/captchaImage"
,
"/websocket/**"
,
"/websocketServer"
,
"/detector/detectorInfo/**"
).
anonymous
()
.
antMatchers
(
"/login"
,
"/captchaImage"
,
"/websocket/**"
,
"/websocketServer"
).
anonymous
()
.
antMatchers
(
HttpMethod
.
GET
,
"/*.html"
,
"/**/*.html"
,
"/**/*.css"
,
"/**/*.js"
"/**/*.js"
,
"/detector/detectorInfo/**"
).
permitAll
()
.
antMatchers
(
"/profile/**"
).
anonymous
()
.
antMatchers
(
"/common/download**"
).
anonymous
()
...
...
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