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
780ab68d
Commit
780ab68d
authored
Jun 02, 2020
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6c21e29a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+4
-4
No files found.
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
780ab68d
...
...
@@ -2429,11 +2429,11 @@ public class ContractServiceImpl implements ContractService {
// 时间范围是否包含合同结束日期
boolean
containEnd
=
formEnd
.
compareTo
(
contractEnd
)
>
0
;
// 时间范围是否包含合同结束开始日期
boolean
containStart
=
formStart
.
compareTo
(
contractStart
)
>
0
;
boolean
containStart
=
formStart
.
compareTo
(
contractStart
)
<=
0
;
//所选结束时间包含合同结束时间 取合同结束时间 反之 取所选结束时间
DateTime
usedEnd
=
containEnd
?
contractEnd
:
formEnd
;
//所选开始时间包含合同开始时间 则取合同开始时间 反之 取所选开始时间
DateTime
usedStart
=
containStart
?
contract
End
:
formEnd
;
DateTime
usedStart
=
containStart
?
contract
Start
:
formStart
;
v
.
setIntervalUseDays
(
Days
.
daysBetween
(
contractStart
,
usedEnd
).
getDays
()
+
1
);
//区间使用天数
...
...
@@ -2449,7 +2449,7 @@ public class ContractServiceImpl implements ContractService {
if
(
containEnd
)
{
//时间范围合同结束时间时 分两部分计算
//第一部分
intervalIncome
=
(
v
.
getMoney
()
*
100
)
/
contracAllDays
*
(
contractFormRange
-
1
);
intervalIncome
=
v
.
getIncomeExcludingTax
(
)
/
contracAllDays
*
(
contractFormRange
-
1
);
//第二部分
Long
intervalIncomePart2
=
(
long
)
(
v
.
getMoney
()
-
(
v
.
getMoney
()
*
100
/
contracAllDays
*
(
contracAllDays
-
1
))
*
1.0
/
100
)
*
100
;
...
...
@@ -2458,7 +2458,7 @@ public class ContractServiceImpl implements ContractService {
v
.
setIntervaIncomeShare
(
intervalIncome
);
}
else
{
intervalIncome
=
v
.
get
Money
()
*
100
/
contracAllDays
*
contractFormRange
;
intervalIncome
=
v
.
get
IncomeExcludingTax
()
/
contracAllDays
*
contractFormRange
;
v
.
setIntervaIncomeShare
(
intervalIncome
);
}
...
...
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