显示抛出

This commit is contained in:
2025-11-17 11:49:38 +08:00
parent 495d1412bb
commit 9c9d07809a
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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()