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
39bc5e15
Commit
39bc5e15
authored
Aug 18, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预定单, 门店营业结束之后 下单不传递takeMealTime 导致校验失败
Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent
004e9e4a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+5
-0
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
39bc5e15
...
...
@@ -282,8 +282,13 @@ public class CheckOrder {
if
(
isAdvanceOrder
)
{
// 预定单 到店&外卖 必须有取餐时间
if
(
StringUtils
.
isBlank
(
takeMealTimes
))
{
//todo 这里是重点: 门店如果营业结束,下明天的单子就会 传递 expectTime 时间
if
(
StringUtils
.
isNotBlank
(
createOrderVo
.
getExpectTime
()))
{
takeMealTimes
=
createOrderVo
.
getExpectTime
();
}
else
{
throw
new
ServiceException
(
ResponseResult
.
PARAMETER_MISSING
);
}
}
// 必须要有 电话
if
(
StringUtils
.
isBlank
(
createOrderVo
.
getUserPhone
()))
{
throw
new
ServiceException
(
ResponseResult
.
PARAMETER_MISSING
);
...
...
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