Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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
base_platform_enterprise
gic-platform-auth
Commits
b64e1883
Commit
b64e1883
authored
Dec 30, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询所有的组员接口
parent
7f257b8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
2 deletions
+34
-2
AccountGroupApiService.java
...ain/java/com/gic/auth/service/AccountGroupApiService.java
+12
-0
AccountGroupApiServiceImpl.java
...c/auth/service/outer/impl/AccountGroupApiServiceImpl.java
+10
-0
AccountGroupController.java
...a/com/gic/auth/web/controller/AccountGroupController.java
+12
-2
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/service/AccountGroupApiService.java
View file @
b64e1883
...
...
@@ -99,6 +99,18 @@ public interface AccountGroupApiService {
ServiceResponse
<
List
<
AccountGroupMemberDTO
>>
listNotInAccountGroupByAccountGroupId
(
Integer
accountGroupId
,
String
search
);
/**
* 查询商户所有组员
* @Title: listAllMember
* @Description:
* @author guojuxing
* @param search
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.AccountGroupMemberDTO>>
*/
ServiceResponse
<
List
<
AccountGroupMemberDTO
>>
listAllMember
(
String
search
,
Integer
enterpriseId
);
/**
* 查询在对应账号分组内的所有组员
* @Title: listNotInAccountGroupByAccountGroupId
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/AccountGroupApiServiceImpl.java
View file @
b64e1883
...
...
@@ -161,6 +161,16 @@ public class AccountGroupApiServiceImpl implements AccountGroupApiService {
}
@Override
ServiceResponse
<
List
<
AccountGroupMemberDTO
>>
listAllMember
(
String
search
,
Integer
enterpriseId
)
{
List
<
AccountGroupMemberDTO
>
result
=
new
ArrayList
<>();
//查询管理员列表
result
.
addAll
(
getMemberOfUser
(
null
,
false
,
search
,
enterpriseId
));
// 查询协作人列表
result
.
addAll
(
getMemberOfCollaborator
(
null
,
false
,
search
,
enterpriseId
));
return
ServiceResponse
.
success
(
result
);
}
@Override
public
ServiceResponse
<
List
<
AccountGroupMemberDTO
>>
listInAccountGroupByAccountGroupId
(
Integer
accountGroupId
,
String
search
)
{
TabSysAccountGroup
record
=
accountGroupService
.
getById
(
accountGroupId
);
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/AccountGroupController.java
View file @
b64e1883
...
...
@@ -86,8 +86,7 @@ public class AccountGroupController {
public
RestResponse
deleteAccountGroup
(
Integer
accountGroupId
)
{
ServiceResponse
<
AccountGroupDTO
>
result
=
accountGroupApiService
.
deleteByAccountGroupId
(
accountGroupId
);
String
operationObject
=
result
.
isSuccess
()
?
result
.
getResult
().
getAccountGroupName
()
:
null
;
return
OperationResultUtils
.
operationResult
(
result
,
OperationResultUtils
.
LOG_DELETE
+
"账号分组"
,
operationObject
);
return
OperationResultUtils
.
operationResult
(
result
,
OperationResultUtils
.
LOG_DELETE
+
"账号分组"
,
operationObject
);
}
@RequestMapping
(
"/sort"
)
...
...
@@ -143,6 +142,17 @@ public class AccountGroupController {
.
commonResult
(
accountGroupApiService
.
listInAccountGroupByAccountGroupId
(
accountGroupId
,
search
));
}
/**
* 查询所有组员,创建分组的时候直接添加组员使用
* @param search
* @return
*/
@RequestMapping
(
"/list-all-member"
)
public
RestResponse
listAllMember
(
String
search
)
{
return
ResultControllerUtils
.
commonResult
(
accountGroupApiService
.
listAllMember
(
search
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()));
}
@RequestMapping
(
"/grouping"
)
public
RestResponse
grouping
(
@NotBlank
(
message
=
"账号分组ID不能为空"
)
String
accountGroupIds
,
@NotBlank
(
message
=
"组员ID不能为空"
)
String
userIds
,
@NotNull
(
message
=
"组员类型不能为空"
)
Integer
type
)
{
...
...
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