diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/job/TaskSendStartMessageJob.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/job/TaskSendStartMessageJob.java index 2f1c69f..1681dd5 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/job/TaskSendStartMessageJob.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/job/TaskSendStartMessageJob.java @@ -82,17 +82,17 @@ public class TaskSendStartMessageJob implements JobHandler { List list = new ArrayList<>(); for (EnterpriseInspectionsDO enterpriseInspectionsDO : enterpriseInspectionsDOList) { //站内信发送通知 - NotifySendSingleToUserReqDTO notifyMessage = new NotifySendSingleToUserReqDTO(); - notifyMessage.setUserId(Long.valueOf(enterpriseInspectionsDO.getUserId())); - notifyMessage.setTemplateCode("task_messages"); - Map templateParams = new HashMap<>(); - templateParams.put("title", beforeTaskInfo.getTitle()); - templateParams.put("startTime", beforeTaskInfo.getStartDate()); - templateParams.put("endTime", beforeTaskInfo.getEndDate()); - templateParams.put("url", "sub/task/detail?taskId="+ enterpriseInspectionsDO.getTaskId()); - - notifyMessage.setTemplateParams(templateParams); - notifyMessageSendApi.sendSingleMessageToMember(notifyMessage); +// NotifySendSingleToUserReqDTO notifyMessage = new NotifySendSingleToUserReqDTO(); +// notifyMessage.setUserId(Long.valueOf(enterpriseInspectionsDO.getUserId())); +// notifyMessage.setTemplateCode("task_messages"); +// Map templateParams = new HashMap<>(); +// templateParams.put("title", beforeTaskInfo.getTitle()); +// templateParams.put("startTime", beforeTaskInfo.getStartDate()); +// templateParams.put("endTime", beforeTaskInfo.getEndDate()); +// templateParams.put("url", "sub/task/detail?taskId="+ enterpriseInspectionsDO.getTaskId()); +// +// notifyMessage.setTemplateParams(templateParams); +// notifyMessageSendApi.sendSingleMessageToMember(notifyMessage); enterpriseInspectionsDO.setStatus(2); list.add(enterpriseInspectionsDO);