Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
2a07f3ec
Commit
2a07f3ec
authored
Dec 23, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理system控制器
parent
f47b0efd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/main/java/cn/stylefeng/guns/modular/system/controller/SystemController.java
+10
-2
No files found.
src/main/java/cn/stylefeng/guns/modular/system/controller/SystemController.java
View file @
2a07f3ec
...
@@ -68,6 +68,9 @@ public class SystemController extends BaseController {
...
@@ -68,6 +68,9 @@ public class SystemController extends BaseController {
/**
/**
* 通用的树列表选择器
* 通用的树列表选择器
*
* @author fengshuonan
* @Date 2018/12/23 6:59 PM
*/
*/
@RequestMapping
(
"/commonTree"
)
@RequestMapping
(
"/commonTree"
)
public
String
deptTreeList
(
@RequestParam
(
"formName"
)
String
formName
,
public
String
deptTreeList
(
@RequestParam
(
"formName"
)
String
formName
,
...
@@ -125,9 +128,11 @@ public class SystemController extends BaseController {
...
@@ -125,9 +128,11 @@ public class SystemController extends BaseController {
throw
new
ServiceException
(
CoreExceptionEnum
.
NO_CURRENT_USER
);
throw
new
ServiceException
(
CoreExceptionEnum
.
NO_CURRENT_USER
);
}
}
//获取当前用户的头像id
User
user
=
userService
.
selectById
(
currentUser
.
getId
());
User
user
=
userService
.
selectById
(
currentUser
.
getId
());
String
avatar
=
user
.
getAvatar
();
String
avatar
=
user
.
getAvatar
();
//如果头像id为空就返回默认的
if
(
ToolUtil
.
isEmpty
(
avatar
))
{
if
(
ToolUtil
.
isEmpty
(
avatar
))
{
avatar
=
DefaultAvatar
.
BASE_64_AVATAR
;
avatar
=
DefaultAvatar
.
BASE_64_AVATAR
;
}
else
{
}
else
{
...
@@ -154,10 +159,13 @@ public class SystemController extends BaseController {
...
@@ -154,10 +159,13 @@ public class SystemController extends BaseController {
/**
/**
* 获取当前用户详情
* 获取当前用户详情
*
* @author fengshuonan
* @Date 2018/12/23 6:59 PM
*/
*/
@RequestMapping
(
"/currentUserInfo"
)
@RequestMapping
(
"/currentUserInfo"
)
@ResponseBody
@ResponseBody
public
Object
getUserInfo
()
{
public
ResponseData
getUserInfo
()
{
ShiroUser
currentUser
=
ShiroKit
.
getUser
();
ShiroUser
currentUser
=
ShiroKit
.
getUser
();
if
(
currentUser
==
null
)
{
if
(
currentUser
==
null
)
{
...
...
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