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 5d2b6076
authored
Jul 11, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-dingwf-0715' into develop
2 parents
68c5947b
35878afd
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 @
5d2b607
...
...
@@ -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
.
findAllByEngineerCodeIn
(
buildSpecification
(
key
),
engineerCodes
,
pageable
);
return
engineerInfoDao
.
findAllByEngineerCodeIn
(
engineerCodes
,
buildSpecification
(
key
)
,
pageable
);
}
...
...
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerInfoDao.java
View file @
5d2b607
...
...
@@ -21,5 +21,5 @@ public interface EngineerInfoDao extends JpaRepository<EngineerInfoEntity, Integ
List
<
EngineerInfoEntity
>
findByEngineerCodeIn
(
List
<
String
>
engineerCodes
);
Page
<
EngineerInfoEntity
>
findAllByEngineerCodeIn
(
Specification
<
EngineerInfoEntity
>
engineerInfoEntitySpecification
,
List
<
String
>
engineerCodes
,
Pageable
pageable
);
Page
<
EngineerInfoEntity
>
findAllByEngineerCodeIn
(
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