Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a562eec2
authored
Jul 14, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add logs
1 parent
5313c619
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
project-user/src/main/java/com/dituhui/pea/user/service/UserService.java
project-user/src/main/java/com/dituhui/pea/user/service/UserService.java
View file @
a562eec
...
@@ -9,13 +9,13 @@ import java.util.stream.Collectors;
...
@@ -9,13 +9,13 @@ import java.util.stream.Collectors;
import
javax.persistence.criteria.Path
;
import
javax.persistence.criteria.Path
;
import
javax.persistence.criteria.Predicate
;
import
javax.persistence.criteria.Predicate
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
com.alibaba.nacos.common.utils.CollectionUtils
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.common.ResultEnum
;
import
com.dituhui.pea.common.ResultEnum
;
import
com.dituhui.pea.enums.RedisKeyGroup
;
import
com.dituhui.pea.enums.RedisKeyGroup
;
...
@@ -158,10 +158,11 @@ public class UserService {
...
@@ -158,10 +158,11 @@ public class UserService {
}
}
return
orgs
;
return
orgs
;
}).
flatMap
(
a
->
a
.
stream
()).
collect
(
Collectors
.
toList
());
}).
flatMap
(
a
->
a
.
stream
()).
collect
(
Collectors
.
toList
());
// if (CollectionUtils.isNotEmpty(allOrgs)) {
log
.
info
(
"allOrgs1: {}"
,
CollectionUtils
.
isNotEmpty
(
allOrgs
));
// log.info("allOrgs {}", allOrgs.get(0));
if
(
CollectionUtils
.
isNotEmpty
(
allOrgs
))
{
// allOrgs.get(0).setIsActive(true);
log
.
info
(
"allOrgs2: {}"
,
allOrgs
.
get
(
0
).
getIsActive
());
// }
allOrgs
.
get
(
0
).
setIsActive
(
true
);
}
userDTO
.
setAuths
(
allOrgs
);
userDTO
.
setAuths
(
allOrgs
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment