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
c5b68e61
Commit
c5b68e61
authored
Apr 12, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配送自动扭转时间未设置,传默认值
parent
7fec57ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
+16
-4
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
View file @
c5b68e61
...
@@ -860,6 +860,12 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
...
@@ -860,6 +860,12 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
}
}
StoreResponse
.
Configuration
configuration
=
getStoreAutoConfiguration
(
baseQueryOrderRequest
.
getPartnerId
(),
baseQueryOrderRequest
.
getShopId
(),
baseQueryOrderRequest
.
getTrackingNo
());
StoreResponse
.
Configuration
configuration
=
getStoreAutoConfiguration
(
baseQueryOrderRequest
.
getPartnerId
(),
baseQueryOrderRequest
.
getShopId
(),
baseQueryOrderRequest
.
getTrackingNo
());
if
(
configuration
!=
null
)
{
if
(
configuration
!=
null
)
{
//deliveryFinishedAfterMinute:自建外卖订单,商家自配送xx分钟后,订单状态更改为【已完成】;
//appointAutoDeliveryTakeOrderWorkflowFinishTime: 预约自建外卖制作完成后自动流程时间 1:2小时;2:1小时;3:30分钟;4:15分钟;5:10分钟;6:5分钟;
if
(
configuration
.
getDeliveryFinishedAfterMinute
()
==
null
||
configuration
.
getAppointAutoDeliveryTakeOrderWorkflowFinishTime
()
==
null
){
timeOut
=
isTakeOut
?
takeOutTimeOut
:
120
;
}
if
(
configuration
.
getDeliveryFinishedAfterMinute
()!=
null
&&
configuration
.
getDeliveryFinishedAfterMinute
()>
0
){
if
(
configuration
.
getDeliveryFinishedAfterMinute
()!=
null
&&
configuration
.
getDeliveryFinishedAfterMinute
()>
0
){
timeOut
=
isTakeOut
?
takeOutTimeOut
timeOut
=
isTakeOut
?
takeOutTimeOut
//: AutoOrderConfigTime.getTime(configuration.getDeliveryFinishedAfterMinute().toString());
//: AutoOrderConfigTime.getTime(configuration.getDeliveryFinishedAfterMinute().toString());
...
@@ -871,11 +877,11 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
...
@@ -871,11 +877,11 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
:
AutoOrderConfigTime
.
getTime
(
configuration
.
getAppointAutoDeliveryTakeOrderWorkflowFinishTime
());
:
AutoOrderConfigTime
.
getTime
(
configuration
.
getAppointAutoDeliveryTakeOrderWorkflowFinishTime
());
//request.setTimeout(AutoOrderConfigTime.getTime(configuration.getAppointAutoDeliveryTakeOrderWorkflowFinishTime()));
//request.setTimeout(AutoOrderConfigTime.getTime(configuration.getAppointAutoDeliveryTakeOrderWorkflowFinishTime()));
}
}
request
.
setTimeout
(
timeOut
);
}
}
else
{
else
{
timeOut
=
isTakeOut
?
takeOutTimeOut
:
120
;
request
.
setTimeout
((
timeOut
=
isTakeOut
?
takeOutTimeOut
:
120
));
}
}
request
.
setTimeout
(
timeOut
);
com
.
freemud
.
application
.
sdk
.
api
.
ordercenter
.
response
.
BaseResponse
response
=
orderSdkService
.
directDelivery
(
request
,
baseQueryOrderRequest
.
getTrackingNo
());
com
.
freemud
.
application
.
sdk
.
api
.
ordercenter
.
response
.
BaseResponse
response
=
orderSdkService
.
directDelivery
(
request
,
baseQueryOrderRequest
.
getTrackingNo
());
return
orderSdkAdapter
.
convent2BaseOrderResponse
(
response
);
return
orderSdkAdapter
.
convent2BaseOrderResponse
(
response
);
...
@@ -1889,6 +1895,12 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
...
@@ -1889,6 +1895,12 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
//外卖单 店外快递实时-3常规外送 店外快递预约-4预约外送
//外卖单 店外快递实时-3常规外送 店外快递预约-4预约外送
// 重要的事情重复三遍 saas 实时外卖 预约外卖都是 按3个小时流转
// 重要的事情重复三遍 saas 实时外卖 预约外卖都是 按3个小时流转
if
(
OrderType
.
GENERAL_EXPRESS
.
equals
(
baseQueryOrderRequest
.
getOrderType
())
||
OrderType
.
RESERVED_EXPRESS
.
equals
(
baseQueryOrderRequest
.
getOrderType
()))
{
if
(
OrderType
.
GENERAL_EXPRESS
.
equals
(
baseQueryOrderRequest
.
getOrderType
())
||
OrderType
.
RESERVED_EXPRESS
.
equals
(
baseQueryOrderRequest
.
getOrderType
()))
{
//deliveryProcessingAfterMinute:自建外卖订单-实时单,商家自配送,门店接单xx分钟后,订单状态变更为配送中;
//deliveryProcessingBeforeMinute: 自建外卖订单-预约单,商家自配送,预约商家前xx分钟,订单更改为配送中
if
(
configuration
.
getDeliveryProcessingAfterMinute
()
==
null
||
configuration
.
getDeliveryProcessingBeforeMinute
()
==
null
){
timeout
=
isTakeOut
?
takeOutTimeOut
:
120
;
}
//自配送外卖单接单后自动流程时间
//自配送外卖单接单后自动流程时间
if
(
configuration
.
getDeliveryProcessingAfterMinute
()!=
null
&&
configuration
.
getDeliveryProcessingAfterMinute
()>
0
)
{
if
(
configuration
.
getDeliveryProcessingAfterMinute
()!=
null
&&
configuration
.
getDeliveryProcessingAfterMinute
()>
0
)
{
timeout
=
QueryDeliveryType
.
SELF
.
getCode
().
equals
(
baseQueryOrderRequest
.
getDeliveryType
())
timeout
=
QueryDeliveryType
.
SELF
.
getCode
().
equals
(
baseQueryOrderRequest
.
getDeliveryType
())
...
...
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