| | |
| | | // BigDecimal amountIn = BigDecimal.valueOf(951); |
| | | // BigDecimal result = amountIn.divide(BigDecimal.valueOf(100)); |
| | | // System.out.println(result.remainder(BigDecimal.ONE).equals(BigDecimal.ZERO)); |
| | | Long memberId = 294L; |
| | | if(294L == memberId){ |
| | | Long memberId = 3067L; |
| | | if(AppContants.YL_MEMBER_ID.equals(memberId)){ |
| | | System.out.println(1); |
| | | }else{ |
| | | System.out.println(2); |
| | |
| | | BigDecimal feePercent = new BigDecimal(StrUtil.isEmpty(dic.getValue()) ? "0.2" : dic.getValue()); |
| | | //手续费 |
| | | BigDecimal feeCnt = coinCnt.multiply(feePercent).setScale(4,BigDecimal.ROUND_DOWN); |
| | | if(294L == member.getId()){ |
| | | if(AppContants.YL_MEMBER_ID.equals(member.getId())){ |
| | | feeCnt = BigDecimal.ZERO; |
| | | } |
| | | //闪对钱包获取的 |