diff --git a/server/odc-service/src/main/java/com/oceanbase/odc/service/schedule/ScheduleTaskService.java b/server/odc-service/src/main/java/com/oceanbase/odc/service/schedule/ScheduleTaskService.java index caf1f3ffd7..284aa3ec83 100644 --- a/server/odc-service/src/main/java/com/oceanbase/odc/service/schedule/ScheduleTaskService.java +++ b/server/odc-service/src/main/java/com/oceanbase/odc/service/schedule/ScheduleTaskService.java @@ -239,6 +239,10 @@ public void updateStatusById(Long id, TaskStatus status) { scheduleTaskRepository.updateStatusById(id, status); } + public int updateStatusById(Long id, TaskStatus newStatus, List previousStatus) { + return scheduleTaskRepository.updateStatusById(id, newStatus, previousStatus); + } + public void update(ScheduleTask scheduleTask) { ScheduleTaskEntity entity = scheduleTaskMapper.modelToEntity(scheduleTask); scheduleTaskRepository.update(entity);