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
6c21e29a
Commit
6c21e29a
authored
Jun 01, 2020
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
919f3ba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+3
-0
No files found.
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
6c21e29a
...
...
@@ -516,6 +516,7 @@ public class ContractServiceImpl implements ContractService {
this
.
calculateShareIncome
(
resource
);
//判断是否计算调整金
resource
=
contractRepository
.
save
(
resource
);
this
.
saveContractRelations
(
resource
,
resource
.
getId
());
...
...
@@ -542,6 +543,8 @@ public class ContractServiceImpl implements ContractService {
int
day1
=
Days
.
daysBetween
(
contractStart
,
contractEnd
).
getDays
();
int
day2
=
Days
.
daysBetween
(
contractStart
,
new
DateTime
().
plusMonths
(-
1
).
dayOfMonth
().
withMaximumValue
()).
getDays
();
resource
.
setAdjustmentFund
(
resource
.
getMoney
()
*
6
/
day1
*
day2
);
// 此处为 *100的结果
}
else
{
resource
.
setAdjustmentFund
(
0L
);
}
}
...
...
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