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
1
Merge Requests
1
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
781ab169
Commit
781ab169
authored
Jul 09, 2024
by
xiongjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群聊统计
parent
2f00b847
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
UserController.java
.../com/gic/haoban/manage/web/controller/UserController.java
+6
-3
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/UserController.java
View file @
781ab169
...
...
@@ -15,6 +15,7 @@ import com.gic.enterprise.api.service.StoreWidgetService;
import
com.gic.haoban.manage.web.vo.ClerkListVO
;
import
com.gic.web.common.utils.SessionContextUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -75,12 +76,14 @@ public class UserController {
PowerClerkDTO
clerkDetail
=
powerService
.
getClerkDetail
(
user
.
getUserId
());
if
(
Objects
.
isNull
(
clerkDetail
)){
return
RestResponse
.
successResult
(
0
);
return
RestResponse
.
failure
(
"999"
,
"用户不存在"
);
}
StoreWidgetDTO
storeWidget
=
storeWidgetService
.
getStoreWidgetBykey
(
clerkDetail
.
getStoreWidgetId
());
if
(
Objects
.
isNull
(
storeWidget
)){
// 空,代表超管
if
(
StringUtils
.
isEmpty
(
clerkDetail
.
getStoreWidgetId
()
)){
return
RestResponse
.
successResult
(
0
);
}
StoreWidgetDTO
storeWidget
=
storeWidgetService
.
getStoreWidgetBykey
(
clerkDetail
.
getStoreWidgetId
());
return
RestResponse
.
successResult
(
storeWidget
.
getSelectType
());
}
...
...
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