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
a520e061
Commit
a520e061
authored
Nov 06, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加接口:根据分组ID查询组员
parent
771b2f0f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
1 deletions
+41
-1
TabSysAccountGroupRelMapper.java
.../com/gic/auth/dao/mapper/TabSysAccountGroupRelMapper.java
+3
-0
AccountGroupRelService.java
...ain/java/com/gic/auth/service/AccountGroupRelService.java
+2
-0
AccountGroupRelServiceImpl.java
...com/gic/auth/service/impl/AccountGroupRelServiceImpl.java
+5
-0
AccountGroupApiServiceImpl.java
...c/auth/service/outer/impl/AccountGroupApiServiceImpl.java
+12
-1
TabSysAccountGroupRelMapper.xml
...src/main/resources/mapper/TabSysAccountGroupRelMapper.xml
+19
-0
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabSysAccountGroupRelMapper.java
View file @
a520e061
...
...
@@ -122,4 +122,6 @@ public interface TabSysAccountGroupRelMapper {
List
<
TabSysAccountGroupRel
>
listByAccountGroupId
(
@Param
(
"accountGroupId"
)
Integer
accountGroupId
,
@Param
(
"type"
)
Integer
type
);
List
<
AccountGroupListDTO
>
groupByAccountGroupId
(
@Param
(
"list"
)
List
<
Integer
>
accountGroupId
);
List
<
TabSysAccountGroupRel
>
listByAccountGroupIdList
(
@Param
(
"list"
)
List
<
Integer
>
accountGroupIdList
,
@Param
(
"type"
)
Integer
type
);
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/service/AccountGroupRelService.java
View file @
a520e061
...
...
@@ -80,6 +80,8 @@ public interface AccountGroupRelService {
*/
List
<
TabSysAccountGroupRel
>
listByAccountGroupId
(
Integer
accountGroupId
);
List
<
TabSysAccountGroupRel
>
listByAccountGroupId
(
List
<
Integer
>
accountGroupIdList
,
Integer
type
);
List
<
TabSysAccountGroupRel
>
listByAccountGroupId
(
Integer
accountGroupId
,
Integer
type
);
/**
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/impl/AccountGroupRelServiceImpl.java
View file @
a520e061
...
...
@@ -67,6 +67,11 @@ public class AccountGroupRelServiceImpl implements AccountGroupRelService{
}
@Override
public
List
<
TabSysAccountGroupRel
>
listByAccountGroupId
(
List
<
Integer
>
accountGroupIdList
,
Integer
type
)
{
return
tabSysAccountGroupRelMapper
.
listByAccountGroupIdList
(
accountGroupIdList
,
type
);
}
@Override
public
List
<
TabSysAccountGroupRel
>
listByAccountGroupId
(
Integer
accountGroupId
,
Integer
type
)
{
return
tabSysAccountGroupRelMapper
.
listByAccountGroupId
(
accountGroupId
,
type
);
}
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/AccountGroupApiServiceImpl.java
View file @
a520e061
...
...
@@ -133,6 +133,17 @@ public class AccountGroupApiServiceImpl implements AccountGroupApiService {
}
@Override
public
ServiceResponse
<
List
<
AccountGroupMemberDTO
>>
listAccountGroupMemberByAccountGroupId
(
List
<
Integer
>
accountGroupIdList
)
{
List
<
AccountGroupMemberDTO
>
result
=
new
ArrayList
<>();
List
<
TabSysAccountGroupRel
>
list
=
accountGroupRelService
.
listByAccountGroupId
(
accountGroupIdList
,
null
);
//查询管理员列表
result
.
addAll
(
getMemberOfUser
(
list
,
true
,
null
,
null
));
// 查询协作人列表
result
.
addAll
(
getMemberOfCollaborator
(
list
,
true
,
null
,
null
));
return
ServiceResponse
.
success
(
result
);
}
@Override
public
ServiceResponse
<
List
<
AccountGroupMemberDTO
>>
listNotInAccountGroupByAccountGroupId
(
Integer
accountGroupId
,
String
search
)
{
TabSysAccountGroup
record
=
accountGroupService
.
getById
(
accountGroupId
);
...
...
@@ -144,7 +155,7 @@ public class AccountGroupApiServiceImpl implements AccountGroupApiService {
//查询管理员列表
result
.
addAll
(
getMemberOfUser
(
list
,
false
,
search
,
record
.
getEnterpriseId
()));
// 查询协作人列表
result
.
addAll
(
getMemberOfCollaborator
(
list
,
tru
e
,
search
,
record
.
getEnterpriseId
()));
result
.
addAll
(
getMemberOfCollaborator
(
list
,
fals
e
,
search
,
record
.
getEnterpriseId
()));
return
ServiceResponse
.
success
(
result
);
}
...
...
gic-platform-auth-service/src/main/resources/mapper/TabSysAccountGroupRelMapper.xml
View file @
a520e061
...
...
@@ -219,4 +219,22 @@
</if>
group by account_group_id
</select>
<select
id=
"listByAccountGroupIdList"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_sys_account_group_rel
where
status = 1
<if
test=
"list != null and list.size() > 0"
>
and account_group_id in
<foreach
collection=
"list"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"type != null"
>
and type = #{type}
</if>
</select>
</mapper>
\ No newline at end of file
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