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
5ccaf17a
Commit
5ccaf17a
authored
Mar 15, 2021
by
zhiheng.zhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20210309-支付有礼添加券log-张志恒'
parents
cac0aaa7
6b13e47f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+8
-7
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
5ccaf17a
...
@@ -932,14 +932,15 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -932,14 +932,15 @@ public class OrderServiceImpl implements Orderservice {
Integer
totalSumTime
=
0
;
Integer
totalSumTime
=
0
;
String
progress
=
"0"
;
//进度
String
progress
=
"0"
;
//进度
Integer
orderProgressBarStatus
=
2
;
Integer
orderProgressBarStatus
=
2
;
StoreResponse
.
Configuration
configuration
=
storeResponseDto
.
getStoreConfig
();
String
configurationStr
=
storeResponseDto
.
getConfiguration
();
if
(
null
!=
configuration
)
{
if
(
StringUtils
.
isNotEmpty
(
configurationStr
))
{
log
.
info
(
"StoreResponse.Configuration {}"
,
JSONObject
.
toJSONString
(
configuration
));
try
{
StoreResponse
.
Configuration
configuration
=
JSONObject
.
parseObject
(
configurationStr
).
toJavaObject
(
StoreResponse
.
Configuration
.
class
);
if
(
null
!=
configuration
)
{
orderProgressBarStatus
=
configuration
.
getOrderProgressBarStatus
();
orderProgressBarStatus
=
configuration
.
getOrderProgressBarStatus
();
;
//默认关闭
;
//默认关闭
//订单状态为已接单并且无售后单展示进度条
//订单状态为已接单并且无售后单展示进度条
if
(
OrderStatus
.
RECEIPT
.
getCode
()
==
orderBean
.
getStatus
()
&&
null
==
orderBean
.
getAfterSalesOrderResp
()
&&
null
!=
orderProgressBarStatus
&&
null
!=
configuration
.
getTurnOnTimeOfMaking
())
{
if
(
OrderStatus
.
RECEIPT
.
getCode
()
==
orderBean
.
getStatus
()
&&
null
==
orderBean
.
getAfterSalesOrderResp
()
&&
null
!=
orderProgressBarStatus
&&
null
!=
configuration
.
getTurnOnTimeOfMaking
())
{
try
{
// 查询订单的排队人数
// 查询订单的排队人数
QueryLineUpOrderReq
queryLineUpOrderReq
=
new
QueryLineUpOrderReq
();
QueryLineUpOrderReq
queryLineUpOrderReq
=
new
QueryLineUpOrderReq
();
queryLineUpOrderReq
.
setPartnerId
(
orderBean
.
getCompanyId
());
queryLineUpOrderReq
.
setPartnerId
(
orderBean
.
getCompanyId
());
...
@@ -948,7 +949,6 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -948,7 +949,6 @@ public class OrderServiceImpl implements Orderservice {
queryLineUpOrderReq
.
setEndTime
(
orderBean
.
getGmtCreate
());
queryLineUpOrderReq
.
setEndTime
(
orderBean
.
getGmtCreate
());
// 取餐排队人数查询代码去除
// 取餐排队人数查询代码去除
QueryLineUpResponse
response
=
orderCenterSdkService
.
queryLineUpOrder
(
queryLineUpOrderReq
);
QueryLineUpResponse
response
=
orderCenterSdkService
.
queryLineUpOrder
(
queryLineUpOrderReq
);
;
if
(
RESPONSE_SUCCESS_CODE
.
equals
(
response
.
getErrcode
()))
{
if
(
RESPONSE_SUCCESS_CODE
.
equals
(
response
.
getErrcode
()))
{
if
(
null
==
response
.
getOrderCodes
())
{
if
(
null
==
response
.
getOrderCodes
())
{
progress
=
"100"
;
progress
=
"100"
;
...
@@ -975,10 +975,11 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -975,10 +975,11 @@ public class OrderServiceImpl implements Orderservice {
}
}
}
}
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"get returnWords error :{},StoreResponse.Configuration:{}"
,
e
.
getMessage
(),
JSONObject
.
toJSONString
(
configuration
));
}
}
}
}
}
catch
(
Exception
e
){
log
.
error
(
"get returnWords error :{},StoreResponse.Configuration:{}"
,
e
.
getMessage
(),
configurationStr
);
}
}
}
orderBean
.
setProgress
(
String
.
valueOf
(
progress
));
orderBean
.
setProgress
(
String
.
valueOf
(
progress
));
orderBean
.
setReturnWords
(
returnWords
);
orderBean
.
setReturnWords
(
returnWords
);
...
...
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