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
be30ab1f
Commit
be30ab1f
authored
Nov 01, 2021
by
蒋小洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断券包是否分账门店赋值
parent
ca473a20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
+4
-1
ordercenter-sdk/src/main/java/com/freemud/application/sdk/api/ordercenter/request/create/CreateOrderRequest.java
+3
-0
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
View file @
be30ab1f
...
...
@@ -343,7 +343,8 @@ public class SellCouponOrderServiceImpl implements OrderFactoryService {
if
((
wxAppStore
==
null
||
wxAppStore
.
getClientCode
()
==
null
))
{
return
ResponseUtil
.
error
(
ResponseCodeConstant
.
RESPONSE_ERROR_STR
,
"支付门店未配置"
);
}
createOrderRequest
.
setStoreId
(
wxAppStore
.
getStoreId
());
//唤起支付的门店需要根据虚拟商品的是否分账配置确定,如果不分账,还是用前端传的门店去唤起支付
createOrderRequest
.
setStoreId
(
createOrderRequest
.
getIsSplitAccount
()
!=
null
&&
createOrderRequest
.
getIsSplitAccount
()
==
1
?
wxAppStore
.
getStoreId
()
:
storeId
);
OrderBaseResp
<
OrderInfoReqs
>
orderInfoReqsBaseResponse
=
orderSdkService
.
createOrder
(
createOrderRequest
,
trackingNo
);
CreateOrderResponse
createOrderResponse
=
orderSdkAdapter
.
convent2NEWOrderInfoReqs
(
orderInfoReqsBaseResponse
);
if
(
createOrderResponse
==
null
||
createOrderResponse
.
getErrcode
()
!=
100
)
{
...
...
@@ -798,6 +799,8 @@ public class SellCouponOrderServiceImpl implements OrderFactoryService {
productBindingCouponType2
.
setActivityName
(
activeDetailVO
.
getActiveName
());
//新增是否分账,核销次数和券单价
productBindingCouponType2
.
setIsSplitAccount
(
productBindingCouponType
.
getIsSplitAccount
());
//分账的券包对应所有券都是一致,要么分账,要么不分账,循环赋值都是相同的
request
.
setIsSplitAccount
(
productBindingCouponType
.
getIsSplitAccount
());
productBindingCouponType2
.
setMaxRedeemTimes
(
productBindingCouponType
.
getMaxRedeemTimes
());
productBindingCouponType2
.
setPrice
(
productBindingCouponType
.
getPrice
());
productBindingCoupons
.
add
(
productBindingCouponType2
);
...
...
ordercenter-sdk/src/main/java/com/freemud/application/sdk/api/ordercenter/request/create/CreateOrderRequest.java
View file @
be30ab1f
...
...
@@ -226,6 +226,9 @@ public class CreateOrderRequest extends BaseRequest {
*/
private
List
<
ChooseGood
>
orderSendCouponRespList
;
//卖券订单,是否开启分账(0不开启,1开启)
private
Integer
isSplitAccount
;
@Data
public
static
class
ChooseGood
{
...
...
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