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
e2276a8c
Commit
e2276a8c
authored
Feb 23, 2021
by
zhiheng.zhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20210218-点餐进度优化-张志恒'
parents
f6aec11b
929fc6d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+3
-3
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
e2276a8c
...
...
@@ -936,7 +936,7 @@ public class OrderServiceImpl implements Orderservice {
log
.
info
(
"StoreResponse.Configuration {}"
,
JSONObject
.
toJSONString
(
configuration
));
Integer
orderProgressBarStatus
=
configuration
.
getOrderProgressBarStatus
();;
//默认关闭
//订单状态为已接单并且无售后单展示进度条
if
(
OrderStatus
.
RECEIPT
.
getCode
()
==
orderBean
.
getStatus
()
&&
null
==
orderBean
.
getAfterSalesOrderResp
())
{
if
(
OrderStatus
.
RECEIPT
.
getCode
()
==
orderBean
.
getStatus
()
&&
null
==
orderBean
.
getAfterSalesOrderResp
()
&&
null
!=
orderProgressBarStatus
&&
null
!=
configuration
.
getTurnOnTimeOfMaking
()
)
{
try
{
// 查询订单的排队人数
QueryLineUpOrderReq
queryLineUpOrderReq
=
new
QueryLineUpOrderReq
();
...
...
@@ -953,12 +953,12 @@ public class OrderServiceImpl implements Orderservice {
}
else
{
List
<
String
>
orderCodeList
=
response
.
getOrderCodes
();
if
(
null
!=
orderCodeList
&&
orderCodeList
.
size
()
>
0
)
{
Integer
goodsAvgTimeOfMaking
=
0
==
configuration
.
getGoodsAvgTimeOfMaking
()
?
15
:
configuration
.
getGoodsAvgTimeOfMaking
();
returnWords
+=
"前方还有 "
+
orderCodeList
.
size
()
+
" 单"
;
//开启制作时间 1 :是 , 2 :否"
if
(
1
!=
configuration
.
getTurnOnTimeOfMaking
())
{
totalSumTime
=
orderCodeList
.
size
()
*
AutoOrderConfigTime
.
getTime
(
configuration
.
getAutoSelfmentionTakeOrderWorkflowFinishTime
());
//分钟
}
else
{
Integer
goodsAvgTimeOfMaking
=
(
null
==
configuration
.
getGoodsAvgTimeOfMaking
()
||
0
==
configuration
.
getGoodsAvgTimeOfMaking
())?
5
:
configuration
.
getGoodsAvgTimeOfMaking
();
productSum
=
orderCodeList
.
stream
().
mapToInt
(
product
->
Integer
.
parseInt
(
product
.
split
(
"-"
)[
1
])).
sum
();
totalSumTime
=
productSum
*
goodsAvgTimeOfMaking
;
returnWords
+=
" / "
+
productSum
+
" 件"
;
...
...
@@ -973,7 +973,7 @@ public class OrderServiceImpl implements Orderservice {
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"get returnWords error
{}"
,
e
.
getMessage
(
));
log
.
error
(
"get returnWords error
:{},StoreResponse.Configuration:{}"
,
e
.
getMessage
(),
JSONObject
.
toJSONString
(
configuration
));
}
}
orderBean
.
setProgress
(
String
.
valueOf
(
progress
));
...
...
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