Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-enterprise
Commits
30f2e2f4
Commit
30f2e2f4
authored
Feb 26, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联合商户被授权的账号分组数据
parent
2a50cc15
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
2 deletions
+57
-2
UnionEnterpriseAuthApiService.java
...gic/enterprise/service/UnionEnterpriseAuthApiService.java
+15
-0
TabSysUnionEnterpriseAuthMapper.java
...nterprise/dao/mapper/TabSysUnionEnterpriseAuthMapper.java
+8
-0
UnionEnterpriseAuthService.java
...om/gic/enterprise/service/UnionEnterpriseAuthService.java
+20
-2
UnionEnterpriseAuthServiceImpl.java
...terprise/service/impl/UnionEnterpriseAuthServiceImpl.java
+5
-0
TabSysUnionEnterpriseAuthMapper.xml
...main/resources/mapper/TabSysUnionEnterpriseAuthMapper.xml
+9
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/UnionEnterpriseAuthApiService.java
View file @
30f2e2f4
...
...
@@ -8,6 +8,7 @@ import com.gic.enterprise.qo.union.UnionEnterpriseAuthResLogQO;
import
javax.validation.Valid
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
import
java.util.Map
;
/**
* 联合商户
...
...
@@ -76,6 +77,20 @@ public interface UnionEnterpriseAuthApiService {
ServiceResponse
<
List
<
UnionEnterpriseAuthDTO
>>
listUnionEnterpriseAuth
(
@NotNull
Integer
ownEnterpriseId
);
/**
* 查询自有商户数据
* @param unionEnterpriseId
* @return
*/
ServiceResponse
<
List
<
UnionEnterpriseAuthDTO
>>
listOwnEnterpriseAuth
(
@NotNull
Integer
unionEnterpriseId
);
/**
* 被自有商户授权的账号分组数据 key:自有商户ID value:账号分组ID
* @param unionEnterpriseId
* @return
*/
ServiceResponse
<
Map
<
Integer
,
List
<
Integer
>>>
getAccountGroupOfOwnEnterpriseAuth
(
@NotNull
Integer
unionEnterpriseId
);
/**
* 产销联合商户数据
* @param resourceGroupId
* @return
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/dao/mapper/TabSysUnionEnterpriseAuthMapper.java
View file @
30f2e2f4
...
...
@@ -114,4 +114,11 @@ public interface TabSysUnionEnterpriseAuthMapper {
* @return
*/
List
<
TabSysUnionEnterpriseAuth
>
listUnionEnterpriseAuthByResourceGroupId
(
@Param
(
"resourceGroupId"
)
Integer
resourceGroupId
);
/**
* 查询自有商户数据
* @param unionEnterpriseId
* @return
*/
List
<
TabSysUnionEnterpriseAuth
>
listOwnEnterpriseAuthByOwnEnterpriseId
(
@Param
(
"unionEnterpriseId"
)
Integer
unionEnterpriseId
);
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/UnionEnterpriseAuthService.java
View file @
30f2e2f4
...
...
@@ -18,7 +18,8 @@ import java.util.List;
public
interface
UnionEnterpriseAuthService
{
/**
* 创建联合商户
* @param ownEnterpriseId 自有商户ID
*
* @param ownEnterpriseId 自有商户ID
* @param unionEnterpriseId 联合商户ID
* @return
*/
...
...
@@ -26,6 +27,7 @@ public interface UnionEnterpriseAuthService {
/**
* 获取联合信息
*
* @param ownEnterpriseId
* @param unionEnterpriseId
* @return
...
...
@@ -34,6 +36,7 @@ public interface UnionEnterpriseAuthService {
/**
* 更新数据
*
* @param dto
* @return
*/
...
...
@@ -41,15 +44,17 @@ public interface UnionEnterpriseAuthService {
/**
* 联合商户列表接口
*
* @param ownEnterpriseId
* @param unionEnterpriseIdList 联合商户ID
* @param authStatus 资源授权状态 UnionEnterpriseAuthDetailStatusEnum
* @param authStatus
资源授权状态 UnionEnterpriseAuthDetailStatusEnum
* @return
*/
List
<
UnionEnterpriseAuthListDTO
>
listUnionEnterpriseAuth
(
Integer
ownEnterpriseId
,
List
<
Integer
>
unionEnterpriseIdList
,
Integer
authStatus
);
/**
* 查询自有商户列表
*
* @param unionEnterpriseId
* @param startTime
* @param endTime
...
...
@@ -59,12 +64,14 @@ public interface UnionEnterpriseAuthService {
/**
* 查询全部
*
* @return
*/
List
<
TabSysUnionEnterpriseAuth
>
listAll
();
/**
* 查询
*
* @param ownEnterpriseId
* @return
*/
...
...
@@ -72,6 +79,7 @@ public interface UnionEnterpriseAuthService {
/**
* 是否已经联合授权
*
* @param resourceGroupId
* @return
*/
...
...
@@ -79,8 +87,18 @@ public interface UnionEnterpriseAuthService {
/**
* 资源组授权商户
*
* @param resourceGroupId
* @return
*/
List
<
TabSysUnionEnterpriseAuth
>
listUnionEnterpriseAuthByResourceGroupId
(
Integer
resourceGroupId
);
/**
* 查询自有商户数据
*
* @param unionEnterpriseId
* @return
*/
List
<
TabSysUnionEnterpriseAuth
>
listOwnEnterpriseAuth
(
@NotNull
Integer
unionEnterpriseId
);
}
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/UnionEnterpriseAuthServiceImpl.java
View file @
30f2e2f4
...
...
@@ -86,4 +86,9 @@ public class UnionEnterpriseAuthServiceImpl implements UnionEnterpriseAuthServic
return
tabSysUnionEnterpriseAuthMapper
.
listUnionEnterpriseAuthByResourceGroupId
(
resourceGroupId
);
}
@Override
public
List
<
TabSysUnionEnterpriseAuth
>
listOwnEnterpriseAuth
(
@NotNull
Integer
unionEnterpriseId
)
{
return
tabSysUnionEnterpriseAuthMapper
.
listOwnEnterpriseAuthByOwnEnterpriseId
(
unionEnterpriseId
);
}
}
gic-platform-enterprise-service/src/main/resources/mapper/TabSysUnionEnterpriseAuthMapper.xml
View file @
30f2e2f4
...
...
@@ -335,4 +335,12 @@
and status_flag != 3
and resource_group_id = #{resourceGroupId}
</select>
<select
id=
"listOwnEnterpriseAuthByOwnEnterpriseId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
from tab_sys_union_enterprise_auth
where delete_flag = 0
and status_flag != 3
and union_enterprise_id = #{unionEnterpriseId}
</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