|
@@ -485,7 +485,7 @@ public class CartClubServiceImpl implements CartClubService {
|
|
|
Double repurchase = baseMapper.getRepurchasePrice(cartItemVo.getProductId(), userId);
|
|
|
if (null != repurchase && repurchase > 0) {
|
|
|
if (taxFlag) {
|
|
|
- BigDecimal cartItemTax = MathUtil.div(MathUtil.mul(cartItemVo.getPrice(), cartItemVo.getTaxRate()), 100, 2);
|
|
|
+ BigDecimal cartItemTax = MathUtil.div(MathUtil.mul(repurchase, cartItemVo.getTaxRate()), 100, 2);
|
|
|
cartItemVo.setPrice(MathUtil.add(repurchase, cartItemTax).doubleValue());
|
|
|
} else {
|
|
|
cartItemVo.setPrice(repurchase);
|
|
@@ -758,7 +758,7 @@ public class CartClubServiceImpl implements CartClubService {
|
|
|
Double repurchase = baseMapper.getRepurchasePrice(cartItemVo.getProductId(), userId);
|
|
|
if (null != repurchase && repurchase > 0) {
|
|
|
if (taxFlag) {
|
|
|
- BigDecimal cartItemTax = MathUtil.div(MathUtil.mul(cartItemVo.getPrice(), cartItemVo.getTaxRate()), 100, 2);
|
|
|
+ BigDecimal cartItemTax = MathUtil.div(MathUtil.mul(repurchase, cartItemVo.getTaxRate()), 100, 2);
|
|
|
cartItemVo.setPrice(MathUtil.add(repurchase, cartItemTax).doubleValue());
|
|
|
} else {
|
|
|
cartItemVo.setPrice(repurchase);
|
|
@@ -1009,7 +1009,7 @@ public class CartClubServiceImpl implements CartClubService {
|
|
|
Double repurchase = baseMapper.getRepurchasePrice(cartItemVo.getProductId(), cartDto.getUserId());
|
|
|
if (null != repurchase && repurchase > 0) {
|
|
|
if (taxFlag) {
|
|
|
- BigDecimal cartItemTax = MathUtil.div(MathUtil.mul(cartItemVo.getPrice(), cartItemVo.getTaxRate()), 100, 2);
|
|
|
+ BigDecimal cartItemTax = MathUtil.div(MathUtil.mul(repurchase, cartItemVo.getTaxRate()), 100, 2);
|
|
|
cartItemVo.setPrice(MathUtil.add(repurchase, cartItemTax).doubleValue());
|
|
|
} else {
|
|
|
cartItemVo.setPrice(repurchase);
|