Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
30c7ecd6
Commit
30c7ecd6
authored
Nov 27, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staff-statistics' into dev
parents
a9a58107
a8164954
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
StaffStatisticsBiz.java
...github/wxiaoqi/security/admin/biz/StaffStatisticsBiz.java
+12
-4
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/StaffStatisticsBiz.java
View file @
30c7ecd6
...
...
@@ -99,16 +99,16 @@ public class StaffStatisticsBiz {
Map
<
String
,
Map
<
Integer
,
Map
<
Integer
,
List
<
AppUserSellingWaterDTO
>>>>
userSellingWaterMap
=
sellingWaterMap
.
get
(
userStaffBo
.
getUserId
());
if
(
userSellingWaterMap
!=
null
&&
!
userSellingWaterMap
.
isEmpty
())
{
AtomicReference
<
BigDecimal
>
royaltyAmountAtomicReference
=
new
AtomicReference
<>(
BigDecimal
.
ZERO
);
List
<
String
>
postionNames
=
new
ArrayList
<>();
List
<
Integer
>
postionIds
=
new
ArrayList
<>();
List
<
String
>
companyNames
=
new
ArrayList
<>();
List
<
Integer
>
compnayIds
=
new
ArrayList
<>();
userSellingWaterMap
.
forEach
((
K
,
V
)
->
{
if
(!
K
.
equals
(
stateGroup
))
{
String
[]
sates
=
K
.
split
(
"-"
);
String
postionIdStr
=
sates
[
1
];
postionMap
.
get
(
Integer
.
valueOf
(
postionIdStr
));
String
companyIdStr
=
sates
[
2
];
List
<
String
>
postionNames
=
staffStatisticsBo
.
getPostionNames
();
List
<
Integer
>
postionIds
=
staffStatisticsBo
.
getPostionIds
();
List
<
String
>
companyNames
=
staffStatisticsBo
.
getCompanyNames
();
List
<
Integer
>
compnayIds
=
staffStatisticsBo
.
getCompnayIds
();
if
(!
postionIds
.
contains
(
Integer
.
valueOf
(
postionIdStr
)))
{
postionNames
.
add
(
postionMap
.
get
(
Integer
.
valueOf
(
postionIdStr
)));
postionIds
.
add
(
Integer
.
valueOf
(
postionIdStr
));
...
...
@@ -128,6 +128,14 @@ public class StaffStatisticsBiz {
}
wrapStaffStatistics
(
V
,
royaltyAmountAtomicReference
,
staffStatisticsBo
);
});
compnayIds
.
addAll
(
staffStatisticsBo
.
getCompnayIds
());
companyNames
.
addAll
(
staffStatisticsBo
.
getCompanyNames
());
postionIds
.
addAll
(
staffStatisticsBo
.
getCompnayIds
());
postionNames
.
addAll
(
staffStatisticsBo
.
getPostionNames
());
staffStatisticsBo
.
setCompnayIds
(
compnayIds
);
staffStatisticsBo
.
setCompanyNames
(
companyNames
.
stream
().
distinct
().
collect
(
Collectors
.
toList
()));
staffStatisticsBo
.
setPostionIds
(
postionIds
);
staffStatisticsBo
.
setPostionNames
(
postionNames
.
stream
().
distinct
().
collect
(
Collectors
.
toList
()));
staffStatisticsBo
.
setRoyaltyAmount
(
royaltyAmountAtomicReference
.
get
());
}
}
...
...
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