显示抛出
This commit is contained in:
@@ -38,7 +38,7 @@ public interface OrderInfoService extends IService<OrderInfo> {
|
||||
|
||||
HistoryOrderVo historyOrder(Long orderId, String tableCode) throws CzgException;
|
||||
|
||||
OrderInfo createOrder(OrderInfoAddDTO param) throws ValidateException;
|
||||
OrderInfo createOrder(OrderInfoAddDTO param) throws ValidateException, CzgException;
|
||||
|
||||
OrderInfo checkOrderPay(CheckOrderPay param) throws OrderValidateException, OrderCancelException, CzgException;
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public OrderInfo createOrder(OrderInfoAddDTO param) throws ValidateException {
|
||||
public OrderInfo createOrder(OrderInfoAddDTO param) throws ValidateException, CzgException {
|
||||
ShopInfo shopInfo = shopInfoService.getById(param.getShopId());
|
||||
AssertUtil.isNull(shopInfo, "生成订单失败,店铺信息不存在");
|
||||
if (!shopInfo.getEatModel().contains(param.getDineMode())) {
|
||||
@@ -1005,7 +1005,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
||||
*
|
||||
* @param orderDetails 订单详情 需要回填
|
||||
*/
|
||||
private void processOrderDetails(List<OrderDetail> orderDetails, LimitRateDTO limitRate) {
|
||||
private void processOrderDetails(List<OrderDetail> orderDetails, LimitRateDTO limitRate) throws CzgException {
|
||||
for (OrderDetail detail : orderDetails) {
|
||||
if (!detail.getIsTemporary().equals(1) && detail.getProductId() > 0) {
|
||||
Product product = productService.getOne(QueryWrapper.create()
|
||||
|
||||
Reference in New Issue
Block a user