记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
4414eac5
Commit
4414eac5
authored
Jan 09, 2024
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO 手续费计算改成 按照实付金额计算
parent
862088b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
KylinOrderTicketsRefundServiceImpl.java
...ylin/service/impl/KylinOrderTicketsRefundServiceImpl.java
+5
-4
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsRefundServiceImpl.java
View file @
4414eac5
...
...
@@ -103,9 +103,9 @@ public class KylinOrderTicketsRefundServiceImpl {
}
item
.
setPriceActual
(
orderTicketVo
.
getPriceActual
().
subtract
(
orderTicketVo
.
getPriceExpress
()).
divide
(
BigDecimal
.
valueOf
(
orderTicketVo
.
getNumber
()),
2
,
BigDecimal
.
ROUND_HALF_UP
));
item
.
setPriceCanRefund
(
dataUtils
.
getCanRefundOrderEntitiesPrice
(
orderTicketVo
,
kylinOrderRefundsVoBaseList
,
item
.
getOrderTicketEntitiesId
()));
// 手续费处理
// 手续费处理
TODO 手续费计算改成 按照实付金额计算
BigDecimal
chargesRatio
=
getChargesRatio
(
orderTicketVo
.
getUseStart
(),
performanceVo
.
getIsRefundPoundage
(
dataUtils
.
getRefundPoundage
(
1
,
performanceVo
.
getPerformancesId
()).
size
()),
performanceVo
.
getPerformancesId
());
BigDecimal
chargesPrice
=
item
.
getPrice
CanRefund
().
multiply
(
chargesRatio
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
chargesPrice
=
item
.
getPrice
Actual
().
multiply
(
chargesRatio
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
item
.
setPriceCanRefund
(
item
.
getPriceCanRefund
().
subtract
(
chargesPrice
));
item
.
setChargesRatio
(
chargesRatio
);
item
.
setChargesPrice
(
chargesPrice
);
...
...
@@ -233,9 +233,10 @@ public class KylinOrderTicketsRefundServiceImpl {
return
ResponseDto
.
failure
(
"申请金额不得小于0"
);
}
// 手续费处理
BigDecimal
singlePrice
=
orderTicketVo
.
getPriceActual
().
subtract
(
orderTicketVo
.
getPriceExpress
()).
divide
(
BigDecimal
.
valueOf
(
orderTicketVo
.
getNumber
()),
2
,
BigDecimal
.
ROUND_HALF_UP
);
// 手续费处理 TODO 修改了手续费根据票单算
BigDecimal
chargesRatio
=
getChargesRatio
(
orderTicketVo
.
getUseStart
(),
performanceVo
.
getIsRefundPoundage
(
dataUtils
.
getRefundPoundage
(
1
,
performanceVo
.
getPerformancesId
()).
size
()),
performanceVo
.
getPerformancesId
());
BigDecimal
priceCharges
=
refundS
inglePrice
.
multiply
(
chargesRatio
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
priceCharges
=
s
inglePrice
.
multiply
(
chargesRatio
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
refundSinglePrice
=
refundSinglePrice
.
subtract
(
priceCharges
);
if
(
refundSinglePrice
.
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
return
ResponseDto
.
failure
(
"申请金额不得小于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