Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
项目统一框架
amos-boot-biz
Commits
0875b4e0
Commit
0875b4e0
authored
Oct 31, 2022
by
dqq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
焊工页面筛选
parent
1e0efa64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
WelderController.java
...amos/boot/module/ugp/biz/controller/WelderController.java
+9
-3
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/WelderController.java
View file @
0875b4e0
...
@@ -141,9 +141,15 @@ public class WelderController extends BaseController {
...
@@ -141,9 +141,15 @@ public class WelderController extends BaseController {
IPage
companyWelder
=
orgServiceImpl
.
getCompanyWelder
(
page
);
IPage
companyWelder
=
orgServiceImpl
.
getCompanyWelder
(
page
);
List
<
WelderDto
>
welderRecords
=
companyWelder
.
getRecords
();
List
<
WelderDto
>
welderRecords
=
companyWelder
.
getRecords
();
List
<
WelderDto
>
result
=
welderRecords
.
stream
().
filter
(
w
->
!
w
.
getName
().
equals
(
name
)
&&
!
w
.
getIdNumber
().
equals
(
idNumber
)
&&
!
w
.
getLicensedProject
().
equals
(
licensedProject
)).
collect
(
Collectors
.
toList
());
//模糊查询
Page
records
=
page
.
setRecords
(
result
);
if
(
name
!=
null
||
idNumber
!=
null
||
licensedProject
!=
null
){
if
(
name
!=
null
)
{
welderRecords
=
welderRecords
.
stream
().
filter
(
n
->
n
.
getName
().
indexOf
(
name
)>-
1
).
collect
(
Collectors
.
toList
());}
if
(
idNumber
!=
null
)
{
welderRecords
=
welderRecords
.
stream
().
filter
(
n
->
n
.
getIdNumber
().
indexOf
(
idNumber
)>-
1
).
collect
(
Collectors
.
toList
());}
if
(
licensedProject
!=
null
)
{
welderRecords
=
welderRecords
.
stream
().
filter
(
n
->
n
.
getLicensedProject
().
indexOf
(
licensedProject
)>-
1
).
collect
(
Collectors
.
toList
());}
}
Page
records
=
page
.
setRecords
(
welderRecords
);
return
ResponseHelper
.
buildResponse
(
records
);
return
ResponseHelper
.
buildResponse
(
records
);
}
}
...
...
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