From a6a3a2e5f2660e587fec30bce64b569e846ae4a0 Mon Sep 17 00:00:00 2001 From: tinker Date: Thu, 14 Nov 2024 16:58:52 +0800 Subject: [PATCH] code format --- .../oceanbase/odc/service/schedule/ScheduleTaskService.java | 4 ++++ 1 file changed, 4 insertions(+) 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);