Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
36ace9f2
Commit
36ace9f2
authored
Jun 05, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
a8cf2263
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+8
-16
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
36ace9f2
...
...
@@ -103,22 +103,12 @@ public class AuditApiServiceImpl implements AuditApiService{
List
<
String
>
storeIds
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotEmpty
(
search
)){
// List<StoreDTO> list = storeService.searchStoreByCodeOrName(enterpriseId,search);
List
<
TabHaobanDepartment
>
departmentList
=
departmentMapper
.
listDepartmentLikeName
(
search
);
if
(
CollectionUtil
.
isNotEmpty
(
departmentList
)){
departmentIds
=
departmentList
.
stream
().
map
(
s
->
s
.
getDepartmentId
()).
collect
(
Collectors
.
toList
());
}
else
{
departmentIds
=
Arrays
.
asList
(
"-999"
);
}
if
(
CollectionUtil
.
isNotEmpty
(
departmentList
)){
List
<
StaffDepartmentRelatedDTO
>
staffDepartments
=
staffDepartmentRelatedApiService
.
listByDepartmentIds
(
departmentIds
);
if
(
CollectionUtil
.
isNotEmpty
(
staffDepartments
)){
List
<
String
>
staffIds1
=
staffDepartments
.
stream
().
map
(
s
->
s
.
getStaffId
()).
collect
(
Collectors
.
toList
());
staffIds
.
addAll
(
staffIds1
);
}
List
<
StoreDTO
>
list
=
storeService
.
searchStoreByCodeOrName
(
enterpriseId
,
search
);
if
(
CollectionUtil
.
isNotEmpty
(
list
)){
List
<
String
>
storeIds1
=
list
.
stream
().
map
(
s
->
s
.
getStoreId
()).
collect
(
Collectors
.
toList
());
storeIds
.
addAll
(
storeIds1
);
}
List
<
TabHaobanStaff
>
staffList
=
staffMapper
.
listLikeName
(
search
);
if
(
CollectionUtil
.
isNotEmpty
(
staffList
)){
List
<
String
>
staffIds2
=
staffList
.
stream
().
map
(
s
->
s
.
getStaffId
()).
collect
(
Collectors
.
toList
());
...
...
@@ -127,7 +117,9 @@ public class AuditApiServiceImpl implements AuditApiService{
if
(
CollectionUtil
.
isEmpty
(
staffIds
)){
staffIds
.
add
(
"-999"
);
}
storeIds
.
add
(
"-999"
);
if
(
CollectionUtil
.
isEmpty
(
storeIds
)){
storeIds
.
add
(
"-999"
);
}
}
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
com
.
github
.
pagehelper
.
Page
<
TabHaobanAudit
>
page
=
new
com
.
github
.
pagehelper
.
Page
<
TabHaobanAudit
>();
...
...
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