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
e7ada3e9
Commit
e7ada3e9
authored
Jan 28, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
json转化调整
parent
bba753e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
LoginController.java
...ain/java/com/gic/auth/web/controller/LoginController.java
+13
-5
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/LoginController.java
View file @
e7ada3e9
...
...
@@ -10,6 +10,7 @@ import java.util.stream.Collectors;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
com.gic.auth.dto.*
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
...
...
@@ -20,10 +21,6 @@ import org.springframework.web.bind.annotation.RestController;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.constant.LoginUserTypeEnum
;
import
com.gic.auth.dto.MenuDTO
;
import
com.gic.auth.dto.ResourceGroupDataDTO
;
import
com.gic.auth.dto.UserDTO
;
import
com.gic.auth.dto.UserResourceDTO
;
import
com.gic.auth.service.*
;
import
com.gic.commons.annotation.HeaderSignIgnore
;
import
com.gic.commons.util.EntityUtil
;
...
...
@@ -278,7 +275,18 @@ public class LoginController {
ServiceResponse
<
ResourceGroupDataDTO
>
response
=
resourceGroupApiService
.
getResourceGroupByUserId
(
userId
);
if
(
resource
.
isSuccess
())
{
ResourceGroupDataDTO
resourceGroupDataDTO
=
response
.
getResult
();
detail
.
setCustomUserInfo
(
EntityUtil
.
changeEntityByJSON
(
CustomUserInfo
.
class
,
resourceGroupDataDTO
.
getCustomUserAreaDTO
()));
CustomUserAreaDTO
customUserAreaDTO
=
resourceGroupDataDTO
.
getCustomUserAreaDTO
();
CustomUserInfo
customUserInfo
=
new
CustomUserInfo
();
if
(
customUserAreaDTO
!=
null
)
{
List
<
ResourceGroupCustomUserDTO
>
customUserList
=
customUserAreaDTO
.
getCustomUserList
();
if
(
CollectionUtils
.
isNotEmpty
(
customUserList
))
{
List
<
ResourceGroupCustomUserInfo
>
customUserInfoList
=
EntityUtil
.
changeEntityListNew
(
ResourceGroupCustomUserInfo
.
class
,
customUserList
);
customUserAreaDTO
.
setCustomUserList
(
null
);
customUserInfo
=
EntityUtil
.
changeEntityByJSON
(
CustomUserInfo
.
class
,
customUserAreaDTO
);
customUserInfo
.
setCustomUserList
(
customUserInfoList
);
}
}
detail
.
setCustomUserInfo
(
customUserInfo
);
detail
.
setStoreResourceInfo
(
EntityUtil
.
changeEntityNew
(
StoreResourceInfo
.
class
,
resourceGroupDataDTO
.
getStoreResourceDTO
()));
detail
.
setGoodsResourceInfo
(
EntityUtil
.
changeEntityNew
(
GoodsResourceInfo
.
class
,
resourceGroupDataDTO
.
getGoodsResourceDTO
()));
}
else
{
...
...
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