|
|
|
@@ -6,6 +6,7 @@ import com.ruoyi.platform.mapper.ExperimentDao; |
|
|
|
import com.ruoyi.platform.mapper.ExperimentInsDao; |
|
|
|
import com.ruoyi.platform.service.ExperimentInsService; |
|
|
|
import com.ruoyi.platform.service.WorkflowService; |
|
|
|
import com.ruoyi.platform.utils.DateUtils; |
|
|
|
import com.ruoyi.platform.utils.HttpUtils; |
|
|
|
import com.ruoyi.platform.utils.JsonUtils; |
|
|
|
import com.ruoyi.system.api.model.LoginUser; |
|
|
|
@@ -245,14 +246,13 @@ public class ExperimentInsServiceImpl implements ExperimentInsService { |
|
|
|
//解析流水线开始时间,开始时间一定存在,所以不需要判断 |
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); |
|
|
|
|
|
|
|
String startedAtString = (String) status.get("startedAt"); |
|
|
|
Date startTime = dateFormat.parse(startedAtString); |
|
|
|
Date startTime = DateUtils.convertUTCtoShanghaiDate((String) status.get("startedAt")); |
|
|
|
experimentIns.setStartTime(startTime); |
|
|
|
|
|
|
|
//解析流水线结束时间 |
|
|
|
String finishedAtString = (String) status.get("finishedAt"); |
|
|
|
if (finishedAtString != null && !finishedAtString.isEmpty()) { |
|
|
|
Date finishTime = dateFormat.parse(finishedAtString); |
|
|
|
Date finishTime = DateUtils.convertUTCtoShanghaiDate(finishedAtString); |
|
|
|
experimentIns.setFinishTime(finishTime); |
|
|
|
} |
|
|
|
|
|
|
|
|