| | |
| | |
|
| | | // 同一队员只记录一次
|
| | | int totalReward = redPackWinInviteMapper.countByUidAndTeamUidAndType(bossId, teamUid,
|
| | | RedPackWinInviteTypeEnum.oneStageReward.name());
|
| | | RedPackWinInviteTypeEnum.zeroStageReward.name());
|
| | | if (totalReward > 0)
|
| | | return;
|
| | |
|
| | |
| | | winInvite.setTeamUid(teamUid);
|
| | | winInvite.setMoney(new BigDecimal(0));
|
| | | winInvite.setType(RedPackWinInviteTypeEnum.zeroStageReward);
|
| | | winInvite.setIdentifyCode(StringUtil.Md5(RedPackWinInviteTypeEnum.oneStageReward.name() + ":" + teamUid));
|
| | | winInvite.setIdentifyCode(StringUtil.Md5(RedPackWinInviteTypeEnum.zeroStageReward.name() + ":" + teamUid));
|
| | | winInvite.setCreateTime(new Date());
|
| | | winInvite.setUpdateTime(new Date());
|
| | | redPackWinInviteMapper.insertSelective(winInvite);
|
| | |
| | | dto.setNickName(userInfo.getNickName());
|
| | | dto.setPortrait(userInfo.getPortrait());
|
| | | userMoneyMsgNotificationService.teamRedPackRewardMsg(bossId, MsgTypeMoneyTypeEnum.redPackOneStageReward, money,
|
| | | "队员(好友)完成第一阶段", new Gson().toJson(dto));
|
| | | "粉丝(好友)完成第一阶段", new Gson().toJson(dto));
|
| | | }
|
| | |
|
| | | @RequestSerializableByKeyService(key = "#uid")
|
| | |
| | | dto.setNickName(userInfo.getNickName());
|
| | | dto.setPortrait(userInfo.getPortrait());
|
| | | userMoneyMsgNotificationService.teamRedPackRewardMsg(bossId, MsgTypeMoneyTypeEnum.redPackTwoStageReward, money,
|
| | | "队员(好友)完成第二阶段", new Gson().toJson(dto));
|
| | | "粉丝(好友)完成第二阶段", new Gson().toJson(dto));
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | dto.setNickName(userInfo.getNickName());
|
| | | dto.setPortrait(userInfo.getPortrait());
|
| | | userMoneyMsgNotificationService.teamRedPackRewardMsg(bossId, MsgTypeMoneyTypeEnum.redPackThreeStageReward,
|
| | | money, "队员(好友)完成第三阶段连续[第" + monthSpace + "个月]", new Gson().toJson(dto));
|
| | | money, "粉丝(好友)完成第三阶段连续[第" + monthSpace + "个月]", new Gson().toJson(dto));
|
| | | }
|
| | |
|
| | |
|