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
93a63e89
Commit
93a63e89
authored
Jan 18, 2022
by
查志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '20210107-修复外卖隔日预约单无法下单问题-zhiwei.zha'
parents
ff09cd60
e9ff213b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+1
-4
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
93a63e89
...
@@ -543,7 +543,7 @@ public class CheckOrder {
...
@@ -543,7 +543,7 @@ public class CheckOrder {
Date
newDate
=
DateUtil
.
convert2Date
(
date
,
DateUtil
.
FORMAT_yyyyMMdd_date
);
Date
newDate
=
DateUtil
.
convert2Date
(
date
,
DateUtil
.
FORMAT_yyyyMMdd_date
);
newDate
=
DateUtil
.
addDays
(
newDate
,
1
);
newDate
=
DateUtil
.
addDays
(
newDate
,
1
);
//隔天预约(在明日凌晨之后且在门店营业结束之后)
//隔天预约(在明日凌晨之后且在门店营业结束之后)
if
(
takeMealDateTime
.
after
(
todayEndDate
)
&&
takeMealDateTime
.
after
(
newDate
))
{
if
(
takeMealDateTime
.
before
(
todayEndDate
)
&&
takeMealDateTime
.
after
(
newDate
))
{
expectTimeInTodayBusinessTime
=
false
;
expectTimeInTodayBusinessTime
=
false
;
}
}
if
(
expectTimeInTodayBusinessTime
)
{
if
(
expectTimeInTodayBusinessTime
)
{
...
@@ -592,9 +592,6 @@ public class CheckOrder {
...
@@ -592,9 +592,6 @@ public class CheckOrder {
* @param expectTimeInTodayBusinessTime 是否在当日营业时间内
* @param expectTimeInTodayBusinessTime 是否在当日营业时间内
*/
*/
private
void
checkTakeOutTime
(
StoreResponseDto
storeResponseDto
,
Date
now
,
Date
takeMealDateTime
,
boolean
expectTimeInTodayBusinessTime
)
{
private
void
checkTakeOutTime
(
StoreResponseDto
storeResponseDto
,
Date
now
,
Date
takeMealDateTime
,
boolean
expectTimeInTodayBusinessTime
)
{
//todo 这里紧急先处理太古坊宴会甜品定制2807商户无法下隔日预约单问题,先不校验能下单,后续修复后再去除
if
(
"2807"
.
equals
(
storeResponseDto
.
getPartnerId
()))
return
;
String
deliveryStr
=
storeResponseDto
.
getDeliveryHoursDay
().
replace
(
"-"
,
","
)
String
deliveryStr
=
storeResponseDto
.
getDeliveryHoursDay
().
replace
(
"-"
,
","
)
.
replace
(
"_"
,
","
);
.
replace
(
"_"
,
","
);
String
[]
deliverys
=
deliveryStr
.
split
(
","
);
String
[]
deliverys
=
deliveryStr
.
split
(
","
);
...
...
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