yujian
2020-05-23 28cf328a098334b51a3e9d2d56f983fb8c862211
fanli/src/main/java/com/yeshi/fanli/service/impl/money/extract/BindingAccountServiceImpl.java
@@ -117,7 +117,7 @@
      return bindingAccountMapper.deleteByPrimaryKey(id);
   }
   @Transactional
   @Transactional(rollbackFor=Exception.class)
   @Override
   public void validAlipayAccount(Long uid, String account, String name)
         throws AlipayTransferException, AlipayApiException, AlipayAccountException {
@@ -135,7 +135,6 @@
                  "该支付宝账号已被其他账号绑定,请更换其他的支付宝账号来绑定");
      }
      // TODO 做频率验证-每月验证一次
      AlipayAccountValidNormalHistory latest = alipayAccountValidNormalHistoryMapper.selectLatestByUid(uid);
      if (latest != null) {
         Calendar caLatest = Calendar.getInstance();
@@ -177,7 +176,7 @@
      if (userInfo.getMyHongBao().compareTo(money) >= 0) {
         // 扣款
         userMoneyService.subUserMoney(uid, money, userMoneyDetail);
         userMoneyMsgNotificationService.alipayAccountValid(history);
         userMoneyMsgNotificationService.alipayAccountValid(history,"1个月",latest!=null);
      } else {// 余额不足,暂时不扣款,加入借贷关系
         UserMoneyDebt debt = new UserMoneyDebt();
         debt.setCreateTime(new Date());
@@ -225,7 +224,7 @@
      }
   }
   @Transactional
   @Transactional(rollbackFor=Exception.class)
   @Override
   public BindingAccount changeAlipayBindingWithVerify(Long uid, String name, String account)
         throws AlipayTransferException, AlipayApiException, AlipayAccountException {