Commit 4b8f15f6 by 周晓航

预约单 电话填写校验

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 61afa31f
...@@ -284,6 +284,10 @@ public class CheckOrder { ...@@ -284,6 +284,10 @@ public class CheckOrder {
if (StringUtils.isBlank(takeMealTimes)) { if (StringUtils.isBlank(takeMealTimes)) {
throw new ServiceException(ResponseResult.PARAMETER_MISSING); throw new ServiceException(ResponseResult.PARAMETER_MISSING);
} }
// 必须要有 电话
if (StringUtils.isBlank(createOrderVo.getUserPhone())) {
throw new ServiceException(ResponseResult.PARAMETER_MISSING);
}
} }
//立即送达 预定单不会走立即送达 //立即送达 预定单不会走立即送达
if ("0".equals(takeMealFlag) || (StringUtils.isEmpty(createOrderVo.getExpectTime()) && StringUtils.isEmpty(takeMealTimes))) { if ("0".equals(takeMealFlag) || (StringUtils.isEmpty(createOrderVo.getExpectTime()) && StringUtils.isEmpty(takeMealTimes))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment