KKSU
2024-08-28 15fc961a09434cd350fcd67085a6d62283c8c76f
新增功能操作按钮,和更新了数据库数据
1 files modified
4 ■■■ changed files
src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java 4 ●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java
@@ -199,7 +199,9 @@
        if(withdrawAmount.compareTo(amount) > 0){
            throw new FebsException("至少为"+withdrawAmount);
        }
        boolean b = Integer.parseInt(amount.toString()) % Integer.parseInt(withdrawAmount.toString()) == 0;
//        boolean b = Integer.parseInt(amount.toString()) % Integer.parseInt(withdrawAmount.toString()) == 0;
        boolean b = amount.remainder(withdrawAmount).compareTo(BigDecimal.ZERO) == 0;
        if(!b){
            throw new FebsException("金额必须为"+withdrawAmount+"的整数倍");
        }