Commit 241bf605 by 周晓航

修改获取门店校验对象的vo

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 00ce04a8
......@@ -38,10 +38,6 @@ public class BusinessInfoDto {
private Integer deliveryProcessingAfterMinute;
private Integer deliveryProcessingBeforeMinute;
private Integer orderProgressBarStatus;
/**
* 是否开启 预定单功能 1开 0关
*/
private Integer preOrderSwitch;
private ExpandFields expandFields;
......
......@@ -26,5 +26,9 @@ public class ExpandFields {
//每增加一公里增加的时长(分钟)
private String appendMinutePerKilometer;
/**
* 是否开启 预定单功能 1开 0关
*/
private Integer preOrderSwitch;
}
......@@ -415,13 +415,13 @@ public class CheckOrder {
* @param storeResponseDto
*/
private void checkAdvanceOrderExpectTime(BusinessInfoDto queryBusinessInfoNew,StoreResponse.BizVO storeResponseDto, Date takeMealDateTime) {
AssortOrderLogUtil.info("fisherman 校验门店时间数据 01",JSON.toJSONString(queryBusinessInfoNew),
AssortOrderLogUtil.info("fisherman 校验门店时间数据 01",null,
JSON.toJSONString(storeResponseDto),
JSON.toJSONString(takeMealDateTime));
if (Objects.isNull(queryBusinessInfoNew)) {
return;
}
if (ObjectUtils.notEqual(queryBusinessInfoNew.getPreOrderSwitch(), 1)) {
if (ObjectUtils.notEqual(queryBusinessInfoNew.getExpandFields().getPreOrderSwitch(), 1)) {
// 没开启 抛出异常
throw new ServiceException(ResponseResult.STORE_ITEM_NOT_ADVANCE);
}
......
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