diff --git a/vetti-hotakes/src/main/java/com/vetti/hotake/domain/vo/HotakeInterviewInvitationVo.java b/vetti-hotakes/src/main/java/com/vetti/hotake/domain/vo/HotakeInterviewInvitationVo.java index 47db770..b341a84 100644 --- a/vetti-hotakes/src/main/java/com/vetti/hotake/domain/vo/HotakeInterviewInvitationVo.java +++ b/vetti-hotakes/src/main/java/com/vetti/hotake/domain/vo/HotakeInterviewInvitationVo.java @@ -29,4 +29,7 @@ public class HotakeInterviewInvitationVo extends BaseTemplateEmail { @ApiModelProperty("当前年") private String current_year; + + @ApiModelProperty("面试地址") + private String interview_now; } diff --git a/vetti-hotakes/src/main/java/com/vetti/hotake/service/impl/HotakeMeetingCalendarInfoServiceImpl.java b/vetti-hotakes/src/main/java/com/vetti/hotake/service/impl/HotakeMeetingCalendarInfoServiceImpl.java index fe266b3..324aff0 100644 --- a/vetti-hotakes/src/main/java/com/vetti/hotake/service/impl/HotakeMeetingCalendarInfoServiceImpl.java +++ b/vetti-hotakes/src/main/java/com/vetti/hotake/service/impl/HotakeMeetingCalendarInfoServiceImpl.java @@ -40,6 +40,7 @@ import org.springframework.transaction.annotation.Transactional; import com.vetti.hotake.mapper.HotakeMeetingCalendarInfoMapper; import com.vetti.hotake.domain.HotakeMeetingCalendarInfo; import com.vetti.hotake.service.IHotakeMeetingCalendarInfoService; +import org.springframework.util.Base64Utils; import javax.annotation.Resource; @@ -375,6 +376,11 @@ public class HotakeMeetingCalendarInfoServiceImpl extends BaseServiceImpl implem vo.setPosition_name(rolesInfo.getRoleName()); vo.setInterview_date(calendarInfoVo.getMeetingDate() + " "+calendarInfoVo.getTimes()); vo.setCurrent_year(String.valueOf(DateUtil.year(DateUtil.date()))); + + String param = "roleId="+rolesInfo.getId()+"&roleApplyId="+calendarVo.getRoleApplyId()+"&userName="+SecurityUtils.getUsername()+"&userType=candidate&token="; + String paramBase64 = Base64Utils.encodeToString(param.getBytes()); + String webUrl = "https://vetti.hotake.cn/#/interview/link?uuid="+paramBase64; + vo.setInterview_now(webUrl); verificationService.sendInterviewTemplate(user.getEmail(),twilioConfig.getTemplateIds().getInterviewTemplateCode(),vo); } }