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
f6370295
Commit
f6370295
authored
Mar 27, 2019
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jpa语法更正
parent
d9fdf789
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
IUserDetailRepository.java
.../cn/quantgroup/xyqb/repository/IUserDetailRepository.java
+2
-2
UserDetailServiceImpl.java
...ntgroup/xyqb/service/user/impl/UserDetailServiceImpl.java
+2
-2
No files found.
src/main/java/cn/quantgroup/xyqb/repository/IUserDetailRepository.java
View file @
f6370295
...
...
@@ -60,9 +60,9 @@ public interface IUserDetailRepository extends JpaRepository<UserDetail, Long>,
@Query
(
value
=
"select * from user_detail where phone_no like ?1 and id_no like ?2"
,
nativeQuery
=
true
)
List
<
UserDetail
>
fuzzyQueryByPhoneNoAndIdNo
(
String
phoneNo
,
String
idNo
);
List
<
UserDetail
>
find
ByIdNoStartingWithLimit20
(
String
idNo
);
List
<
UserDetail
>
find
Top20ByIdNoStartingWith
(
String
idNo
);
List
<
UserDetail
>
find
ByPhoneNoStartingWithLimit20
(
String
phoneNo
);
List
<
UserDetail
>
find
Top20ByPhoneNoStartingWith
(
String
phoneNo
);
List
<
UserDetail
>
findByIdBetween
(
Long
id
,
Long
endId
);
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserDetailServiceImpl.java
View file @
f6370295
...
...
@@ -122,12 +122,12 @@ public class UserDetailServiceImpl implements IUserDetailService {
@Override
public
List
<
UserDetail
>
findByIdNoStartingWith
(
String
idNo
)
{
return
userDetailRepository
.
find
ByIdNoStartingWithLimit20
(
idNo
);
return
userDetailRepository
.
find
Top20ByIdNoStartingWith
(
idNo
);
}
@Override
public
List
<
UserDetail
>
findByPhoneNoStartingWith
(
String
phoneNo
)
{
return
userDetailRepository
.
find
ByPhoneNoStartingWithLimit20
(
phoneNo
);
return
userDetailRepository
.
find
Top20ByPhoneNoStartingWith
(
phoneNo
);
}
private
Specification
<
UserDetail
>
getSpecification
(
String
name
,
String
phoneNo
,
String
idNo
)
{
...
...
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