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
53e9f5d0
Commit
53e9f5d0
authored
Feb 06, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 更新
parent
d3dd3162
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
AppCostServiceImpl.java
...lt/other/module/cost/service/impl/AppCostServiceImpl.java
+3
-3
CostTypeServiceImpl.java
...t/other/module/cost/service/impl/CostTypeServiceImpl.java
+0
-1
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/AppCostServiceImpl.java
View file @
53e9f5d0
...
...
@@ -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
(
"
1000"
)).
multiply
(
new
BigDecimal
(
"1.03
"
)),
months
-
1
);
return
rece
(
amount
.
add
(
new
BigDecimal
(
"
5000"
)).
multiply
(
new
BigDecimal
(
"1.1
"
)),
months
-
1
);
}
else
{
return
amount
.
add
(
new
BigDecimal
(
"
1000"
)).
multiply
(
new
BigDecimal
(
"1.03
"
));
return
amount
.
add
(
new
BigDecimal
(
"
5000"
)).
multiply
(
new
BigDecimal
(
"1.1
"
));
}
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
rece
(
new
BigDecimal
(
"
30000"
),
50
));
System
.
out
.
println
(
rece
(
new
BigDecimal
(
"
40000"
),
12
));
}
}
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostTypeServiceImpl.java
View file @
53e9f5d0
...
...
@@ -81,7 +81,6 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
this
.
save
(
lendCostTypeDomain
);
}
}
@Override
...
...
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