Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
2e6af146
Commit
2e6af146
authored
May 29, 2020
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分摊
parent
b3b6294d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
ContractController.java
src/main/java/common/controller/ContractController.java
+5
-5
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+7
-2
No files found.
src/main/java/common/controller/ContractController.java
View file @
2e6af146
...
@@ -452,14 +452,14 @@ public class ContractController {
...
@@ -452,14 +452,14 @@ public class ContractController {
sb
.
append
(
c
.
getMyBodyName
())
sb
.
append
(
c
.
getMyBodyName
())
.
append
(
c
.
getCustomerBody
())
.
append
(
c
.
getCustomerBody
())
.
append
(
c
.
getContractCode
())
.
append
(
c
.
getContractCode
())
.
append
(
df
.
format
(
c
.
getMoney
())
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getMoney
())).
append
(
"\""
)
.
append
(
df
.
format
(
c
.
getIncomeExcludingTax
()
*
1.0
/
100
)
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getIncomeExcludingTax
()
*
1.0
/
100
)).
append
(
"\""
)
.
append
(
c
.
getStartDate
())
.
append
(
c
.
getStartDate
())
.
append
(
c
.
getEndDate
())
.
append
(
c
.
getEndDate
())
.
append
(
c
.
getIntervalUseDays
())
.
append
(
c
.
getIntervalUseDays
())
.
append
(
df
.
format
(
c
.
getIntervaIncomeShare
()
*
1.0
/
100
)
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getIntervaIncomeShare
()
*
1.0
/
100
)).
append
(
"\""
)
.
append
(
c
.
getAdjustmentFund
()
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getAdjustmentFund
())).
append
(
"\""
)
.
append
(
df
.
format
(
c
.
getIncomeShareAll
()
*
1.0
/
100
)
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getIncomeShareAll
()
*
1.0
/
100
)).
append
(
"\""
)
.
append
(
"\r\n"
);
.
append
(
"\r\n"
);
}
}
}
}
...
...
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
2e6af146
...
@@ -2348,11 +2348,16 @@ public class ContractServiceImpl implements ContractService {
...
@@ -2348,11 +2348,16 @@ public class ContractServiceImpl implements ContractService {
contracts
=
contractRepository
.
findShareContranctByDate
(
startDate
,
endDate
,
platform
);
contracts
=
contractRepository
.
findShareContranctByDate
(
startDate
,
endDate
,
platform
);
}
}
List
<
ContractBody
>
bodies
=
contractBodyRepository
.
findAll
();
Map
<
String
,
String
>
bodiesNameMap
=
bodies
.
stream
().
collect
(
Collectors
.
toMap
(
ContractBody:
:
getCode
,
ContractBody:
:
getName
,
(
v1
,
v2
)
->
v1
));
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"###,###.00"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"###,###.00"
);
contracts
.
forEach
(
v
->
{
contracts
.
forEach
(
v
->
{
//以下结果统一 *100
v
.
setMyBodyName
(
bodiesNameMap
.
get
(
v
.
getMyBodyCode
()));
//以下结果统一 *100
//不含稅收入
//不含稅收入
// Long excludTax = v.getMoney() * 6 / 100;
// Long excludTax = v.getMoney() * 6 / 100;
Long
excludTax
=
(
long
)
(
v
.
getMoney
()
*
100
*
0.06
);
Long
excludTax
=
(
long
)
(
v
.
getMoney
()
*
100
*
0.06
);
...
@@ -2417,7 +2422,7 @@ public class ContractServiceImpl implements ContractService {
...
@@ -2417,7 +2422,7 @@ public class ContractServiceImpl implements ContractService {
// System.out.println(Days.daysBetween(new DateTime(dateStr2), new DateTime(dateStr1)).getDays());
// System.out.println(Days.daysBetween(new DateTime(dateStr2), new DateTime(dateStr1)).getDays());
System
.
out
.
println
(
10023L
*
1.0
/
100
);
System
.
out
.
println
(
10023L
*
1.0
/
100
);
System
.
out
.
println
((
129
*
100
/
111
)
*
1.0
/
100
);
System
.
out
.
println
((
129
*
100
/
111
)
*
1.0
/
100
);
System
.
out
.
println
();
System
.
out
.
println
();
...
...
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