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
5aaf1b6e
Commit
5aaf1b6e
authored
Nov 01, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查询账号分组接口:没有组员数量的接口
parent
168baac6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
AccountGroupApiServiceImpl.java
...c/auth/service/outer/impl/AccountGroupApiServiceImpl.java
+9
-0
AccountGroupController.java
...a/com/gic/auth/web/controller/AccountGroupController.java
+7
-0
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/AccountGroupApiServiceImpl.java
View file @
5aaf1b6e
...
...
@@ -99,6 +99,15 @@ public class AccountGroupApiServiceImpl implements AccountGroupApiService {
return
ServiceResponse
.
success
(
new
ArrayList
<>());
}
@Override
public
ServiceResponse
<
List
<
AccountGroupDTO
>>
listNoMemberByEnterpriseId
(
Integer
enterpriseId
)
{
List
<
TabSysAccountGroup
>
list
=
accountGroupService
.
listAccountGroupByEnterpriseId
(
enterpriseId
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListNew
(
AccountGroupDTO
.
class
,
list
));
}
return
ServiceResponse
.
success
(
new
ArrayList
<>());
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
ServiceResponse
<
Void
>
deleteByAccountGroupId
(
Integer
accountGroupId
)
{
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/AccountGroupController.java
View file @
5aaf1b6e
...
...
@@ -59,6 +59,13 @@ public class AccountGroupController {
AccountGroupListVO
.
class
);
}
@RequestMapping
(
"/list-no-member"
)
public
RestResponse
listAccountGroupOfNoMember
()
{
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
return
ResultControllerUtils
.
commonResult
(
accountGroupApiService
.
listNoMemberByEnterpriseId
(
enterpriseId
),
AccountGroupListVO
.
class
);
}
@RequestMapping
(
"/delete"
)
public
RestResponse
deleteAccountGroup
(
Integer
accountGroupId
)
{
return
ResultControllerUtils
.
commonResult
(
accountGroupApiService
.
deleteByAccountGroupId
(
accountGroupId
));
...
...
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