yujian
2019-03-07 e6cb7c27384f22b39ccee584028e23b56c30e9ee
fanli/src/main/java/com/yeshi/fanli/service/impl/user/ExtractServiceImpl.java
@@ -54,6 +54,7 @@
import com.yeshi.fanli.log.LogHelper;
import com.yeshi.fanli.service.inter.config.ConfigService;
import com.yeshi.fanli.service.inter.config.SystemConfigService;
import com.yeshi.fanli.service.inter.msg.UserMoneyMsgNotificationService;
import com.yeshi.fanli.service.inter.push.PushService;
import com.yeshi.fanli.service.inter.user.AccountDetailsService;
import com.yeshi.fanli.service.inter.user.AccountMessageService;
@@ -154,6 +155,9 @@
   private UserMoneyDetailMapper userMoneyDetailMapper;
   @Resource
   private UserMoneyMsgNotificationService userMoneyMsgNotificationService;
   @Resource
   private AlipayAccountValidNormalHistoryMapper alipayAccountValidNormalHistoryMapper;
   public List<Extract> getExtractInfoByUid(long uid) {
@@ -199,7 +203,7 @@
   @Transactional
   public synchronized void rejectExtract(long id, String reason, long extractTime, AdminUser admin)
         throws ObjectStateException, NotExistObjectException {
      Extract find = extractDao.find(Extract.class, id);
      Extract find = extractMapper.selectByPrimaryKey(id);
      if (find == null) {
         throw new NotExistObjectException("不存在该对象");
@@ -274,6 +278,9 @@
      } catch (Exception e) {
         e.printStackTrace();
      }
      // 新版通知
      userMoneyMsgNotificationService.extractFail(find, reason);
   }
   /**
@@ -331,6 +338,8 @@
      }
      userNotificationService.extractApply(extract.getUserInfo().getId());
      // 添加新版通知
      userMoneyMsgNotificationService.extractApplay(extract);
      if ("是".equals(autoExtract)) {
         LogHelper.userInfo("uid=" + user.getId() + ",提交转账申请!");
@@ -507,6 +516,8 @@
            e.printStackTrace();
         }
         // 新版提现
         userMoneyMsgNotificationService.extractFail(extract, null);
      }
   }
@@ -530,6 +541,7 @@
      Extract updateExtract = new Extract();
      updateExtract.setId(extract.getId());
      updateExtract.setState(Constant.EXTRACT_PASS);
      updateExtract.setReceiveTime(new Date());
      updateExtract.setReason("提现成功");
      extractMapper.updateByPrimaryKeySelective(updateExtract);
@@ -542,7 +554,8 @@
      } catch (Exception e) {
         e.printStackTrace();
      }
      // 新版通知
      userMoneyMsgNotificationService.extractSuccess(extract);
   }
   /**