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
024b14d6
Commit
024b14d6
authored
Aug 18, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/qa' into qa
parents
e34be64e
b30021ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
20 deletions
+6
-20
order-application-service/src/main/java/cn/freemud/service/impl/CouponActivityServiceImpl.java
+2
-0
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+4
-20
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/CouponActivityServiceImpl.java
View file @
024b14d6
...
@@ -102,7 +102,9 @@ public class CouponActivityServiceImpl implements CouponActivityService {
...
@@ -102,7 +102,9 @@ public class CouponActivityServiceImpl implements CouponActivityService {
try
{
try
{
//71.券核销
//71.券核销
for
(
int
i
=
2
;
i
>=
0
;
i
--)
{
for
(
int
i
=
2
;
i
>=
0
;
i
--)
{
LogUtil
.
info
(
"核销券码开始=="
,
JSON
.
toJSONString
(
couponCodeVerificationDto
),
null
);
CouponCodeResponseDto
couponCodeResponseDto
=
couponOfflineClient
.
verification
(
couponCodeVerificationDto
);
CouponCodeResponseDto
couponCodeResponseDto
=
couponOfflineClient
.
verification
(
couponCodeVerificationDto
);
LogUtil
.
info
(
"核销券码返回=="
,
JSON
.
toJSONString
(
couponCodeVerificationDto
),
null
);
ThirdPartyLog
.
infoConvertJson
(
System
.
currentTimeMillis
(),
System
.
currentTimeMillis
(),
"/api"
,
couponCodeVerificationDto
,
couponCodeResponseDto
);
ThirdPartyLog
.
infoConvertJson
(
System
.
currentTimeMillis
(),
System
.
currentTimeMillis
(),
"/api"
,
couponCodeVerificationDto
,
couponCodeResponseDto
);
if
(
Objects
.
equals
(
couponCodeResponseDto
.
getStatusCode
(),
ResponseResult
.
SUCCESS
.
getCode
()))
{
if
(
Objects
.
equals
(
couponCodeResponseDto
.
getStatusCode
(),
ResponseResult
.
SUCCESS
.
getCode
()))
{
LogUtil
.
info
(
"CouponReverseServiceImpl"
,
JSON
.
toJSONString
(
couponCodeVerificationDto
),
JSON
.
toJSONString
(
couponCodeResponseDto
));
LogUtil
.
info
(
"CouponReverseServiceImpl"
,
JSON
.
toJSONString
(
couponCodeVerificationDto
),
JSON
.
toJSONString
(
couponCodeResponseDto
));
...
...
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
024b14d6
...
@@ -392,8 +392,8 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -392,8 +392,8 @@ public class OrderServiceImpl implements Orderservice {
if
(!
PayStatus
.
NOT_PAY
.
getCode
().
equals
(
orderBean
.
getPayStatus
())
||
!
OrderStatus
.
WAIT_PAY
.
getCode
().
equals
(
orderBean
.
getStatus
()))
{
if
(!
PayStatus
.
NOT_PAY
.
getCode
().
equals
(
orderBean
.
getPayStatus
())
||
!
OrderStatus
.
WAIT_PAY
.
getCode
().
equals
(
orderBean
.
getStatus
()))
{
return
sendPaySuccessNoticeMessage
();
return
sendPaySuccessNoticeMessage
();
}
}
//若该订单使用了优惠券,则移除卡包,移除失败也不退款
//若该订单使用了优惠券,则移除卡包,移除失败也不退款
,现在支付成功个调用核销,无需调用此功能
couponActivityService
.
callbackNotify
(
orderBean
);
//
couponActivityService.callbackNotify(orderBean);
// 订单失败后 发消息重试 待实现
// 订单失败后 发消息重试 待实现
String
takeCode
;
String
takeCode
;
String
daySeq
;
String
daySeq
;
...
@@ -564,7 +564,9 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -564,7 +564,9 @@ public class OrderServiceImpl implements Orderservice {
Integer
code
=
(
Integer
)
jsonObject
.
get
(
"code"
);
Integer
code
=
(
Integer
)
jsonObject
.
get
(
"code"
);
if
(
Objects
.
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_0
,
code
)
||
Objects
.
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS
,
code
))
{
if
(
Objects
.
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_0
,
code
)
||
Objects
.
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS
,
code
))
{
try
{
try
{
log
.
info
(
"调用券码核销=="
+
newMessage
.
getTransId
());
verificationCoupon
(
newMessage
.
getTransId
());
verificationCoupon
(
newMessage
.
getTransId
());
log
.
info
(
"调用券码结束=="
+
newMessage
.
getTransId
());
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
log
.
error
(
"核销券码失败transId:"
+
newMessage
.
getTransId
(),
e
);
log
.
error
(
"核销券码失败transId:"
+
newMessage
.
getTransId
(),
e
);
}
}
...
@@ -1633,24 +1635,6 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -1633,24 +1635,6 @@ public class OrderServiceImpl implements Orderservice {
}
}
}
}
public
void
backOrdersStatusChange
(
String
oid
,
Integer
orderStatus
,
Integer
payState
)
{
if
(
StringUtils
.
isEmpty
(
oid
))
{
return
;
}
ApiLog
.
info
(
"backOrdersStatusChange"
,
oid
,
String
.
valueOf
(
orderStatus
));
OrderStatusChangeRequestDto
requestDto
=
new
OrderStatusChangeRequestDto
();
requestDto
.
setOid
(
oid
);
requestDto
.
setOrderStatus
(
orderStatus
);
try
{
Header
header
=
new
Header
(
MQAction
.
INSERT
.
getAction
(),
"backOrdersStatusChange"
,
oid
,
backOrdersChangeOrderStatusConsumerQueue
);
MQMessage
<
OrderStatusChangeRequestDto
>
message
=
new
MQMessage
<>(
header
,
requestDto
);
mqService
.
convertAndSend
(
backOrdersNotifyActivityExchange
,
backOrdersChangeOrderStatusConsumerQueue
,
message
);
}
catch
(
Exception
e
)
{
LogUtil
.
error
(
"ActivityReverse"
,
JSON
.
toJSONString
(
requestDto
),
""
,
e
);
}
}
/**
/**
* 发MQ去打印
* 发MQ去打印
*
*
...
...
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