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
c871e1a7
Commit
c871e1a7
authored
Jan 05, 2021
by
hanghang.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前段新增字段payGiftVer支付有礼版本号,订单接收转换为ver传给促销
parent
ebcef393
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderVo.java
+5
-0
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+6
-4
No files found.
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderVo.java
View file @
c871e1a7
...
@@ -81,4 +81,9 @@ public class QueryOrderVo {
...
@@ -81,4 +81,9 @@ public class QueryOrderVo {
*/
*/
private
String
cardCode
;
private
String
cardCode
;
/**
* 支付有礼 版本号 20210105新增字段
*/
private
Integer
payGiftVer
;
}
}
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
c871e1a7
...
@@ -935,7 +935,7 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -935,7 +935,7 @@ public class OrderServiceImpl implements Orderservice {
// 所以在这个地方排除掉coco,在下边单独实现
// 所以在这个地方排除掉coco,在下边单独实现
//参与支付有礼活动
//参与支付有礼活动
if
(!
cocoPartnerId
.
contains
(
queryOrderVo
.
getPartnerId
()))
{
if
(!
cocoPartnerId
.
contains
(
queryOrderVo
.
getPartnerId
()))
{
joinPayGift
(
queryOrderVo
.
getSessionId
(),
queryOrderResponseVo
,
partnerId
);
joinPayGift
(
queryOrderVo
.
getSessionId
(),
queryOrderResponseVo
,
partnerId
,
queryOrderVo
.
getPayGiftVer
()
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -948,7 +948,7 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -948,7 +948,7 @@ public class OrderServiceImpl implements Orderservice {
if
(
cocoPartnerId
.
contains
(
queryOrderVo
.
getPartnerId
()))
{
if
(
cocoPartnerId
.
contains
(
queryOrderVo
.
getPartnerId
()))
{
queryOrderResponseVos
.
forEach
(
queryOrderResponseVo
->
{
queryOrderResponseVos
.
forEach
(
queryOrderResponseVo
->
{
try
{
try
{
joinPayGift
(
queryOrderVo
.
getSessionId
(),
queryOrderResponseVo
,
partnerId
);
joinPayGift
(
queryOrderVo
.
getSessionId
(),
queryOrderResponseVo
,
partnerId
,
null
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtil
.
error
(
"coco_queryOrders_activity_error"
,
gson
.
toJson
(
queryOrdersDto
),
gson
.
toJson
(
queryOrderResponseVo
),
e
);
LogUtil
.
error
(
"coco_queryOrders_activity_error"
,
gson
.
toJson
(
queryOrdersDto
),
gson
.
toJson
(
queryOrderResponseVo
),
e
);
...
@@ -1286,7 +1286,7 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -1286,7 +1286,7 @@ public class OrderServiceImpl implements Orderservice {
}
}
//参与支付有礼活动
//参与支付有礼活动
private
void
joinPayGift
(
String
sessionId
,
QueryOrderResponseVo
queryOrderResponseVo
,
String
partnerId
)
{
private
void
joinPayGift
(
String
sessionId
,
QueryOrderResponseVo
queryOrderResponseVo
,
String
partnerId
,
Integer
payGiftVer
)
{
PayGitCheckAndJoinRequestDto
payGitRequestDto
=
new
PayGitCheckAndJoinRequestDto
();
PayGitCheckAndJoinRequestDto
payGitRequestDto
=
new
PayGitCheckAndJoinRequestDto
();
payGitRequestDto
.
setStoreId
(
queryOrderResponseVo
.
getShopId
());
payGitRequestDto
.
setStoreId
(
queryOrderResponseVo
.
getShopId
());
payGitRequestDto
.
setSessionId
(
sessionId
);
payGitRequestDto
.
setSessionId
(
sessionId
);
...
@@ -1308,6 +1308,8 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -1308,6 +1308,8 @@ public class OrderServiceImpl implements Orderservice {
payGitRequestDto
.
setOrderWay
(
2
);
payGitRequestDto
.
setOrderWay
(
2
);
}
}
payGitRequestDto
.
setVer
(
payGiftVer
);
//coco业务默认传值1
if
(
cocoPartnerId
.
contains
(
partnerId
))
{
if
(
cocoPartnerId
.
contains
(
partnerId
))
{
payGitRequestDto
.
setVer
(
1
);
payGitRequestDto
.
setVer
(
1
);
}
}
...
@@ -1482,7 +1484,7 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -1482,7 +1484,7 @@ public class OrderServiceImpl implements Orderservice {
// 支付有礼
// 支付有礼
// 目前只有coco在订单详情参加支付有礼,且不检查订单的状态
// 目前只有coco在订单详情参加支付有礼,且不检查订单的状态
if
(
cocoPartnerId
.
contains
(
partnerId
))
{
if
(
cocoPartnerId
.
contains
(
partnerId
))
{
joinPayGift
(
sessionId
,
queryOrderResponseVo
,
partnerId
);
joinPayGift
(
sessionId
,
queryOrderResponseVo
,
partnerId
,
null
);
}
}
...
...
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