diff --git a/backend/src/main/java/com/designhub/service/TaskItemService.java b/backend/src/main/java/com/designhub/service/TaskItemService.java index 9948387..2b11f34 100644 --- a/backend/src/main/java/com/designhub/service/TaskItemService.java +++ b/backend/src/main/java/com/designhub/service/TaskItemService.java @@ -142,6 +142,7 @@ public class TaskItemService { notification.setRelatedId(itemId); notification.setRelatedType("task_item"); notification.setPriority(1); // 普通 + notification.setPushDingtalk(1); // 推送到钉钉 notificationService.sendNotification(notification); } } @@ -279,6 +280,7 @@ public class TaskItemService { notification.setRelatedId(item.getTaskId()); notification.setRelatedType("task"); notification.setPriority(2); // 重要 + notification.setPushDingtalk(1); // 推送到钉钉 notificationService.sendNotification(notification); log.info("已通知接单部门负责人(ID: {})审核第 {} 组子任务", @@ -318,6 +320,7 @@ public class TaskItemService { notification.setRelatedId(mainTask.getId()); notification.setRelatedType("task"); notification.setPriority(1); // 普通 + notification.setPushDingtalk(1); // 推送到钉钉 notificationService.sendNotification(notification); } @@ -354,6 +357,7 @@ public class TaskItemService { notification.setRelatedId(itemId); notification.setRelatedType("task_item"); notification.setPriority(1); // 普通 + notification.setPushDingtalk(1); // 推送到钉钉 notificationService.sendNotification(notification); } @@ -438,6 +442,7 @@ public class TaskItemService { notification.setRelatedId(taskId); notification.setRelatedType("task"); notification.setPriority(2); + notification.setPushDingtalk(1); // 推送到钉钉 notificationService.sendNotification(notification); log.info("第 {} 组 {} 个子任务已指派给设计师 {}", groupNo, groupItems.size(), receiver.getRealName());