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
e1e4af04
Commit
e1e4af04
authored
Aug 25, 2020
by
huiyang.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情描述修改
parent
3d4aad61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
0 deletions
+58
-0
order-application-service/src/main/java/cn/freemud/enums/McCafeOrderTypeGather.java
+55
-0
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+3
-0
No files found.
order-application-service/src/main/java/cn/freemud/enums/McCafeOrderTypeGather.java
0 → 100644
View file @
e1e4af04
package
cn
.
freemud
.
enums
;
/**
* All rights Reserved, Designed By www.freemud.cn
*
* @Title: cn.freemud.enums OrderTypeGather
* @Description: TDO 描述....
* @author: family
* @date: 2020/5/7
* @Copyright: www.freemud.cn Inc. All rights reserved.
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
*/
public
enum
McCafeOrderTypeGather
{
TAKE_OUT
(
1
,
"外卖"
),
PRE_ORDER
(
2
,
"预订单"
),
COLLECT_GOODS
(
4
,
"打包"
),
EAT_IN
(
5
,
"堂食"
);
private
Integer
code
;
private
String
desc
;
//订单服务订单类型 1=外卖 4=自提,5=堂食
//外卖平台订单类型 1=常规堂食,2=预约堂食,3=常规外送,4=预约外送,5=常规自取,6=预约自取
McCafeOrderTypeGather
(
Integer
code
,
String
desc
)
{
this
.
code
=
code
;
this
.
desc
=
desc
;
}
public
static
McCafeOrderTypeGather
getByCode
(
Integer
code
)
{
if
(
code
==
null
)
{
return
null
;
}
for
(
McCafeOrderTypeGather
orderTypeGather
:
values
())
{
if
(
orderTypeGather
.
getCode
().
equals
(
code
))
{
return
orderTypeGather
;
}
}
return
null
;
}
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
String
getDesc
()
{
return
desc
;
}
public
void
setDesc
(
String
desc
)
{
this
.
desc
=
desc
;
}
}
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
e1e4af04
...
...
@@ -1289,6 +1289,9 @@ public class OrderServiceImpl implements Orderservice {
queryOrderResponseVo
.
setTakeCode
(
""
);
}
queryOrderResponseVo
.
setOrderTypeDesc
(
Optional
.
ofNullable
(
McCafeOrderTypeGather
.
getByCode
(
queryOrderResponseVo
.
getOrderType
()))
.
map
(
McCafeOrderTypeGather:
:
getDesc
).
orElse
(
""
));
//48小时自动退款描述
if
(
storeInfo
!=
null
&&
storeInfo
.
getBizVO
()
!=
null
&&
storeInfo
.
getBizVO
().
getStoreConfig
()!=
null
&&
queryOrderResponseVo
.
getRefundStatus
()
!=
null
&&
queryOrderResponseVo
.
getRefundStatus
()
==
1
)
{
...
...
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