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
jenkins
order-group
Commits
173db880
Commit
173db880
authored
Mar 17, 2020
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
老订单类型转新订单枚举
parent
3691499c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
+42
-0
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
View file @
173db880
...
@@ -2750,4 +2750,46 @@ public class OrderSdkAdapter {
...
@@ -2750,4 +2750,46 @@ public class OrderSdkAdapter {
return
totalWeight
;
return
totalWeight
;
}
}
/**
* 匹配订单类型
*
* @param orderType
* @return
*/
public
OrderType
getNewOrderTypeEnum
(
Integer
orderType
,
Long
gmtExpect
)
{
if
(
orderType
==
null
)
{
return
null
;
}
switch
(
orderType
)
{
case
1
:
// 外卖
if
(
gmtExpect
==
null
||
gmtExpect
==
0L
)
{
return
OrderType
.
GENERAL_EXPRESS
;
}
else
{
return
OrderType
.
RESERVED_EXPRESS
;
}
case
4
:
// 自取
if
(
gmtExpect
==
null
||
gmtExpect
==
0L
)
{
return
OrderType
.
GENERAL_SELF_PICKUP
;
}
else
{
return
OrderType
.
RESERVED_SELF_PICKUP
;
}
case
5
:
// 堂食
if
(
gmtExpect
==
null
||
gmtExpect
==
0L
)
{
return
OrderType
.
GENERAL_DINE_IN
;
}
else
{
return
OrderType
.
RESERVED_DINE_IN
;
}
default
:
return
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