fix: 优化群通知模板
- 移除截止时间(任务从接单开始计时) - 预估工时添加说明'接单后开始计时' - 添加访问地址 qd.yydd.ai
This commit is contained in:
parent
6dcc725b48
commit
92e30a9b23
@ -310,14 +310,9 @@ public class TaskApprovalService {
|
||||
content.append("📝 **子类型**:").append(task.getTaskSubType()).append("\n");
|
||||
}
|
||||
|
||||
content.append("\n");
|
||||
|
||||
// 时间信息
|
||||
if (task.getEstimatedHours() != null) {
|
||||
content.append("⏱️ **预估工时**:").append(task.getEstimatedHours().intValue()).append(" 小时\n");
|
||||
}
|
||||
if (task.getDeadline() != null) {
|
||||
content.append("⏰ **截止时间**:").append(task.getDeadline().format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"))).append("\n");
|
||||
content.append("⏱️ **预估工时**:").append(task.getEstimatedHours().intValue()).append(" 小时(接单后开始计时)\n");
|
||||
}
|
||||
|
||||
content.append("\n");
|
||||
@ -332,7 +327,7 @@ public class TaskApprovalService {
|
||||
|
||||
content.append("\n");
|
||||
content.append("━━━━━━━━━━━━━━━━━━━━\n");
|
||||
content.append(" 💡 请前往任务大厅抢单 \n");
|
||||
content.append("💡 前往抢单:[qd.yydd.ai](http://qd.yydd.ai)\n");
|
||||
content.append("━━━━━━━━━━━━━━━━━━━━");
|
||||
|
||||
log.info("准备调用钉钉机器人发送消息,title={}", title);
|
||||
|
||||
@ -555,8 +555,6 @@ public class TaskItemService {
|
||||
.append("(").append(item.getTotalScore() != null ? item.getTotalScore() : 0).append("分)\n");
|
||||
}
|
||||
|
||||
content.append("\n");
|
||||
|
||||
// 发起人信息
|
||||
if (mainTask.getPublisherName() != null && !mainTask.getPublisherName().isEmpty()) {
|
||||
content.append("👤 **发起人**:").append(mainTask.getPublisherName()).append("\n");
|
||||
@ -567,7 +565,7 @@ public class TaskItemService {
|
||||
|
||||
content.append("\n");
|
||||
content.append("━━━━━━━━━━━━━━━━━━━━\n");
|
||||
content.append(" 💡 请前往任务大厅抢单 \n");
|
||||
content.append("💡 前往抢单:[qd.yydd.ai](http://qd.yydd.ai)\n");
|
||||
content.append("━━━━━━━━━━━━━━━━━━━━");
|
||||
|
||||
dingTalkService.sendRobotMessage(title, content.toString());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user