Browse Source

税费问题

plf 4 years ago
parent
commit
8bdd26722d

+ 5 - 0
src/main/java/com/caimei/service/impl/ShoppingCartServiceImpl.java

@@ -107,6 +107,11 @@ public class ShoppingCartServiceImpl implements ShoppingCartService {
                 }
                 }
             }
             }
             product.setLadderList(ladderList);
             product.setLadderList(ladderList);
+        } else {
+            if (addTaxFlag) {
+                BigDecimal addedValueTax = MathUtil.div(MathUtil.mul(product.getPrice(), product.getClubTaxPoint()), BigDecimal.valueOf(100));
+                product.setPrice(MathUtil.add(addedValueTax, product.getPrice()));
+            }
         }
         }
     }
     }