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
716537ee
Commit
716537ee
authored
Dec 03, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加注释 维护枚举类
Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent
ae30af97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
order-application-service/src/main/java/cn/freemud/enums/OrderType.java
+20
-8
No files found.
order-application-service/src/main/java/cn/freemud/enums/OrderType.java
View file @
716537ee
...
...
@@ -12,19 +12,31 @@
*/
package
cn
.
freemud
.
enums
;
import
com.freemud.sdk.api.assortment.order.adapter.OrderSdkAdapter
;
import
com.google.common.collect.Lists
;
import
org.springframework.util.CollectionUtils
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* 基础服务订单类型如下:
* 1=常规堂食,
* 2=预约堂食,
* 3=常规外送,
* 4=预约外送,
* 5=常规自取,
* 6=预约自取
*
* @see OrderSdkAdapter#getOldOrderType(java.lang.Integer)
* 该类为老订单类型:
*/
public
enum
OrderType
{
TAKE_OUT
(
1
,
"外卖"
,
"takeOut"
),
PRE_ORDER
(
2
,
"预订单"
,
"preOrder"
),
MALL
(
3
,
"商城"
,
"mall"
),
COLLECT_GOODS
(
4
,
"打包带走"
,
"collectGoods"
),
EAT_IN
(
5
,
"店内就餐"
,
"eatIn"
)
;
TAKE_OUT
(
1
,
"外卖"
,
"takeOut"
),
PRE_ORDER
(
2
,
"预订单"
,
"preOrder"
),
MALL
(
3
,
"商城"
,
"mall"
),
COLLECT_GOODS
(
4
,
"打包带走"
,
"collectGoods"
),
EAT_IN
(
5
,
"店内就餐"
,
"eatIn"
);
private
Integer
code
;
private
String
desc
;
...
...
@@ -33,7 +45,7 @@ public enum OrderType {
*/
private
String
tackDesc
;
OrderType
(
Integer
code
,
String
desc
,
String
tackDesc
)
{
OrderType
(
Integer
code
,
String
desc
,
String
tackDesc
)
{
this
.
code
=
code
;
this
.
desc
=
desc
;
this
.
tackDesc
=
tackDesc
;
...
...
@@ -66,7 +78,7 @@ public enum OrderType {
return
returnList
;
}
for
(
OrderType
orderType
:
values
())
{
for
(
Integer
code:
list
)
{
for
(
Integer
code
:
list
)
{
if
(
orderType
.
getCode
().
equals
(
code
))
{
returnList
.
add
(
code
);
}
...
...
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