Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
bc26eb01
Commit
bc26eb01
authored
Jun 18, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户
parent
a4551513
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
UserFeign.java
...va/com/github/wxiaoqi/security/admin/feign/UserFeign.java
+2
-1
PublicController.java
.../github/wxiaoqi/security/admin/rest/PublicController.java
+2
-2
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/feign/UserFeign.java
View file @
bc26eb01
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
feign
;
import
com.github.wxiaoqi.security.admin.entity.AppUserDetail
;
import
com.github.wxiaoqi.security.admin.entity.BaseUserMemberLevel
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
import
com.github.wxiaoqi.security.admin.feign.dto.UserDTO
;
...
...
@@ -40,7 +41,7 @@ public interface UserFeign {
public
List
<
BaseUserMemberLevel
>
levels
();
@RequestMapping
(
value
=
"/public/app/userinfo-by-id"
)
public
Map
<
Integer
,
Object
>
userDetailById
(
List
<
Integer
>
userids
);
public
Map
<
Integer
,
AppUserDetail
>
userDetailById
(
List
<
Integer
>
userids
);
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/PublicController.java
View file @
bc26eb01
...
...
@@ -77,8 +77,8 @@ public class PublicController {
//批量获取用户信息
@RequestMapping
(
value
=
"/app/userinfo-by-id"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
Map
<
Integer
,
Object
>
userDetailById
(
List
<
Integer
>
userids
)
throws
Exception
{
Map
<
Integer
,
Object
>
map
=
new
HashMap
<>();
Map
<
Integer
,
AppUserDetail
>
userDetailById
(
List
<
Integer
>
userids
)
throws
Exception
{
Map
<
Integer
,
AppUserDetail
>
map
=
new
HashMap
<>();
for
(
Integer
userid:
userids
)
{
AppUserDetail
user
=
detailBiz
.
getUserByUserid
(
userid
);
if
(
user
==
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