Skip to content

Commit

Permalink
fix the team
Browse files Browse the repository at this point in the history
  • Loading branch information
liberhe committed Dec 17, 2023
1 parent 4483bdf commit 07548b0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/com/dl/officialsite/team/TeamService.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,17 @@ public void exit(TeamMemberJoinVO teamMember, String address) {
teamMember1.setStatus(Constants.EXIT_TEAM);
teamMemberRepository.save(teamMember1);
});
}

Team team = teamRepository.findById(teamMember.getTeamId()).get();
Member member1 = memberRepository.findById(teamMember.getMemberId()).get();
String subject = team.getTeamName() + "团队成员退出";
String text = member1.getNickName() + "成员退出";
emailService.sendMail(member.get().getEmail(), subject, text);
Team team = teamRepository.findById(teamMember.getTeamId()).get();
Member member1 = memberRepository.findById(teamMember.getMemberId()).get();
String subject = team.getTeamName() + "团队成员退出";
String text = member1.getNickName() + "成员退出";
emailService.sendMail(member.get().getEmail(), subject, text);
} else {
throw new BizException(CodeEnums.NOT_AUTHORITY_FOR_EXIT.getCode(),
CodeEnums.NOT_AUTHORITY_FOR_EXIT.getMsg()) ;
}

} else {
throw new BizException(CodeEnums.NOT_AUTHORITY_FOR_EXIT.getCode(),
CodeEnums.NOT_AUTHORITY_FOR_EXIT.getMsg()) ;
}
}

Expand Down

0 comments on commit 07548b0

Please sign in to comment.