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
c719570f
Commit
c719570f
authored
Nov 25, 2020
by
lzxry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
35c1a573
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ShareIncomeServiceImpl.java
...main/java/common/service/impl/ShareIncomeServiceImpl.java
+10
-0
No files found.
src/main/java/common/service/impl/ShareIncomeServiceImpl.java
View file @
c719570f
...
...
@@ -389,6 +389,15 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
create
,
//录入日
create
.
dayOfMonth
().
withMinimumValue
()
//录入月1日
};
if
(
selected
[
1
].
isBefore
(
contractPart
[
0
])){
contract
.
setUnitPrice
(
0.0
);
contract
.
setIntervaIncomeShare
(
0L
);
contract
.
setAdjustmentFund
(
0L
);
contract
.
setIncomeShareAll
(
contract
.
getIntervaIncomeShare
());
contract
.
setClickFlow
(
0.0
);
contract
.
setIncomeGross
(
0L
);
contracts
.
remove
(
contract
);
//移出列表
}
else
if
(!
contract
.
getPriceLevel
().
equals
(
Constant
.
tkioPriceLevelNotLimit
)){
boolean
isLater
=
true
;
if
(!
isLateContract
){
//正常合同
...
...
@@ -551,6 +560,7 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
int
contractAllDay
=
getDayRange
(
contractPart
[
0
],
contractPart
[
1
])
+
1
;
//合同总天数
BigDecimal
dayShareIncome
=
new
BigDecimal
(
totalprice
/
contractAllDay
)
.
setScale
(
16
,
BigDecimal
.
ROUND_HALF_UP
);
contract
.
setUnitPrice
(
dayShareIncome
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
());
//设置不限量套餐的单价
int
betweenMonth
=
Months
.
monthsBetween
(
contractPart
[
0
],
creatPoints
[
0
]).
getMonths
();
//时间范围内用于计算分摊金额的天数
...
...
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