通知站内信

This commit is contained in:
ran.shang
2025-06-26 17:36:59 +08:00
parent 8a77c9179b
commit 881f196ef1
8 changed files with 507 additions and 79 deletions

View File

@@ -1,21 +0,0 @@
package com.newyetai.usercenter.notice.constant;
public enum NoticeBizTypeEnum {
/** 岗位报名-邀请面试 */
POSITION_INVITE("position_invite"),
/** 岗位报名-面试结果 */
POSITION_INVITE_result("position_invite_result"),
;
private String type;
NoticeBizTypeEnum(String type) {
this.type = type;
}
public String getType() {
return type;
}
}

View File

@@ -0,0 +1,23 @@
package com.newyetai.usercenter.notice.constant;
public enum NoticeTemplateCodeEnum {
/** 岗位报名-邀请面试 */
POSITION_INVITE("position_invite"),
/** 岗位报名-面试通过 */
POSITION_INTERVIEW_PASS("position_interview_pass"),
/** 岗位报名-面试不通过 */
POSITION_INTERVIEW_FAIL("position_interview_fail"),
;
private String type;
NoticeTemplateCodeEnum(String type) {
this.type = type;
}
public String getType() {
return type;
}
}

View File

@@ -90,6 +90,7 @@ public class NoticeSendRecordServiceImpl implements NoticeSendRecordService {
noticeTemplateMapper.listNoticeTemplateDTO(noticeTemplateQueryDTO);
Assert.isTrue(!noticeTemplateDTOs.isEmpty(), "未找到对应通知模版");
NoticeTemplateDTO noticeTemplateDTO = noticeTemplateDTOs.get(0);
Assert.isTrue(noticeTemplateDTO.getEnabled(), "通知模版未开启");
tempOperateDto.setTemplateId(noticeTemplateDTO.getId());
// 平台模版指定接收人机构为平台
Long receiverOrgId =