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
011f748a
Commit
011f748a
authored
Nov 27, 2020
by
张洪旺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 未支付取消状态
parent
69795c3b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+5
-0
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderVo.java
+1
-1
order-application-service/src/main/java/cn/freemud/enums/QueryOrderStatus.java
+4
-1
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
011f748a
...
...
@@ -925,6 +925,11 @@ public class OrderAdapter {
if
(
QueryOrderStatus
.
ORDER_CANCEL
.
getCode
().
equals
(
queryOrderDto
.
getQueryOrderStatus
()))
{
queryOrdersDto
.
setStatus
(
new
Integer
[]{
OrderStatus
.
CALCEL
.
getCode
()});
}
if
(
QueryOrderStatus
.
ORDER_CANCEL_MIXUE
.
getCode
().
equals
(
queryOrderDto
.
getQueryOrderStatus
()))
{
queryOrdersDto
.
setStatus
(
new
Integer
[]{
OrderStatus
.
CALCEL
.
getCode
()});
queryOrdersDto
.
setPayStatus
(
new
Integer
[]{
PayStatus
.
NOT_PAY
.
getCode
()});
}
}
// 兼容历史版本,如果传参是4 查询拆程4和5
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderVo.java
View file @
011f748a
...
...
@@ -34,7 +34,7 @@ public class QueryOrderVo {
*/
private
String
oid
;
/**
* 订单状态 enum queryOrderStatus 全部订单 1 待取餐 2 已完成 3 全部 4.退款,5 待支付 ,6 已取消
* 订单状态 enum queryOrderStatus 全部订单 1 待取餐 2 已完成 3 全部 4.退款,5 待支付 ,6 已取消
7未支付取消
*/
private
Integer
queryOrderStatus
;
/**
...
...
order-application-service/src/main/java/cn/freemud/enums/QueryOrderStatus.java
View file @
011f748a
...
...
@@ -20,7 +20,10 @@ public enum QueryOrderStatus {
ALL_BILL
(
3
,
"全部"
),
REFUND_BILL
(
4
,
"退款"
),
NO_PAY
(
5
,
"待支付"
),
ORDER_CANCEL
(
6
,
"已取消"
);
ORDER_CANCEL
(
6
,
"已取消"
),
//密雪
ORDER_CANCEL_MIXUE
(
7
,
"未支付已取消"
);
private
Integer
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