Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
885ec8c9
Commit
885ec8c9
authored
Jul 04, 2025
by
xiehongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改clerkIsSuperAdmin为是否有所有门店的管辖权限
parent
d227321e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletions
+24
-1
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+24
-1
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
885ec8c9
...
...
@@ -6,12 +6,14 @@ import java.net.URLDecoder;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
import
javax.servlet.http.Cookie
;
import
javax.servlet.http.HttpServletResponse
;
import
com.gic.api.base.commons.Page
;
import
com.gic.enterprise.api.dto.EnterpriseSettingDTO
;
import
com.gic.enterprise.api.dto.StoreWidgetDTO
;
import
com.gic.enterprise.api.service.StoreWidgetService
;
...
...
@@ -479,7 +481,28 @@ public class LoginController extends WebBaseController {
private
boolean
isAllAuth
(
String
key
)
{
StoreWidgetDTO
storeWidgetDTO
=
storeWidgetService
.
getStoreWidgetBykey
(
key
);
return
storeWidgetDTO
!=
null
&&
storeWidgetDTO
.
getSelectType
().
intValue
()
==
0
;
if
(
storeWidgetDTO
!=
null
)
{
if
(
storeWidgetDTO
.
getSelectType
().
intValue
()
==
0
)
{
logger
.
info
(
"isAllAuth selectType 0"
);
return
true
;
}
if
(
storeWidgetDTO
.
getSelectType
().
intValue
()
==
4
)
{
logger
.
info
(
"isAllAuth selectType 4"
);
Page
page
=
new
Page
();
page
.
setPageSize
(
1
);
page
.
setCurrentPage
(
1
);
Page
listRightData
=
storeWidgetService
.
listRightData
(
key
,
page
,
null
);
logger
.
info
(
"listRightData resp:{}"
,
JSONObject
.
toJSONString
(
listRightData
));
if
(
listRightData
.
getTotalCount
()
>
0
)
{
Object
rightDataItem
=
listRightData
.
getResult
().
get
(
0
);
JSONObject
rightDataItemJsonObject
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
rightDataItem
));
if
(
Objects
.
equals
(
rightDataItemJsonObject
.
getString
(
"name"
),
"所有门店"
))
{
return
true
;
}
}
}
}
return
false
;
}
@RequestMapping
(
"get-login-session"
)
...
...
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