Commit eace3521 by HlQ

[fix] 解决工单流转消息通知联系方式为 null

1 parent b6d1df19
...@@ -336,7 +336,6 @@ public class TaskServiceImpl extends MPJBaseServiceImpl<TaskMapper, Task> implem ...@@ -336,7 +336,6 @@ public class TaskServiceImpl extends MPJBaseServiceImpl<TaskMapper, Task> implem
var msg = buildMsg(String.join(",", useridList), store.getName(), existTask); var msg = buildMsg(String.join(",", useridList), store.getName(), existTask);
String pushRes = dingMod.workMsg(msg); String pushRes = dingMod.workMsg(msg);
// todo 异步微信公众号消息推送
if (task.getStatus() == 3) { if (task.getStatus() == 3) {
Opt.ofNullable(existTask.getTaskTempId()) Opt.ofNullable(existTask.getTaskTempId())
.map(taskTempId -> taskTempService.getById(taskTempId).getOpenid()) .map(taskTempId -> taskTempService.getById(taskTempId).getOpenid())
...@@ -571,7 +570,7 @@ public class TaskServiceImpl extends MPJBaseServiceImpl<TaskMapper, Task> implem ...@@ -571,7 +570,7 @@ public class TaskServiceImpl extends MPJBaseServiceImpl<TaskMapper, Task> implem
#### 发送时间:{} #### 发送时间:{}
"""; """;
String markdown = StrUtil.format(template, String markdown = StrUtil.format(template,
storeName, task.getUuid(), task.getRepairPeople(), task.getRepairPhone(), storeName, task.getUuid(), task.getRepairPeople(), ObjUtil.defaultIfNull(task.getRepairPhone(), task.getEmail()),
orderStatusMap.get(task.getStatus()), task.getFaultDescription(), TimeUtil.formatNormal(LocalDateTime.now())); orderStatusMap.get(task.getStatus()), task.getFaultDescription(), TimeUtil.formatNormal(LocalDateTime.now()));
content.put("markdown", markdown).put("btn_orientation", "1"); content.put("markdown", markdown).put("btn_orientation", "1");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!