Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
fe8253c5
Commit
fe8253c5
authored
Dec 26, 2019
by
杨锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用代码。
parent
edd3d915
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
UserDetailServiceImpl.java
...ntgroup/xyqb/service/user/impl/UserDetailServiceImpl.java
+0
-24
No files found.
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserDetailServiceImpl.java
View file @
fe8253c5
...
@@ -100,21 +100,6 @@ public class UserDetailServiceImpl implements IUserDetailService {
...
@@ -100,21 +100,6 @@ public class UserDetailServiceImpl implements IUserDetailService {
userDetailVO
.
setUpdatedAt
(
resultSet
.
getTimestamp
(
"updated_at"
).
getTime
());
userDetailVO
.
setUpdatedAt
(
resultSet
.
getTimestamp
(
"updated_at"
).
getTime
());
return
userDetailVO
;
return
userDetailVO
;
});
});
// TODO: 2019/12/24 by rui branch feature_optimize_20191223 上线验证后,即删除该注释块
// List<UserDetail> details = userDetailRepository.findAll(getSpecification(name, phoneNo, idNo));
// Map<Long, User> userMap = Maps.newHashMap();
// if (!CollectionUtils.isEmpty(details)) {
// List<Long> userIds = details.stream().map(UserDetail::getUserId).collect(Collectors.toList());
// List<User> users = userRepository.findAll((root, query, cb) -> {
// query.where(root.get("id").in(userIds));
// return query.getRestriction();
// });
// userMap = users.stream().collect(Collectors.toMap(User::getId, o -> o));
// }
// Map<Long, User> finalUserMap = userMap;
// List<UserDetailVO> userDetailVOS = details.stream().map(o -> fromUserDetailAndUserMap(o, finalUserMap)).collect(Collectors.toList());
// return userDetailVOS;
}
}
private
String
buildSearchUserDetailListSql
(
String
name
,
String
phoneNo
,
String
idNo
)
{
private
String
buildSearchUserDetailListSql
(
String
name
,
String
phoneNo
,
String
idNo
)
{
...
@@ -196,15 +181,6 @@ public class UserDetailServiceImpl implements IUserDetailService {
...
@@ -196,15 +181,6 @@ public class UserDetailServiceImpl implements IUserDetailService {
return
specification
;
return
specification
;
}
}
private
UserDetailVO
fromUserDetailAndUserMap
(
UserDetail
userDetail
,
Map
<
Long
,
User
>
userMap
)
{
UserDetailVO
userDetailVO
=
UserDetailVO
.
fromUserDetail
(
userDetail
);
User
user
=
userMap
.
get
(
userDetail
.
getUserId
());
if
(
user
!=
null
)
{
userDetailVO
.
setEnable
(
user
.
getEnable
());
}
return
userDetailVO
;
}
private
Specification
<
UserDetail
>
valueInSpecification
(
List
<
Long
>
userId
,
List
<
String
>
phoneNo
,
List
<
String
>
idNo
)
{
private
Specification
<
UserDetail
>
valueInSpecification
(
List
<
Long
>
userId
,
List
<
String
>
phoneNo
,
List
<
String
>
idNo
)
{
List
<
Predicate
>
list
=
new
ArrayList
<>();
List
<
Predicate
>
list
=
new
ArrayList
<>();
Specification
<
UserDetail
>
specification
=
(
root
,
criteriaQuery
,
criteriaBuilder
)
->
{
Specification
<
UserDetail
>
specification
=
(
root
,
criteriaQuery
,
criteriaBuilder
)
->
{
...
...
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