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
5 years ago
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分摊
parent
b3b6294d
master
…
0727_bugfix
1082_bugfix
1151_bugfix
1209_bugfix
1315_bugfix
1439_bugfix
1608_bugfix
1608_from_1619
1619_bugfix
1990_bugfix
2578_bugfix
2580_fix
bigfix_20201028
bugfix_1608_new
bugfix_1760
bugfix_master_1760
change_double
liushaowei
master_mv
mobvista_master
month_flow
No related merge requests found
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 {
sb
.
append
(
c
.
getMyBodyName
())
.
append
(
c
.
getCustomerBody
())
.
append
(
c
.
getContractCode
())
.
append
(
df
.
format
(
c
.
getMoney
())
)
.
append
(
df
.
format
(
c
.
getIncomeExcludingTax
()
*
1.0
/
100
)
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getMoney
())).
append
(
"\""
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getIncomeExcludingTax
()
*
1.0
/
100
)).
append
(
"\""
)
.
append
(
c
.
getStartDate
())
.
append
(
c
.
getEndDate
())
.
append
(
c
.
getIntervalUseDays
())
.
append
(
df
.
format
(
c
.
getIntervaIncomeShare
()
*
1.0
/
100
)
)
.
append
(
c
.
getAdjustmentFund
()
)
.
append
(
df
.
format
(
c
.
getIncomeShareAll
()
*
1.0
/
100
)
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getIntervaIncomeShare
()
*
1.0
/
100
)).
append
(
"\""
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getAdjustmentFund
())).
append
(
"\""
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getIncomeShareAll
()
*
1.0
/
100
)).
append
(
"\""
)
.
append
(
"\r\n"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
2e6af146
...
...
@@ -2348,11 +2348,16 @@ public class ContractServiceImpl implements ContractService {
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"
);
contracts
.
forEach
(
v
->
{
//以下结果统一 *100
v
.
setMyBodyName
(
bodiesNameMap
.
get
(
v
.
getMyBodyCode
()));
//以下结果统一 *100
//不含稅收入
// Long excludTax = v.getMoney() * 6 / 100;
Long
excludTax
=
(
long
)
(
v
.
getMoney
()
*
100
*
0.06
);
...
...
@@ -2417,7 +2422,7 @@ public class ContractServiceImpl implements ContractService {
// System.out.println(Days.daysBetween(new DateTime(dateStr2), new DateTime(dateStr1)).getDays());
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
();
...
...
This diff is collapsed.
Click to expand it.
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