Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
600c4c69
Commit
600c4c69
authored
Oct 26, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取人员列表
parent
5170cc4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
UserController.java
...u.cloud.plus.v1/yifu/admin/controller/UserController.java
+18
-0
No files found.
yifu-upms/yifu-upms-biz/src/main/java/com/yifu.cloud.plus.v1/yifu/admin/controller/UserController.java
View file @
600c4c69
...
...
@@ -35,6 +35,7 @@ import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
...
@@ -359,4 +360,21 @@ public class UserController {
}
return
userIds
.
toString
();
}
/**
* @param nickName 用户名称
* @return 上级部门用户列表
*/
@GetMapping
(
"/getSysUserList"
)
@Operation
(
summary
=
"获取所有系统人员"
,
description
=
"获取所有系统人员"
)
public
R
<
List
<
SysUser
>>
getSysUserList
(
@RequestParam
(
required
=
false
)
String
nickName
)
{
List
<
SysUser
>
sysUserList
;
if
(
Common
.
isNotNull
(
nickName
))
{
sysUserList
=
userService
.
list
(
Wrappers
.<
SysUser
>
query
().
lambda
().
like
(
SysUser:
:
getNickname
,
nickName
));
}
else
{
sysUserList
=
userService
.
list
();
}
return
R
.
ok
(
sysUserList
);
}
}
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