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
c3ddae29
Commit
c3ddae29
authored
Nov 27, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staff-statistics' into dev
parents
9f45f84d
3e08c06f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
StaffStatisticsBiz.java
...github/wxiaoqi/security/admin/biz/StaffStatisticsBiz.java
+4
-8
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/StaffStatisticsBiz.java
View file @
c3ddae29
...
...
@@ -99,10 +99,10 @@ 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
<>();
List
<
String
>
postionNames
=
new
ArrayList
<>(
staffStatisticsBo
.
getPostionNames
()
);
List
<
Integer
>
postionIds
=
new
ArrayList
<>(
staffStatisticsBo
.
getPostionIds
()
);
List
<
String
>
companyNames
=
new
ArrayList
<>(
staffStatisticsBo
.
getCompanyNames
()
);
List
<
Integer
>
compnayIds
=
new
ArrayList
<>(
staffStatisticsBo
.
getCompnayIds
()
);
userSellingWaterMap
.
forEach
((
K
,
V
)
->
{
if
(!
K
.
equals
(
stateGroup
))
{
String
[]
sates
=
K
.
split
(
"-"
);
...
...
@@ -128,10 +128,6 @@ 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
);
...
...
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