Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
b5105340
Commit
b5105340
authored
Nov 30, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:混合支付 svc卡全额支付 直接核销优惠券
parent
5d6d1c9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
+10
-1
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+1
-1
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
View file @
b5105340
...
...
@@ -228,7 +228,16 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
}
// 下单成锁定劵,冻结失败提示下单失败并冲正库存积分等,判断支付渠道,积分和svc卡直接核销,无需锁定10102 = svc卡支付 || 支付金额小于等于0
if
((!
StringUtils
.
isEmpty
(
orderBean
.
getPayChannel
())
&&
orderBean
.
getPayChannel
().
equalsIgnoreCase
(
"10102"
))
||
orderBean
.
getAmount
()
<=
0
){
// 混合支付
OrderBean
.
OrderPayItem
svc
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
orderBean
.
getOrderPayItem
())
&&
orderBean
.
getOrderPayItem
().
size
()==
1
)
{
svc
=
orderBean
.
getOrderPayItem
().
stream
()
.
filter
(
e
->
e
.
getPayChannelType
()!=
null
&&
e
.
getPayChannelType
().
equals
(
PayChannelType
.
SVC
.
getIndex
().
intValue
()))
.
findFirst
()
.
orElse
(
null
);
}
//svc 或是混合svc支付直接核销
if
((!
StringUtils
.
isEmpty
(
orderBean
.
getPayChannel
())
&&
orderBean
.
getPayChannel
().
equalsIgnoreCase
(
"10102"
))
||
orderBean
.
getAmount
()
<=
0
||
(
svc
!=
null
)
){
// 核销优惠券,核销失败提示下单失败并冲正库存积分等
CouponRequest
couponVerificationRequest
=
orderSdkAdapter
.
convert2CouponVerificationRequest
(
orderBean
,
accounts
);
if
(
couponVerificationRequest
!=
null
){
...
...
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
b5105340
...
...
@@ -3235,7 +3235,7 @@ public class OrderServiceImpl implements Orderservice {
.
orElse
(
null
);
//现金+svc 现金
if
(
payPlatforms
.
size
()==
2
||
payPlatforms
.
size
()==
1
&&
cashPay
!=
null
)
{
if
(
payPlatforms
.
size
()==
2
||
(
payPlatforms
.
size
()==
1
&&
cashPay
!=
null
)
)
{
orderPayResponse
=
orderAdapter
.
convent2OrderCombPayResponse
(
combPayResponse
.
getData
().
getPayPlatformResponseList
(),
orderBean
.
getCompanyId
(),
storeId
);
orderPayResponse
.
setOpenId
(
paymentRequest
.
getOpenId
());
orderPayResponse
.
setWxAppid
(
paymentRequest
.
getWxAppId
());
...
...
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