加入购物车修改
This commit is contained in:
@@ -502,7 +502,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
tbCashierCart.setPackFee(product.getPackFee() != null ?
|
tbCashierCart.setPackFee(product.getPackFee() != null ?
|
||||||
product.getPackFee().multiply(BigDecimal.valueOf(addCartDTO.getNum())) : BigDecimal.ZERO);
|
product.getPackFee().multiply(BigDecimal.valueOf(addCartDTO.getNum())) : BigDecimal.ZERO);
|
||||||
}
|
}
|
||||||
cashierCartMapper.insert(tbCashierCart);
|
cashierCartMapper.updateById(tbCashierCart);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StrUtil.isNotBlank(addCartDTO.getTableId())) {
|
if (StrUtil.isNotBlank(addCartDTO.getTableId())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user