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
09f5fe92
Commit
09f5fe92
authored
Jul 09, 2021
by
缪晖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kehuo need auto order complete
parent
bad3e3a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
order-management/src/main/java/cn/freemud/management/service/handle/SaasOrderHandle.java
+6
-6
No files found.
order-management/src/main/java/cn/freemud/management/service/handle/SaasOrderHandle.java
View file @
09f5fe92
...
@@ -68,9 +68,9 @@ public class SaasOrderHandle {
...
@@ -68,9 +68,9 @@ public class SaasOrderHandle {
orderSdkAdapter
.
convert2wmDeliveryTimeOut
(
orderConfirmRequest
,
this
.
wmDeliveryTimeOut
);
orderSdkAdapter
.
convert2wmDeliveryTimeOut
(
orderConfirmRequest
,
this
.
wmDeliveryTimeOut
);
//合阔pos 商户订单状态不自动扭转
//合阔pos 商户订单状态不自动扭转
// 2021-07-07 合阔自动
// 2021-07-07 合阔自动
if
(
CollectionUtils
.
isNotEmpty
(
notAutomaticTwistPartnerId
)
&&
notAutomaticTwistPartnerId
.
contains
(
orderBean
.
getCompanyId
()))
{
//
if (CollectionUtils.isNotEmpty(notAutomaticTwistPartnerId) && notAutomaticTwistPartnerId.contains(orderBean.getCompanyId())) {
orderConfirmRequest
.
setNotAutomaticTwist
(
true
);
//
orderConfirmRequest.setNotAutomaticTwist(true);
}
//
}
BaseOrderResponse
confirmOrderResponse
=
orderCenterSdkService
.
orderConfirmTake
(
orderConfirmRequest
);
BaseOrderResponse
confirmOrderResponse
=
orderCenterSdkService
.
orderConfirmTake
(
orderConfirmRequest
);
//处理1秒重复接单问题 订单服务接单返回20067重复操作,20018状态机不支持认为接单成功
//处理1秒重复接单问题 订单服务接单返回20067重复操作,20018状态机不支持认为接单成功
if
(
"20067"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
())
||
"20018"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
())
||
"50002"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
()))
{
if
(
"20067"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
())
||
"20018"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
())
||
"50002"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
()))
{
...
@@ -113,9 +113,9 @@ public class SaasOrderHandle {
...
@@ -113,9 +113,9 @@ public class SaasOrderHandle {
BaseQueryOrderRequest
orderDoneRequest
=
orderSdkAdapter
.
getOrderConfirmRequest
(
request
.
getOperator
(),
orderBean
);
BaseQueryOrderRequest
orderDoneRequest
=
orderSdkAdapter
.
getOrderConfirmRequest
(
request
.
getOperator
(),
orderBean
);
//合阔pos 商户订单状态不自动扭转
//合阔pos 商户订单状态不自动扭转
// 2021-07-07 合阔自动
// 2021-07-07 合阔自动
if
(
CollectionUtils
.
isNotEmpty
(
notAutomaticTwistPartnerId
)
&&
notAutomaticTwistPartnerId
.
contains
(
orderBean
.
getCompanyId
()))
{
//
if (CollectionUtils.isNotEmpty(notAutomaticTwistPartnerId) && notAutomaticTwistPartnerId.contains(orderBean.getCompanyId())) {
orderDoneRequest
.
setNotAutomaticTwist
(
true
);
//
orderDoneRequest.setNotAutomaticTwist(true);
}
//
}
BaseOrderResponse
baseOrderResponse
=
orderCenterSdkService
.
orderDone
(
orderDoneRequest
);
BaseOrderResponse
baseOrderResponse
=
orderCenterSdkService
.
orderDone
(
orderDoneRequest
);
if
(
baseOrderResponse
==
null
||
ObjectUtils
.
notEqual
(
ResponseResult
.
SUCCESS
.
getCode
(),
baseOrderResponse
.
getErrcode
().
toString
()))
{
if
(
baseOrderResponse
==
null
||
ObjectUtils
.
notEqual
(
ResponseResult
.
SUCCESS
.
getCode
(),
baseOrderResponse
.
getErrcode
().
toString
()))
{
return
ResponseUtil
.
error
(
ResponseResult
.
DONE_ORDER_FAIL
);
return
ResponseUtil
.
error
(
ResponseResult
.
DONE_ORDER_FAIL
);
...
...
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