| | |
| | | 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;
|
| | |
|
| | |
| | | // 小于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;
|
| | |
|
| | | // 同一队员奖励一次
|
| | |
| | | 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;
|
| | |
|
| | |
| | | money, "粉丝(好友)完成第三阶段连续[第" + monthSpace + "个月]", new Gson().toJson(dto));
|
| | | }
|
| | |
|
| | | |
| | | @Override
|
| | | public List<RedPackWinProgressVO> getInviteProgressByWorkerId(Long uid, Long tid) {
|
| | | List<RedPackWinProgressVO> listVO = new ArrayList<RedPackWinProgressVO>();
|
| | |
| | | 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) {
|