消息提醒

main
zhangyue 2026-05-15 11:03:41 +08:00
parent b5165f77a3
commit 7070c2d1ff
1 changed files with 5 additions and 1 deletions

View File

@ -137,10 +137,14 @@ public class HiddenAcceptRecordUpdateExe {
Map<String, Object> sendParamsPigeonhole = new HashMap<>(); Map<String, Object> sendParamsPigeonhole = new HashMap<>();
sendParamsPigeonhole.put("checkTitle", inspectionDO.getProjectName()); sendParamsPigeonhole.put("checkTitle", inspectionDO.getProjectName());
messageNoticeExe.messageNotice(hiddenDO.getRectificationUserId(), messageTemplateConfig.getCheckInitiatorApplyAcceptanceNotPass(), sendParamsPigeonhole); messageNoticeExe.messageNotice(hiddenDO.getRectificationUserId(), messageTemplateConfig.getCheckInitiatorApplyAcceptanceNotPass(), sendParamsPigeonhole);
List<SafetyEnvironmentalInspectionUserDO> userList = safetyEnvironmentalInspectionUserRepository.listAllByInspectionId(hiddenDO.getForeignKey(), 7); List<SafetyEnvironmentalInspectionUserDO> userList = safetyEnvironmentalInspectionUserRepository.listAllByInspectionId(hiddenDO.getForeignKey(), 7);
if (userList != null && userList.size() > 0){
messageNoticeExe.sendMessageAddEvent(userList.get(0).getUserId(), "您有一条安全检查任务的隐患验收未通过,请及时处理。","验收被驳回", hiddenDO.getId(), hiddenDO.getId()); messageNoticeExe.sendMessageAddEvent(userList.get(0).getUserId(), "您有一条安全检查任务的隐患验收未通过,请及时处理。","验收被驳回", hiddenDO.getId(), hiddenDO.getId());
} }
}
if (!res) { if (!res) {
throw new BizException("修改失败"); throw new BizException("修改失败");