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
2480be39
Commit
2480be39
authored
Nov 27, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staff-statistics' into dev
parents
c3300238
312e435e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
StaffStatisticsBiz.java
...github/wxiaoqi/security/admin/biz/StaffStatisticsBiz.java
+2
-2
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/StaffStatisticsBiz.java
View file @
2480be39
...
...
@@ -365,14 +365,14 @@ public class StaffStatisticsBiz {
for
(
AppUserSellingWaterDTO
waterDTO
:
appUserSellingWaterDTOS
)
{
if
(
waterDTO
.
getStatus
()
==
0
)
{
royaltyAmount
=
royaltyAmount
.
add
(
waterDTO
.
getCommission
());
totalAmount
=
totalAmount
.
add
(
waterDTO
.
getCommission
().
divide
(
new
BigDecimal
(
String
.
valueOf
(
waterDTO
.
getExtract
()/
100.00
))));
totalAmount
=
totalAmount
.
add
(
waterDTO
.
getCommission
().
divide
(
new
BigDecimal
(
String
.
valueOf
(
waterDTO
.
getExtract
()/
100.00
))
,
BigDecimal
.
ROUND_HALF_UP
));
inAmount
=
inAmount
.
add
(
waterDTO
.
getCommission
());
isCommissionZero
=
waterDTO
.
getCommission
().
intValue
()==
0
;
}
if
(
waterDTO
.
getStatus
()
==
1
)
{
royaltyAmount
=
royaltyAmount
.
subtract
(
waterDTO
.
getCommission
());
totalAmount
=
totalAmount
.
subtract
(
waterDTO
.
getCommission
().
divide
(
new
BigDecimal
(
String
.
valueOf
(
waterDTO
.
getExtract
()/
100.00
))));
totalAmount
=
totalAmount
.
subtract
(
waterDTO
.
getCommission
().
divide
(
new
BigDecimal
(
String
.
valueOf
(
waterDTO
.
getExtract
()/
100.00
))
,
BigDecimal
.
ROUND_HALF_UP
));
outAmount
=
outAmount
.
add
(
waterDTO
.
getCommission
());
isCommissionZero
=!
isCommissionZero
;
}
...
...
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