外带模式创建订单设置打包费
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user