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
472f5fa7
Commit
472f5fa7
authored
Feb 25, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联合商户账号分组组件
parent
f202e2d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
1 deletions
+70
-1
AccountGroupController.java
...a/com/gic/auth/web/controller/AccountGroupController.java
+20
-0
LoginController.java
...ain/java/com/gic/auth/web/controller/LoginController.java
+0
-1
UnionEnterpriseAccountGroupListVO.java
...om/gic/auth/web/vo/UnionEnterpriseAccountGroupListVO.java
+50
-0
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/AccountGroupController.java
View file @
472f5fa7
...
...
@@ -12,9 +12,12 @@ import com.gic.auth.service.AccountGroupApiService;
import
com.gic.auth.service.CollaboratorApiService
;
import
com.gic.auth.service.UserApiService
;
import
com.gic.auth.web.vo.AccountGroupListVO
;
import
com.gic.auth.web.vo.UnionEnterpriseAccountGroupListVO
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.download.utils.OperationResultUtils
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.service.UnionEnterpriseAuthApiService
;
import
com.gic.enterprise.utils.ResultControllerUtils
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
org.apache.commons.collections.CollectionUtils
;
...
...
@@ -49,6 +52,8 @@ public class AccountGroupController {
private
CollaboratorApiService
collaboratorApiService
;
@Autowired
private
UserApiService
userApiService
;
@Autowired
private
UnionEnterpriseAuthApiService
unionEnterpriseAuthApiService
;
/**
* 新增账号分组
...
...
@@ -85,6 +90,21 @@ public class AccountGroupController {
AccountGroupListVO
.
class
);
}
@RequestMapping
(
"/list-union-enterprise"
)
public
RestResponse
listUnionEnterprise
(
Integer
ownEnterpriseId
)
{
UnionEnterpriseAccountGroupListVO
vo
=
new
UnionEnterpriseAccountGroupListVO
();
ServiceResponse
<
List
<
AccountGroupDTO
>>
ownResponse
=
accountGroupApiService
.
listNoMemberByEnterpriseId
(
ownEnterpriseId
);
if
(
ownResponse
.
isSuccess
())
{
vo
.
setOwnEnterpriseAccountGroup
(
EntityUtil
.
changeEntityListNew
(
AccountGroupListVO
.
class
,
ownResponse
.
getResult
()));
}
ServiceResponse
<
List
<
AccountGroupDTO
>>
currentResponse
=
accountGroupApiService
.
listNoMemberByEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
if
(
currentResponse
.
isSuccess
())
{
vo
.
setCurrentEnterpriseAccountGroup
(
EntityUtil
.
changeEntityListNew
(
AccountGroupListVO
.
class
,
currentResponse
.
getResult
()));
}
return
RestResponse
.
success
(
vo
);
}
@RequestMapping
(
"/delete"
)
public
RestResponse
deleteAccountGroup
(
Integer
accountGroupId
)
{
ServiceResponse
<
AccountGroupDTO
>
result
=
accountGroupApiService
.
deleteByAccountGroupId
(
accountGroupId
);
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/LoginController.java
View file @
472f5fa7
...
...
@@ -263,7 +263,6 @@ public class LoginController {
if
(
response
.
isSuccess
())
{
List
<
MenuDTO
>
list
=
response
.
getResult
();
//gic平台的菜单数据塞本地缓存
RedisUtil
.
delLocalCache
(
MENU_LOCAL_CACHE_KEY
);
RedisUtil
.
setLocalCache
(
MENU_LOCAL_CACHE_KEY
,
EntityUtil
.
changeEntityListNew
(
MenuInfo
.
class
,
list
),
null
);
}
}
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/vo/UnionEnterpriseAccountGroupListVO.java
0 → 100644
View file @
472f5fa7
package
com
.
gic
.
auth
.
web
.
vo
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* 联合商户账号分组组件
* @ClassName:
* @Description:
* @author guojuxing
* @date 2021/2/25 1:53 PM
*/
public
class
UnionEnterpriseAccountGroupListVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
6530622928732661742L
;
/**
* 自有商户
*/
private
List
<
AccountGroupListVO
>
ownEnterpriseAccountGroup
;
/**
* 当前本商户
*/
private
List
<
AccountGroupListVO
>
currentEnterpriseAccountGroup
;
public
List
<
AccountGroupListVO
>
getOwnEnterpriseAccountGroup
()
{
return
ownEnterpriseAccountGroup
;
}
public
UnionEnterpriseAccountGroupListVO
setOwnEnterpriseAccountGroup
(
List
<
AccountGroupListVO
>
ownEnterpriseAccountGroup
)
{
this
.
ownEnterpriseAccountGroup
=
ownEnterpriseAccountGroup
;
return
this
;
}
public
List
<
AccountGroupListVO
>
getCurrentEnterpriseAccountGroup
()
{
return
currentEnterpriseAccountGroup
;
}
public
UnionEnterpriseAccountGroupListVO
setCurrentEnterpriseAccountGroup
(
List
<
AccountGroupListVO
>
currentEnterpriseAccountGroup
)
{
this
.
currentEnterpriseAccountGroup
=
currentEnterpriseAccountGroup
;
return
this
;
}
@Override
public
String
toString
()
{
return
"UnionEnterpriseAccountGroupListVO{"
+
"ownEnterpriseAccountGroup="
+
ownEnterpriseAccountGroup
+
", currentEnterpriseAccountGroup="
+
currentEnterpriseAccountGroup
+
'}'
;
}
}
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