Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
Project
Project
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
耿迪迪
precision-effect
Commits
e4bb0978
Commit
e4bb0978
authored
Jun 24, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还款精度修改
parent
3ecea36c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
SettlementDebit.java
.../system/service/impl/debitSettlement/SettlementDebit.java
+1
-2
index.vue
precision-effect-web/src/views/debit/index.vue
+3
-2
No files found.
precision-effect-system/src/main/java/com/zehong/system/service/impl/debitSettlement/SettlementDebit.java
View file @
e4bb0978
...
@@ -14,7 +14,6 @@ import org.springframework.stereotype.Component;
...
@@ -14,7 +14,6 @@ import org.springframework.stereotype.Component;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.math.RoundingMode
;
import
java.text.DecimalFormat
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -56,7 +55,7 @@ public class SettlementDebit {
...
@@ -56,7 +55,7 @@ public class SettlementDebit {
this
.
tDebitCredit
=
tDebitCredit
;
this
.
tDebitCredit
=
tDebitCredit
;
//计算还款日期
//计算还款日期
long
time
=
tDebitCredit
.
getExpectedRepaymentDate
().
getTime
()
-
tDebitCredit
.
getSumInterestDate
().
getTime
();
long
time
=
tDebitCredit
.
getExpectedRepaymentDate
().
getTime
()
-
tDebitCredit
.
getSumInterestDate
().
getTime
();
int
days
=
Math
.
round
(
time
/
1000
/
60
/
60
/
24
);
long
days
=
Math
.
round
(((
double
)
time
)
/
1000
/
60
/
60
/
24
);
//还款部门
//还款部门
BigDecimal
repayAmount
=
tDebitCredit
.
getLittleTotal
().
multiply
(
new
BigDecimal
(
1
+
0.08
/
360
*
days
)).
setScale
(
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
repayAmount
=
tDebitCredit
.
getLittleTotal
().
multiply
(
new
BigDecimal
(
1
+
0.08
/
360
*
days
)).
setScale
(
2
,
RoundingMode
.
HALF_UP
);
tDebitCredit
.
setRealPaymentDate
(
new
Date
());
tDebitCredit
.
setRealPaymentDate
(
new
Date
());
...
...
precision-effect-web/src/views/debit/index.vue
View file @
e4bb0978
...
@@ -200,8 +200,9 @@
...
@@ -200,8 +200,9 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"小写合计"
prop=
"littleTotal"
>
<el-form-item
label=
"小写合计"
prop=
"littleTotal"
>
<el-input
v-model=
"form.littleTotal"
placeholder=
"请输入小写合计(精确到分)"
@
blur=
"getCapitalTotal"
<el-input-number
v-model=
"form.littleTotal"
:precision=
"2"
@
blur=
"getCapitalTotal"
style=
"width: 100%"
/>
oninput=
"value=value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')"
/>
<!--
<el-input
v-model=
"form.littleTotal"
placeholder=
"请输入小写合计(精确到分)"
@
blur=
"getCapitalTotal"
oninput=
"value=value.replace(/^\D*([0-9]+\.[0-9]
{0,2}).*$/,'$1')"/>-->
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
...
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