Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
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
bltdc
dc-cost-system
Commits
0a92a114
Commit
0a92a114
authored
Nov 27, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1d85b44a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+6
-5
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
0a92a114
...
...
@@ -45,10 +45,7 @@ import org.springframework.util.StringUtils;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -114,7 +111,11 @@ public abstract class AbstractCostService implements CostService {
List
<
OaUser
>
oaUserList
=
oaUserMapper
.
selectBatchIds
(
costDomains
.
stream
().
map
(
CostDomain:
:
getCreateUserid
).
collect
(
Collectors
.
toList
()));
if
(
ListUtil
.
isNotEmpty
(
oaUserList
))
{
Map
<
Integer
,
OaDepartment
>
departmentMap
=
oaDepartmentMapper
.
selectBatchIds
(
oaUserList
.
stream
().
map
(
OaUser:
:
getPrimaryDepartmentId
).
collect
(
Collectors
.
toList
()))
oaUserList
.
stream
()
.
map
(
OaUser:
:
getPrimaryDepartmentId
)
.
filter
(
Objects:
:
nonNull
)
.
collect
(
Collectors
.
toList
()))
.
stream
()
.
collect
(
Collectors
.
toMap
(
OaDepartment:
:
getDepartmentId
,
oaDepartment
->
oaDepartment
));
Map
<
Integer
,
OaUser
>
oaUserMap
=
oaUserList
.
stream
()
...
...
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