Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
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
huluobin
bailuntec-cost
Commits
d3dd3162
Commit
d3dd3162
authored
Feb 05, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 更新
parent
4364d164
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AppCostServiceImpl.java
...lt/other/module/cost/service/impl/AppCostServiceImpl.java
+3
-3
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/AppCostServiceImpl.java
View file @
d3dd3162
...
...
@@ -102,14 +102,14 @@ public class AppCostServiceImpl implements AppCostService {
public
static
BigDecimal
rece
(
BigDecimal
amount
,
int
months
)
{
if
(
months
>
1
)
{
return
rece
(
amount
.
add
(
new
BigDecimal
(
"
200"
)).
multiply
(
new
BigDecimal
(
"1.01
"
)),
months
-
1
);
return
rece
(
amount
.
add
(
new
BigDecimal
(
"
1000"
)).
multiply
(
new
BigDecimal
(
"1.03
"
)),
months
-
1
);
}
else
{
return
amount
.
add
(
new
BigDecimal
(
"
200"
)).
multiply
(
new
BigDecimal
(
"1.01
"
));
return
amount
.
add
(
new
BigDecimal
(
"
1000"
)).
multiply
(
new
BigDecimal
(
"1.03
"
));
}
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
rece
(
new
BigDecimal
(
"
40000"
),
20
0
));
System
.
out
.
println
(
rece
(
new
BigDecimal
(
"
30000"
),
5
0
));
}
}
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