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
c3300238
Commit
c3300238
authored
Nov 27, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staff-statistics' into dev
parents
164b5c08
8ffb9ed6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
StaffStatisticsBiz.java
...github/wxiaoqi/security/admin/biz/StaffStatisticsBiz.java
+4
-4
StaffStatisticsBiz.java
.../java/com/xxfc/platform/order/biz/StaffStatisticsBiz.java
+3
-2
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/StaffStatisticsBiz.java
View file @
c3300238
...
@@ -87,7 +87,7 @@ public class StaffStatisticsBiz {
...
@@ -87,7 +87,7 @@ public class StaffStatisticsBiz {
Row
ctpRow
=
sheet
.
createRow
(
1
);
Row
ctpRow
=
sheet
.
createRow
(
1
);
Cell
ctpCell
=
ctpRow
.
createCell
(
0
);
Cell
ctpCell
=
ctpRow
.
createCell
(
0
);
//
缺少判断 公司 身份 时间
//
String
companyName
=
StringUtils
.
hasText
(
staffStatisticsFindDTO
.
getCompanyName
())
?
staffStatisticsFindDTO
.
getCompanyName
()
:
"全集团"
;
String
companyName
=
StringUtils
.
hasText
(
staffStatisticsFindDTO
.
getCompanyName
())
?
staffStatisticsFindDTO
.
getCompanyName
()
:
"全集团"
;
String
postionName
=
StringUtils
.
hasText
(
staffStatisticsFindDTO
.
getPostionName
())
?
staffStatisticsFindDTO
.
getPostionName
()
:
"全部员工"
;
String
postionName
=
StringUtils
.
hasText
(
staffStatisticsFindDTO
.
getPostionName
())
?
staffStatisticsFindDTO
.
getPostionName
()
:
"全部员工"
;
String
startTimeStr
=
staffStatisticsFindDTO
.
getStartDate
()==
null
?
""
:
DateUtil
.
format
(
staffStatisticsFindDTO
.
getStartDate
(),
"yyyy-MM-dd HH:mm:ss"
);
String
startTimeStr
=
staffStatisticsFindDTO
.
getStartDate
()==
null
?
""
:
DateUtil
.
format
(
staffStatisticsFindDTO
.
getStartDate
(),
"yyyy-MM-dd HH:mm:ss"
);
...
@@ -365,20 +365,20 @@ public class StaffStatisticsBiz {
...
@@ -365,20 +365,20 @@ public class StaffStatisticsBiz {
for
(
AppUserSellingWaterDTO
waterDTO
:
appUserSellingWaterDTOS
)
{
for
(
AppUserSellingWaterDTO
waterDTO
:
appUserSellingWaterDTOS
)
{
if
(
waterDTO
.
getStatus
()
==
0
)
{
if
(
waterDTO
.
getStatus
()
==
0
)
{
royaltyAmount
=
royaltyAmount
.
add
(
waterDTO
.
getCommission
());
royaltyAmount
=
royaltyAmount
.
add
(
waterDTO
.
getCommission
());
totalAmount
=
totalAmount
.
add
(
waterDTO
.
get
Price
(
));
totalAmount
=
totalAmount
.
add
(
waterDTO
.
get
Commission
().
divide
(
new
BigDecimal
(
String
.
valueOf
(
waterDTO
.
getExtract
()/
100.00
))
));
inAmount
=
inAmount
.
add
(
waterDTO
.
getCommission
());
inAmount
=
inAmount
.
add
(
waterDTO
.
getCommission
());
isCommissionZero
=
waterDTO
.
getCommission
().
intValue
()==
0
;
isCommissionZero
=
waterDTO
.
getCommission
().
intValue
()==
0
;
}
}
if
(
waterDTO
.
getStatus
()
==
1
)
{
if
(
waterDTO
.
getStatus
()
==
1
)
{
royaltyAmount
=
royaltyAmount
.
subtract
(
waterDTO
.
getCommission
());
royaltyAmount
=
royaltyAmount
.
subtract
(
waterDTO
.
getCommission
());
totalAmount
=
totalAmount
.
subtract
(
waterDTO
.
get
Price
(
));
totalAmount
=
totalAmount
.
subtract
(
waterDTO
.
get
Commission
().
divide
(
new
BigDecimal
(
String
.
valueOf
(
waterDTO
.
getExtract
()/
100.00
))
));
outAmount
=
outAmount
.
add
(
waterDTO
.
getCommission
());
outAmount
=
outAmount
.
add
(
waterDTO
.
getCommission
());
isCommissionZero
=!
isCommissionZero
;
isCommissionZero
=!
isCommissionZero
;
}
}
}
}
if
(
appUserSellingWaterDTOS
.
size
()==
1
||
inAmount
.
subtract
(
outAmount
).
int
Value
()>
0
||
isCommissionZero
){
if
(
appUserSellingWaterDTOS
.
size
()==
1
||
inAmount
.
subtract
(
outAmount
).
double
Value
()>
0
||
isCommissionZero
){
orderCounter
.
incrementAndGet
();
orderCounter
.
incrementAndGet
();
}
}
}
}
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/StaffStatisticsBiz.java
View file @
c3300238
...
@@ -229,13 +229,14 @@ public class StaffStatisticsBiz extends BaseBiz<StaffStatisticsMapper, StaffStat
...
@@ -229,13 +229,14 @@ public class StaffStatisticsBiz extends BaseBiz<StaffStatisticsMapper, StaffStat
for
(
AppUserSellingWaterDTO
waterDTO
:
waterDTOS
)
{
for
(
AppUserSellingWaterDTO
waterDTO
:
waterDTOS
)
{
if
(
sellingWaterEntry
.
getKey
()
==
0
){
if
(
sellingWaterEntry
.
getKey
()
==
0
){
royaltyAmount
=
royaltyAmount
.
add
(
waterDTO
.
getCommission
());
royaltyAmount
=
royaltyAmount
.
add
(
waterDTO
.
getCommission
());
totalAmount
=
totalAmount
.
add
(
waterDTO
.
get
Price
(
));
totalAmount
=
totalAmount
.
add
(
waterDTO
.
get
Commission
().
divide
(
new
BigDecimal
(
String
.
valueOf
(
waterDTO
.
getExtract
()))
));
orderCounter
.
incrementAndGet
();
orderCounter
.
incrementAndGet
();
}
}
if
(
sellingWaterEntry
.
getKey
()==
1
){
if
(
sellingWaterEntry
.
getKey
()==
1
){
royaltyAmount
=
royaltyAmount
.
subtract
(
waterDTO
.
getCommission
());
royaltyAmount
=
royaltyAmount
.
subtract
(
waterDTO
.
getCommission
());
totalAmount
=
totalAmount
.
subtract
(
waterDTO
.
getPrice
());
totalAmount
=
totalAmount
.
subtract
(
waterDTO
.
getCommission
().
divide
(
new
BigDecimal
(
String
.
valueOf
(
waterDTO
.
getExtract
()/
100.00
))));
}
}
}
}
staffStatisticsResultMap
.
put
(
TOTAL_AMOUNT_VAL
,
totalAmount
);
staffStatisticsResultMap
.
put
(
TOTAL_AMOUNT_VAL
,
totalAmount
);
...
...
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