外带模式创建订单设置打包费

This commit is contained in:
2024-10-08 15:03:25 +08:00
parent 65f52e8694
commit 6724635bcf

View File

@@ -876,6 +876,7 @@ public class CartService {
TbProduct product = productMapper.selectById(Integer.valueOf(cart.getProductId()));
cart.setPackFee(product.getPackFee() != null ?
product.getPackFee().multiply(BigDecimal.valueOf(cart.getNumber())) : BigDecimal.ZERO);
cart.setIsPack("true");
} else {
cart.setTableId(tableId);
cart.setPackFee(BigDecimal.ZERO);