| | |
| | | @Override
|
| | | public boolean canVerifyAlipayAccount(Long uid) throws BindingAccountException {
|
| | | UserInfo userInfo = userInfoMapper.selectByPrimaryKeyForUpdate(uid);
|
| | | if (userInfo.getMyHongBao().compareTo(new BigDecimal("0")) <= 0)
|
| | | throw new BindingAccountException(1, "你的账户目前没有余额,无需绑定提现帐号。");
|
| | |
|
| | | if (userInfo.getMyHongBao().compareTo(new BigDecimal("0")) <= 0) {
|
| | | BindingAccount bindingAccount = bindingAccountMapper.selectByUidAndType(uid, BindingAccount.TYPE_ALIPAY);
|
| | | if (bindingAccount != null)
|
| | | throw new BindingAccountException(1, "当前账户没有余额,无需修改,请有余额后修改。");
|
| | | else
|
| | | throw new BindingAccountException(1, "当前账户没有余额,请有余额后绑定。");
|
| | | }
|
| | | AlipayAccountValidNormalHistory latest = alipayAccountValidNormalHistoryMapper.selectLatestByUid(uid);
|
| | | if (latest != null) {
|
| | | Calendar caLatest = Calendar.getInstance();
|