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
18fb79bf
Commit
18fb79bf
authored
Jan 15, 2021
by
lzxry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cas合同总天数修复
parent
764b8868
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ShareIncomeServiceImpl.java
...main/java/common/service/impl/ShareIncomeServiceImpl.java
+5
-3
No files found.
src/main/java/common/service/impl/ShareIncomeServiceImpl.java
View file @
18fb79bf
...
@@ -221,14 +221,16 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
...
@@ -221,14 +221,16 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
contract
.
setIncomeExcludingTax
(
excludTax
);
contract
.
setIncomeExcludingTax
(
excludTax
);
BigDecimal
oneTimeRecognizedRevenue
=
null
;
BigDecimal
oneTimeRecognizedRevenue
=
null
;
BigDecimal
dailyRevenueRecognition
=
null
;
if
(
contract
.
getOneTime
()!=
null
&&
contract
.
getOneTime
()==
false
){
//处理cas是否计算一次性收入标识
if
(
contract
.
getOneTime
()!=
null
&&
contract
.
getOneTime
()==
false
){
//处理cas是否计算一次性收入标识
oneTimeRecognizedRevenue
=
new
BigDecimal
(
"0"
);
oneTimeRecognizedRevenue
=
new
BigDecimal
(
"0"
);
dailyRevenueRecognition
=
bigDecimal
.
multiply
(
new
BigDecimal
(
"100"
));
}
else
{
}
else
{
oneTimeRecognizedRevenue
=
bigDecimal
.
multiply
(
new
BigDecimal
(
"0.9"
));
oneTimeRecognizedRevenue
=
bigDecimal
.
multiply
(
new
BigDecimal
(
"90"
));
dailyRevenueRecognition
=
bigDecimal
.
multiply
(
new
BigDecimal
(
"10"
));
//0.1*100=10,前端拿到区间分摊收入/100得到最终的值
}
}
BigDecimal
dailyRevenueRecognition
=
bigDecimal
.
multiply
(
new
BigDecimal
(
"10"
));
//0.1*100=10,前端拿到区间分摊收入/100得到最终的值
contract
.
setOneTimeRecognizedRevenue
(
oneTimeRecognizedRevenue
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
());
contract
.
setOneTimeRecognizedRevenue
(
oneTimeRecognizedRevenue
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
());
int
contractAllDay
=
getDayRange
(
contract
Part
[
0
],
contract
Part
[
1
])
+
1
;
//合同总天数
int
contractAllDay
=
getDayRange
(
contract
ValidPart
[
0
],
contractValid
Part
[
1
])
+
1
;
//合同总天数
//处理精度
//处理精度
BigDecimal
dayShareIncome
=
dailyRevenueRecognition
.
divide
(
new
BigDecimal
(
String
.
valueOf
(
contractAllDay
)),
8
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
dayShareIncome
=
dailyRevenueRecognition
.
divide
(
new
BigDecimal
(
String
.
valueOf
(
contractAllDay
)),
8
,
BigDecimal
.
ROUND_HALF_UP
);
...
...
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