fix: 同步禅道缺陷有大量日志报错
--bug=1009259 --user=陈建星 【测试跟踪】同步禅道缺陷后,页面一直转圈,metersphere疯狂刷日志 https://www.tapd.cn/55049933/s/10884722
This commit is contained in:
parent
7958afc1f6
commit
11eb4bc637
|
@ -162,8 +162,12 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
|
|||
issue.setReporter(bugObj.getOpenedBy());
|
||||
issue.setPlatform(key);
|
||||
try {
|
||||
issue.setCreateTime(bug.getLong("openedDate"));
|
||||
issue.setUpdateTime(bug.getLong("lastEditedDate"));
|
||||
String openedDate = bug.getString("openedDate");
|
||||
String lastEditedDate = bug.getString("lastEditedDate");
|
||||
if (StringUtils.isNotBlank(openedDate) && !openedDate.startsWith("0000-00-00"))
|
||||
issue.setCreateTime(bug.getLong("openedDate"));
|
||||
if (StringUtils.isNotBlank(lastEditedDate) && !lastEditedDate.startsWith("0000-00-00"))
|
||||
issue.setUpdateTime(bug.getLong("lastEditedDate"));
|
||||
} catch (Exception e) {
|
||||
LogUtil.error("update zentao time" + e.getMessage());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue