|
@@ -96,7 +96,7 @@ public class UserWithdrawalServiceImpl extends ServiceImpl<UserWithdrawalDao, Us
|
|
|
public HttpResponseResult<Boolean> withdrawal(SysUser user, WithdrawalReq withdrawalReq) {
|
|
|
BigDecimal withdrawalServiceFee = getWithdrawalServiceFee();
|
|
|
//校验金额
|
|
|
- if (withdrawalReq.getAmountWithdrawal().subtract(withdrawalServiceFee).floatValue() < 0) {
|
|
|
+ if (withdrawalReq.getAmountWithdrawal().floatValue() <= 0) {
|
|
|
return HttpResponseResult.failed("提现金额过小");
|
|
|
}
|
|
|
//获取用户提现金额
|