记得上下班打卡 | 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
ca413949
Commit
ca413949
authored
Jan 05, 2022
by
jiangxiulong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/jxl_1214_refund' into dev_merchant
parents
a319da14
f916cf99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
KylinOrderTicketsRefundServiceImpl.java
...ylin/service/impl/KylinOrderTicketsRefundServiceImpl.java
+17
-1
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 @
ca413949
...
@@ -87,6 +87,22 @@ public class KylinOrderTicketsRefundServiceImpl {
...
@@ -87,6 +87,22 @@ public class KylinOrderTicketsRefundServiceImpl {
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
}
}
}
}
// 可退快递费
// 快递费 判断是否是最后一张入场人票 减去已经退的快递费
BigDecimal
canRefundPriceExpress
=
BigDecimal
.
valueOf
(
0
);
// 正在和已经退的快递票金额 正在和已经退的票数量
Integer
refundNum
=
0
;
BigDecimal
priceExpressOld
=
BigDecimal
.
valueOf
(
0
);
for
(
KylinOrderRefundsVo
refundVo
:
kylinOrderRefundsVoBaseList
)
{
int
status
=
refundVo
.
getStatus
();
if
(
status
!=
KylinTableStatusConst
.
ORDER_REFUND_STATUS_CANCEL
&&
status
!=
KylinTableStatusConst
.
ORDER_REFUND_STATUS_REJECT
)
{
//退款流程未完成和已完成的
refundNum
++;
priceExpressOld
=
priceExpressOld
.
add
(
refundVo
.
getPriceExpress
());
}
}
if
(
refundNum
+
1
==
orderTicketVo
.
getNumber
())
{
canRefundPriceExpress
=
orderTicketVo
.
getPriceExpress
().
subtract
(
priceExpressOld
);
}
// 入场人 数据脱敏/退款
// 入场人 数据脱敏/退款
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
List
<
KylinOrderTicketEntitiesPreRefundVo
>
kylinOrderTicketEntitiesPreRefundVos
=
ObjectUtil
.
getKylinOrderTicketEntitiesPreRefundVoArrayList
();
List
<
KylinOrderTicketEntitiesPreRefundVo
>
kylinOrderTicketEntitiesPreRefundVos
=
ObjectUtil
.
getKylinOrderTicketEntitiesPreRefundVoArrayList
();
...
@@ -103,7 +119,7 @@ public class KylinOrderTicketsRefundServiceImpl {
...
@@ -103,7 +119,7 @@ public class KylinOrderTicketsRefundServiceImpl {
// 手续费处理
// 手续费处理
BigDecimal
chargesRatio
=
getChargesRatio
(
orderTicketVo
.
getUseStart
(),
performanceVo
.
getIsRefundPoundage
());
BigDecimal
chargesRatio
=
getChargesRatio
(
orderTicketVo
.
getUseStart
(),
performanceVo
.
getIsRefundPoundage
());
BigDecimal
chargesPrice
=
item
.
getPriceCanRefund
().
multiply
(
chargesRatio
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
chargesPrice
=
item
.
getPriceCanRefund
().
multiply
(
chargesRatio
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
item
.
setPriceCanRefund
(
item
.
getPriceCanRefund
().
subtract
(
chargesPrice
));
item
.
setPriceCanRefund
(
item
.
getPriceCanRefund
().
subtract
(
chargesPrice
)
.
add
(
canRefundPriceExpress
)
);
item
.
setChargesRatio
(
chargesRatio
);
item
.
setChargesRatio
(
chargesRatio
);
item
.
setChargesPrice
(
chargesPrice
);
item
.
setChargesPrice
(
chargesPrice
);
...
...
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