|
|
@@ -137,9 +137,8 @@ public class DatadetailController {
|
|
|
List<Map<String, Object>> completeCountList = dataList.stream()
|
|
|
.filter(x -> HistoricProcessInstance.STATE_COMPLETED.equals(x.get("current_state").toString()))
|
|
|
.collect(Collectors.toList());
|
|
|
- DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
completeCountList.stream().forEach(el -> {
|
|
|
- Duration diff = Duration.between(LocalDateTime.parse(el.get("start_time").toString(), formatter), LocalDateTime.parse(el.get("end_time").toString(), formatter));
|
|
|
+ Duration diff = Duration.between((LocalDateTime)el.get("start_time"), (LocalDateTime)el.get("end_time"));
|
|
|
secondList.add(diff.getSeconds());
|
|
|
});
|
|
|
|