Commit e66dcd63 by 查志伟

门店配置字段修改

parent 62571423
...@@ -232,7 +232,7 @@ public class BusinessInfoDto { ...@@ -232,7 +232,7 @@ public class BusinessInfoDto {
/** /**
* 收银买单开关 1 开启 2 关闭 * 收银买单开关 1 开启 2 关闭
*/ */
private Integer cashierPayType; private Integer supportCashierPay;
/** /**
* 拓展字段定义 * 拓展字段定义
......
...@@ -74,7 +74,7 @@ public class CashierOrderServiceImpl implements CashierOrderService { ...@@ -74,7 +74,7 @@ public class CashierOrderServiceImpl implements CashierOrderService {
}); });
if (null == storeMix.getStoreInfo() || null == storeMix.getBusinessInfo()) throw new ServiceException(ResponseResult.STORE_DATE_ERROR); if (null == storeMix.getStoreInfo() || null == storeMix.getBusinessInfo()) throw new ServiceException(ResponseResult.STORE_DATE_ERROR);
// 门店未配置收银买单开关或者未配置为 1-开启, 则不允许下单 // 门店未配置收银买单开关或者未配置为 1-开启, 则不允许下单
if (! Objects.equals(storeMix.getBusinessInfo().getCashierPayType(), 1)) throw new ServiceException(ResponseResult.STORE_CASHIER_CONFIG_ERROR); if (! Objects.equals(storeMix.getBusinessInfo().getSupportCashierPay(), 1)) throw new ServiceException(ResponseResult.STORE_CASHIER_CONFIG_ERROR);
//创建订单 //创建订单
CreateOrderRequest request = this.generateCreateOrderRequest(storeMix.getStoreInfo(), createOrderDto.getOrderAmount(), member); CreateOrderRequest request = this.generateCreateOrderRequest(storeMix.getStoreInfo(), createOrderDto.getOrderAmount(), member);
......
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