| | |
| | | @Test |
| | | public void bigdecimalTest() { |
| | | BigDecimal one = BigDecimal.valueOf(6.39); |
| | | BigDecimal two = BigDecimal.valueOf(15.64); |
| | | BigDecimal two = BigDecimal.valueOf(3129.860025); |
| | | |
| | | System.out.println(one.multiply(two)); |
| | | System.out.println(one.multiply(two).setScale(2, BigDecimal.ROUND_DOWN)); |
| | | } |
| | | |
| | | @Autowired |
| | | private OtcConsumer otcConsumer; |
| | | // @Autowired |
| | | // private OtcConsumer otcConsumer; |
| | | |
| | | @Test |
| | | public void returnMoneyTest() { |
| | | // otcConsumer.orderReturn("20210605446780002"); |
| | | otcProducter.sendOrderReturn("20210605446780002"); |
| | | // otcProducter.sendOrderReturn("20210605446780002"); |
| | | } |
| | | } |