退菜 开关
This commit is contained in:
@@ -1865,7 +1865,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
|
||||
}
|
||||
} else if (shopInfo.getRefundMode().equals(2)) {
|
||||
//单商品
|
||||
refundMode = 2;
|
||||
refundMode = product.getRefundMode();
|
||||
} else {
|
||||
log.error("退菜模式错误 店铺{},退款模式{},商品Id{}分类Id{}", shopInfo.getShopName(), shopInfo.getRefundMode(), product.getId(), product.getCategoryId());
|
||||
throw new CzgException("退菜模式错误");
|
||||
|
||||
@@ -525,7 +525,7 @@ public class OrderPayServiceImpl implements OrderPayService {
|
||||
FunUtils.safeRunVoid(() -> printConfig.kitchenRefundAllHandler(StrUtil.isNotBlank(param.getOperator()) ? param.getOperator() : "", orderInfo, param.getRefundDetails()),
|
||||
"订单id:{} 退款,后厨退菜单打印消息失败", orderInfo.getId());
|
||||
//退款返还库存
|
||||
if (!productStockMap.isEmpty()) {
|
||||
if (CollUtil.isNotEmpty(productStockMap)) {
|
||||
FunUtils.safeRunVoid(() -> orderInfoCustomService.refundStock(shopInfo, orderInfo.getId(), productStockMap, param.isRefundStock()),
|
||||
"订单id:{} 退款,库存处理失败", orderInfo.getId());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user