记得上下班打卡 | 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
09956138
Commit
09956138
authored
Oct 13, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
newStatus == KylinTableStatusConst.ORDER_STATUS4再退券
parent
e46aab62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
19 deletions
+21
-19
KylinRefundsStatusServiceImpl.java
...latform/service/refund/KylinRefundsStatusServiceImpl.java
+21
-19
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/refund/KylinRefundsStatusServiceImpl.java
View file @
09956138
...
...
@@ -230,26 +230,28 @@ public class KylinRefundsStatusServiceImpl {
}
}
// 退所有优惠券 提前购优惠卷不退
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderRelations
.
getPerformanceId
());
if
(
performanceVo
.
getIsRefundVoucher
()
>
0
)
{
ArrayList
<
KylinOrderCoupons
>
orderCoupon
=
dataUtils
.
getOrderCoupon
(
orderTicketsId
);
if
(!
CollectionUtil
.
isEmpty
(
orderCoupon
))
{
BackCouponParam
param
=
BackCouponParam
.
getNew
();
List
<
String
>
uCouponIds
=
orderCoupon
.
stream
().
filter
(
r
->
r
.
getCouponType
()
!=
101
).
map
(
KylinOrderCoupons
->
KylinOrderCoupons
.
getCouponCode
()).
collect
(
Collectors
.
toList
());
String
uCouponIdsStr
=
Joiner
.
on
(
","
).
join
(
uCouponIds
);
param
.
setuCouponIds
(
uCouponIdsStr
);
param
.
setUid
(
orderInfo
.
getUserId
());
if
(
newStatus
==
KylinTableStatusConst
.
ORDER_STATUS4
)
{
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderRelations
.
getPerformanceId
());
if
(
performanceVo
.
getIsRefundVoucher
()
>
0
)
{
ArrayList
<
KylinOrderCoupons
>
orderCoupon
=
dataUtils
.
getOrderCoupon
(
orderTicketsId
);
if
(!
CollectionUtil
.
isEmpty
(
orderCoupon
))
{
BackCouponParam
param
=
BackCouponParam
.
getNew
();
List
<
String
>
uCouponIds
=
orderCoupon
.
stream
().
filter
(
r
->
r
.
getCouponType
()
!=
101
).
map
(
KylinOrderCoupons
->
KylinOrderCoupons
.
getCouponCode
()).
collect
(
Collectors
.
toList
());
String
uCouponIdsStr
=
Joiner
.
on
(
","
).
join
(
uCouponIds
);
param
.
setuCouponIds
(
uCouponIdsStr
);
param
.
setUid
(
orderInfo
.
getUserId
());
ArrayList
<
BackCouponParam
>
params
=
new
ArrayList
();
params
.
add
(
param
);
String
jsonString
=
JSON
.
toJSONString
(
params
);
log
.
info
(
"订单退款回调orderTicketRefunded-退所有优惠券:[orderTicketsId={}, uCouponIdsStr={}, uid={}, candyUrl={}]"
,
orderTicketsId
,
uCouponIdsStr
,
orderInfo
.
getUserId
(),
candyUrl
);
try
{
String
returnData
=
HttpUtil
.
postRaw
(
candyUrl
+
"/candy-coupon/useBack"
,
jsonString
,
null
);
log
.
info
(
"订单退款回调退券结果:[returnData={}]"
,
returnData
);
}
catch
(
Exception
e
)
{
log
.
info
(
"订单退款回调退券异常:[errorMsg={}, e={}]"
,
e
.
getMessage
(),
e
);
ArrayList
<
BackCouponParam
>
params
=
new
ArrayList
();
params
.
add
(
param
);
String
jsonString
=
JSON
.
toJSONString
(
params
);
log
.
info
(
"订单退款回调orderTicketRefunded-退所有优惠券:[orderTicketsId={}, uCouponIdsStr={}, uid={}, candyUrl={}]"
,
orderTicketsId
,
uCouponIdsStr
,
orderInfo
.
getUserId
(),
candyUrl
);
try
{
String
returnData
=
HttpUtil
.
postRaw
(
candyUrl
+
"/candy-coupon/useBack"
,
jsonString
,
null
);
log
.
info
(
"订单退款回调退券结果:[returnData={}]"
,
returnData
);
}
catch
(
Exception
e
)
{
log
.
info
(
"订单退款回调退券异常:[errorMsg={}, e={}]"
,
e
.
getMessage
(),
e
);
}
}
}
}
...
...
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