Commit 5b62110c authored by 黎博's avatar 黎博

修复持续时间为负数的情况

parent eca7f3ce
......@@ -343,6 +343,10 @@ public class DingdingUtils {
DateTime startDate = issue.getCreationDate();
DateTime curDate = new DateTime();
int duration = calculateBugFixTime(startDate, curDate);
// 异常情况处理
if (duration < 0) {
duration = 1;
}
content += "- 持续时间:" + duration + "小时\n\n";
}
content += "**截止当前,共有" + String.valueOf(count) + "个工单未解决,请对应经办人尽快跟进解决**";
......
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