Skip to content

Commit

Permalink
Merge pull request #58 from cheng521521/main
Browse files Browse the repository at this point in the history
fix: member join feature
  • Loading branch information
yanyanho authored Nov 9, 2023
2 parents beca9ee + a155c7c commit 3ffa991
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/dl/officialsite/team/TeamService.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import javax.transaction.Transactional;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
Expand All @@ -32,6 +33,7 @@
* @Date 2023/10/21 17:23
* @Description TODO
**/
@Slf4j
@Service
public class TeamService {

Expand Down Expand Up @@ -115,7 +117,8 @@ public void join(TeamMemberJoinVO teamMember) {
String subject = team.getTeamName() + "团队新成员加入申请";
List<String> mailAddress = new ArrayList<>();
mailAddress.add(email);
emailService.memberExitTeam(mailAddress, subject, subject);
log.info("发送邮件给管理员:{},接收地址{}", email, mailAddress);
emailService.memberJoinTeam(mailAddress, subject, subject);
} else {
throw new BizException(CodeEnums.TEAM_ADMIN_NOT_EXIST.getCode(),
CodeEnums.TEAM_ADMIN_NOT_EXIST.getMsg());
Expand Down

0 comments on commit 3ffa991

Please sign in to comment.