liusheng
2025-01-02 b6dd47b05107fc36d8ff4f7f29a4446521f95503
ruoyi-common/src/main/java/com/ruoyi/common/tax/TaxtUtils.java
@@ -85,12 +85,12 @@
            taxMoney = money.divide(new BigDecimal(0.84), 2, BigDecimal.ROUND_CEILING);
        }
        if (money.doubleValue() > 21000 && money.doubleValue() <= 40000) {
        if (money.doubleValue() > 21000 && money.doubleValue() <= 49500) {
            money = money.subtract(new BigDecimal(2000));
            taxMoney = money.divide(new BigDecimal(0.76), 2, BigDecimal.ROUND_CEILING);
        }
        if (money.doubleValue() > 40000) {
        if (money.doubleValue() > 49500) {
            money = money.subtract(new BigDecimal(7000));
            taxMoney = money.divide(new BigDecimal(0.68), 2, BigDecimal.ROUND_CEILING);
        }
@@ -106,11 +106,11 @@
    public static void main(String[] args) {
        String taxation = getTaxation(BigDecimal.valueOf(80589.723));
        String taxationBefore = getTaxationBefore(BigDecimal.valueOf(900.531));
        String taxation = getTaxation(BigDecimal.valueOf(43000));
        String taxationBefore = getTaxationBefore(BigDecimal.valueOf(205892.36));
        System.out.println(taxation + "        " + taxationBefore);
        System.out.println("taxation:" + taxation + "============taxationBefore: " + taxationBefore);
    }
}