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
81deec7b
Commit
81deec7b
authored
Feb 25, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联合商户账号分组组件
parent
2e049632
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
AccountGroupController.java
...a/com/gic/auth/web/controller/AccountGroupController.java
+4
-4
UnionEnterpriseAccountGroupListVO.java
...om/gic/auth/web/vo/UnionEnterpriseAccountGroupListVO.java
+12
-12
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/AccountGroupController.java
View file @
81deec7b
...
...
@@ -99,10 +99,10 @@ public class AccountGroupController {
List
<
UnionEnterpriseAccountGroupListVO
>
voList
=
new
ArrayList
<>();
UnionEnterpriseAccountGroupListVO
ownVO
=
new
UnionEnterpriseAccountGroupListVO
();
ownVO
.
set
Value
(
ownEnterpriseId
!=
null
?
ownEnterpriseId
.
toString
()
:
null
);
ownVO
.
set
AccountGroupId
(
ownEnterpriseId
);
ServiceResponse
<
EnterpriseDTO
>
ownEnterpriseResponse
=
enterpriseApiService
.
getEnterpriseById
(
ownEnterpriseId
);
if
(
ownEnterpriseResponse
.
isSuccess
())
{
ownVO
.
set
Label
(
ownEnterpriseResponse
.
getResult
().
getEnterpriseName
());
ownVO
.
set
AccountGroupName
(
ownEnterpriseResponse
.
getResult
().
getEnterpriseName
());
}
ServiceResponse
<
List
<
AccountGroupDTO
>>
ownResponse
=
accountGroupApiService
.
listNoMemberByEnterpriseId
(
ownEnterpriseId
);
if
(
ownResponse
.
isSuccess
())
{
...
...
@@ -112,8 +112,8 @@ public class AccountGroupController {
.
listNoMemberByEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
UnionEnterpriseAccountGroupListVO
currentVO
=
new
UnionEnterpriseAccountGroupListVO
();
currentVO
.
set
Label
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseName
());
currentVO
.
set
Value
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
().
toString
());
currentVO
.
set
AccountGroupName
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseName
());
currentVO
.
set
AccountGroupId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
if
(
currentResponse
.
isSuccess
())
{
currentVO
.
setChildren
(
EntityUtil
.
changeEntityListNew
(
AccountGroupListVO
.
class
,
currentResponse
.
getResult
()));
}
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/vo/UnionEnterpriseAccountGroupListVO.java
View file @
81deec7b
...
...
@@ -16,30 +16,30 @@ public class UnionEnterpriseAccountGroupListVO implements Serializable{
/**
* 商户ID
*/
private
String
value
;
private
Integer
accountGroupId
;
/**
* 商户名称
*/
private
String
label
;
private
String
accountGroupName
;
private
List
<
AccountGroupListVO
>
children
;
public
String
getValue
()
{
return
value
;
public
Integer
getAccountGroupId
()
{
return
accountGroupId
;
}
public
UnionEnterpriseAccountGroupListVO
set
Value
(
String
value
)
{
this
.
value
=
value
;
public
UnionEnterpriseAccountGroupListVO
set
AccountGroupId
(
Integer
accountGroupId
)
{
this
.
accountGroupId
=
accountGroupId
;
return
this
;
}
public
String
get
Label
()
{
return
label
;
public
String
get
AccountGroupName
()
{
return
accountGroupName
;
}
public
UnionEnterpriseAccountGroupListVO
set
Label
(
String
label
)
{
this
.
label
=
label
;
public
UnionEnterpriseAccountGroupListVO
set
AccountGroupName
(
String
accountGroupName
)
{
this
.
accountGroupName
=
accountGroupName
;
return
this
;
}
...
...
@@ -55,8 +55,8 @@ public class UnionEnterpriseAccountGroupListVO implements Serializable{
@Override
public
String
toString
()
{
return
"UnionEnterpriseAccountGroupListVO{"
+
"
value='"
+
value
+
'\''
+
",
label='"
+
label
+
'\''
+
"
accountGroupId="
+
accountGroupId
+
",
accountGroupName='"
+
accountGroupName
+
'\''
+
", children="
+
children
+
'}'
;
}
...
...
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