Commit 9defd6d1 authored by 黎博's avatar 黎博

发送进度报告兼容BUG经办人为空的情况

parent fdc7893c
...@@ -127,7 +127,13 @@ public class DingdingUtils { ...@@ -127,7 +127,13 @@ public class DingdingUtils {
content = content + count + "、[" + issue.getSummary().replace("\"", "") + "](" + issueUrl + ")\n"; content = content + count + "、[" + issue.getSummary().replace("\"", "") + "](" + issueUrl + ")\n";
content = content + "- 优先级:" + issue.getPriority().getName() + "\n"; content = content + "- 优先级:" + issue.getPriority().getName() + "\n";
content = content + "- 状态:" + issue.getStatus().getName() + "\n"; content = content + "- 状态:" + issue.getStatus().getName() + "\n";
content = content + "- 经办人:" + issue.getAssignee().getDisplayName() + "\n\n"; String assignee = "";
if (issue.getAssignee() == null) {
assignee = "未分配";
} else {
assignee = issue.getAssignee().getDisplayName();
}
content = content + "- 经办人:" + assignee + "\n\n";
} }
if (risk != null && !risk.isEmpty()) { if (risk != null && !risk.isEmpty()) {
content += "**风险:**\n\n"; content += "**风险:**\n\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment