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
jenkins
order-group
Commits
3c1ae2c3
Commit
3c1ae2c3
authored
Mar 20, 2020
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下单门店隔天营业时间判断修改
parent
ac91ec33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+9
-2
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
3c1ae2c3
...
@@ -165,9 +165,16 @@ public class CheckOrder {
...
@@ -165,9 +165,16 @@ public class CheckOrder {
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
throw
new
ServiceException
(
ResponseResult
.
STORE_BUSINESS_HOUR_ERROR
);
throw
new
ServiceException
(
ResponseResult
.
STORE_BUSINESS_HOUR_ERROR
);
}
}
//隔天营业时间处理
//隔天营业时间处理 营业时间 8:00-2:00
// 当前时间 3-19号 08:01 则整体营业时间为3-19号 8:00 到 3-20号 2:00
// 当前时间 3-20号 00:01 则整体营业时间为3-19号 8:00 到 3-20号 2:00
// 当前时间 3-20号 02:01 则营业时间为3-20号 8:00 到 3-21号 2:00
if
(
startDateTime
.
after
(
endDateTime
)){
if
(
startDateTime
.
after
(
endDateTime
)){
endDateTime
=
DateUtil
.
addDays
(
endDateTime
,
1
);
if
(
endDateTime
.
after
(
date
)){
startDateTime
=
DateUtil
.
addDays
(
startDateTime
,-
1
);
}
else
{
endDateTime
=
DateUtil
.
addDays
(
endDateTime
,
1
);
}
}
}
storeResponseDto
.
setBusinessHoursDayStartTime
(
startDateTime
);
storeResponseDto
.
setBusinessHoursDayStartTime
(
startDateTime
);
storeResponseDto
.
setBusinessHoursDayEndTime
(
endDateTime
);
storeResponseDto
.
setBusinessHoursDayEndTime
(
endDateTime
);
...
...
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