admin
2019-12-27 ff076ec18ccc61d9d03863d859000e4a46c19a76
fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java
@@ -125,13 +125,13 @@
      redPackWinInviteMapper.insertSelective(winInvite);
   }
   
   @Override
   @RequestSerializableByKeyService(key = "#teamUid")
   @Transactional(rollbackFor = Exception.class)
   public void inviteSucceedReward(Long teamUid) throws Exception {
      // 是否在上线之后的邀请关系
      ThreeSale threeSale = threeSaleSerivce.getByWorkerIdAndTime(teamUid, TimeUtil.convertDateToTemp(Constant.RED_PACK_ONLINE_TIME));
      ThreeSale threeSale = threeSaleSerivce.getByWorkerIdAndTime(teamUid,
            TimeUtil.convertDateToTemp(Constant.RED_PACK_ONLINE_TIME));
      if (threeSale == null)
         return;
@@ -144,6 +144,11 @@
      // 小于2.0.2版本不增加
      if (!VersionUtil.greaterThan_2_1("appstore".equalsIgnoreCase(activeLog.getChannel()) ? "ios" : "android",
            activeLog.getVersionCode()))
         return;
      int totalRewardZero = redPackWinInviteMapper.countByUidAndTeamUidAndType(bossId, teamUid,
            RedPackWinInviteTypeEnum.zeroStageReward.name());
      if (totalRewardZero <= 0)
         return;
      // 同一队员奖励一次
@@ -222,7 +227,8 @@
         return;
      // 验证上下级关系
      ThreeSale threeSale = threeSaleSerivce.getByWorkerIdAndTime(teamUid, TimeUtil.convertDateToTemp(Constant.RED_PACK_ONLINE_TIME));
      ThreeSale threeSale = threeSaleSerivce.getByWorkerIdAndTime(teamUid,
            TimeUtil.convertDateToTemp(Constant.RED_PACK_ONLINE_TIME));
      if (threeSale == null || threeSale.getBoss().getId().longValue() != uid.longValue())
         return;
@@ -366,7 +372,6 @@
            money, "粉丝(好友)完成第三阶段连续[第" + monthSpace + "个月]", new Gson().toJson(dto));
   }
   @Override
   public List<RedPackWinProgressVO> getInviteProgressByWorkerId(Long uid, Long tid) {
      List<RedPackWinProgressVO> listVO = new ArrayList<RedPackWinProgressVO>();
@@ -410,12 +415,10 @@
      return listVO;
   }
   
   @Override
   public List<RedPackWinInvite> getWinTopListByBossId(int page, int count, Long uid) {
      return redPackWinInviteMapper.getWinTopListByBossId(count * (page-1), count, uid);
   }
   
   @Override
   public long countWinTopListByBossId(Long uid) {