jialh
21 小时以前 d0b19298e28a9b8b50c778704b77160f17e73950
java110-utils/src/test/java/com/java110/utils/AppTest.java
@@ -5,6 +5,7 @@
import junit.framework.TestCase;
import junit.framework.TestSuite;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.List;
@@ -37,16 +38,12 @@
     */
    public void testApp()
    {
        String startTime = "2023-03-02 04:00:00";
        String endTime = "2024-01-01 00:00:00";
        BigDecimal curFeePrice = new BigDecimal(346.815+"");
        curFeePrice = curFeePrice.multiply(new BigDecimal(1));
        curFeePrice = curFeePrice.setScale(2,BigDecimal.ROUND_HALF_UP);
        List<String> months = DateUtil.getMonthBetweenDate(startTime,endTime);
        for(String month : months) {
            System.out.println(month);
        }
        System.out.printf(curFeePrice.doubleValue()+"");
    }
}