退菜 开关

This commit is contained in:
2026-04-22 13:48:09 +08:00
parent 3848beb184
commit e7c6561db4
2 changed files with 2 additions and 2 deletions

View File

@@ -1865,7 +1865,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
} }
} else if (shopInfo.getRefundMode().equals(2)) { } else if (shopInfo.getRefundMode().equals(2)) {
//单商品 //单商品
refundMode = 2; refundMode = product.getRefundMode();
} else { } else {
log.error("退菜模式错误 店铺{},退款模式{},商品Id{}分类Id{}", shopInfo.getShopName(), shopInfo.getRefundMode(), product.getId(), product.getCategoryId()); log.error("退菜模式错误 店铺{},退款模式{},商品Id{}分类Id{}", shopInfo.getShopName(), shopInfo.getRefundMode(), product.getId(), product.getCategoryId());
throw new CzgException("退菜模式错误"); throw new CzgException("退菜模式错误");

View File

@@ -525,7 +525,7 @@ public class OrderPayServiceImpl implements OrderPayService {
FunUtils.safeRunVoid(() -> printConfig.kitchenRefundAllHandler(StrUtil.isNotBlank(param.getOperator()) ? param.getOperator() : "", orderInfo, param.getRefundDetails()), FunUtils.safeRunVoid(() -> printConfig.kitchenRefundAllHandler(StrUtil.isNotBlank(param.getOperator()) ? param.getOperator() : "", orderInfo, param.getRefundDetails()),
"订单id:{} 退款,后厨退菜单打印消息失败", orderInfo.getId()); "订单id:{} 退款,后厨退菜单打印消息失败", orderInfo.getId());
//退款返还库存 //退款返还库存
if (!productStockMap.isEmpty()) { if (CollUtil.isNotEmpty(productStockMap)) {
FunUtils.safeRunVoid(() -> orderInfoCustomService.refundStock(shopInfo, orderInfo.getId(), productStockMap, param.isRefundStock()), FunUtils.safeRunVoid(() -> orderInfoCustomService.refundStock(shopInfo, orderInfo.getId(), productStockMap, param.isRefundStock()),
"订单id:{} 退款,库存处理失败", orderInfo.getId()); "订单id:{} 退款,库存处理失败", orderInfo.getId());
} }