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 a139bfbd
authored
Jul 11, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了分页、按工号手机号姓名模糊匹配的功能
1 parent
20f38411
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/common/EngineerUtil.java
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerInfoDao.java
project-order/src/main/java/com/dituhui/pea/order/common/EngineerUtil.java
View file @
a139bfb
...
...
@@ -63,7 +63,7 @@ public class EngineerUtil {
public
Page
<
EngineerInfoEntity
>
findEngineersByKeyAndPage
(
List
<
String
>
engineerCodes
,
String
key
,
Integer
page
,
Integer
size
)
{
Pageable
pageable
=
PageRequest
.
of
(
page
-
1
,
size
);
return
engineerInfoDao
.
findAll
And
EngineerCodeIn
(
engineerCodes
,
buildSpecification
(
key
),
pageable
);
return
engineerInfoDao
.
findAll
By
EngineerCodeIn
(
engineerCodes
,
buildSpecification
(
key
),
pageable
);
}
...
...
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerInfoDao.java
View file @
a139bfb
...
...
@@ -20,5 +20,5 @@ public interface EngineerInfoDao extends JpaRepository<EngineerInfoEntity, Integ
List
<
EngineerInfoEntity
>
findByEngineerCodeIn
(
List
<
String
>
engineerCodes
);
Page
<
EngineerInfoEntity
>
findAll
And
EngineerCodeIn
(
List
<
String
>
engineerCodes
,
Specification
<
EngineerInfoEntity
>
engineerInfoEntitySpecification
,
Pageable
pageable
);
Page
<
EngineerInfoEntity
>
findAll
By
EngineerCodeIn
(
List
<
String
>
engineerCodes
,
Specification
<
EngineerInfoEntity
>
engineerInfoEntitySpecification
,
Pageable
pageable
);
}
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