admin
2019-09-12 54abf1a2beaf71eb54a71c519510229df34fd600
账户绑定提示语修改
1个文件已修改
10 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/service/impl/user/BindingAccountServiceImpl.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/BindingAccountServiceImpl.java
@@ -274,9 +274,13 @@
    @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();