Skip to content

Commit

Permalink
perf: 定时任务详情数据加载方式优化 TencentBlueKing#3284
Browse files Browse the repository at this point in the history
1.修复不准确的列表赋值逻辑。
  • Loading branch information
jsonwan committed Nov 14, 2024
1 parent fb8611a commit 661dbde
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,9 @@ public static CronJobVO toVO(CronJobInfoDTO cronJobInfo) {
cronJobVO.setCronExpression(null);
}
cronJobVO.setExecuteTime(cronJobInfo.getExecuteTime());
if (CollectionUtils.isNotEmpty(cronJobInfo.getVariableValue())) {
if (cronJobInfo.getVariableValue() != null) {
cronJobVO.setVariableValue(cronJobInfo.getVariableValue().stream().map(CronJobVariableDTO::toVO)
.collect(Collectors.toList()));
} else {
cronJobVO.setVariableValue(Collections.emptyList());
}
cronJobVO.setLastExecuteStatus(cronJobInfo.getLastExecuteStatus());
cronJobVO.setLastExecuteErrorCode(cronJobInfo.getLastExecuteErrorCode());
Expand Down

0 comments on commit 661dbde

Please sign in to comment.