|
@@ -845,7 +845,7 @@ public class InitController {
|
|
|
// 不存在审核历史说明卡在服务商管理员
|
|
|
if (CollUtil.isEmpty(sysCheckChainNodeCheckHistories)) {
|
|
|
vendorUnfinishedCount++;
|
|
|
- vendorUnfinishedTime += Duration.between(task.getCreateTime(), endTime).getSeconds();
|
|
|
+ vendorUnfinishedTime += getDurationSecond(task.getCreateTime(), endTime);
|
|
|
}
|
|
|
// 判断其他节点
|
|
|
else {
|
|
@@ -973,7 +973,7 @@ public class InitController {
|
|
|
|
|
|
if (CollUtil.isEmpty(cityCheckHis)) {
|
|
|
count++;
|
|
|
- time += Duration.between(task.getCreateTime(), endTime).getSeconds();
|
|
|
+ time += getDurationSecond(task.getCreateTime(), endTime);
|
|
|
nextFlag = false;
|
|
|
} else {
|
|
|
List<SysCheckChainNodeCheckHistory> collect = cityCheckHis.stream().sorted(Comparator.comparingInt(SysCheckChainNodeCheckHistory::getHistoryId)).collect(Collectors.toList());
|
|
@@ -998,4 +998,11 @@ public class InitController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ private long getDurationSecond(LocalDateTime start, LocalDateTime end) {
|
|
|
+ long seconds = Duration.between(start, end).getSeconds();
|
|
|
+
|
|
|
+ return Math.max(seconds, 0L);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|