Commit 4288f721 by 周晓航

拦截数字转化异常

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent e5bbbb47
......@@ -340,9 +340,13 @@ public class CheckOrder {
if (Objects.isNull(businessInfoDto)) {
businessInfoDto = this.queryBusinessInfoNew(createOrderVo);
}
Date date = new Date(Long.parseLong(takeMealTimes));
this.checkAdvanceOrderExpectTime(businessInfoDto,storeResponseDto,date);
createOrderVo.setExpectTime(DateUtil.convert2String(date, "yyyy-MM-dd HH:mm:ss"));
try {
Date date = new Date(Long.parseLong(takeMealTimes));
this.checkAdvanceOrderExpectTime(businessInfoDto,storeResponseDto,date);
createOrderVo.setExpectTime(DateUtil.convert2String(date, "yyyy-MM-dd HH:mm:ss"));
}catch (Exception e){
throw new ServiceException(ResponseResult.ORDER_CREATE_TAKEMEALTIME_ERROR);
}
}
}
}
......
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