| | |
| | | if(BigDecimal.ZERO.compareTo(amountTCAll) >= 0){ |
| | | return; |
| | | } |
| | | BigDecimal amountTC = new BigDecimal(1000); |
| | | BigDecimal amountTC = new BigDecimal(100); |
| | | //购买套餐按照1000的基数去补贴,如5000,则补贴5次1000 |
| | | int times = amountTCAll.divideToIntegralValue(amountTC).intValue(); |
| | | if(times < 1){ |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | BigDecimal total = new BigDecimal(10000000); |
| | | BigDecimal total = new BigDecimal(100000); |
| | | |
| | | BigDecimal amountTotal = BigDecimal.ZERO; |
| | | BigDecimal scoreTotal = BigDecimal.ZERO; |
| | | |
| | | BigDecimal amountBasic = new BigDecimal(1000); |
| | | BigDecimal amountBasic = new BigDecimal(100); |
| | | BigDecimal price = new BigDecimal(0.01); |
| | | |
| | | BigDecimal amountPercent = new BigDecimal(0.5); |