Skip to content

Commit

Permalink
formate code
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 committed Oct 10, 2023
1 parent 8ed12b9 commit 25379bb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ public class APIController {
@Log(title = "Submit Task", businessType = BusinessType.SUBMIT)
public Result<JobResult> submitTask(@RequestBody TaskDTO taskDTO) throws ExcuteException {
JobResult jobResult = taskService.submitTask(taskDTO.getId(), null);
if (jobResult.isSuccess()){
if (jobResult.isSuccess()) {
return Result.succeed(jobResult, Status.EXECUTE_SUCCESS);
}else {
} else {
return Result.failed(jobResult, jobResult.getError());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public class TaskController {
@Log(title = "Submit Task", businessType = BusinessType.SUBMIT)
public Result<JobResult> submitTask(@RequestParam Integer id) throws ExcuteException {
JobResult jobResult = taskService.submitTask(id, null);
if (jobResult.isSuccess()){
if (jobResult.isSuccess()) {
return Result.succeed(jobResult, Status.EXECUTE_SUCCESS);
}else {
} else {
return Result.failed(jobResult, jobResult.getError());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
private final UDFTemplateService udfTemplateService;
private final DataSourceProperties dsProperties;
private final UserService userService;

@Resource
@Lazy
private CatalogueService catalogueService;
Expand Down Expand Up @@ -427,7 +428,7 @@ public void initTenantByTaskId(Integer id) {
}

@Override
public boolean changeTaskLifeRecyle(Integer taskId, JobLifeCycle lifeCycle){
public boolean changeTaskLifeRecyle(Integer taskId, JobLifeCycle lifeCycle) {
TaskDTO taskInfoById = getTaskInfoById(taskId);
taskInfoById.setStep(lifeCycle.getValue());
return saveOrUpdate(taskInfoById.buildTask());
Expand All @@ -436,7 +437,7 @@ public boolean changeTaskLifeRecyle(Integer taskId, JobLifeCycle lifeCycle){
@Override
public boolean saveOrUpdateTask(Task task) {

if (JobLifeCycle.ONLINE.equalsValue(task.getStep())){
if (JobLifeCycle.ONLINE.equalsValue(task.getStep())) {
throw new BusException(Status.TASK_IS_ONLINE.getMessage());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ public enum Status {
TASK_UPDATE_FAILED(12008, "task.update.failed"),
TASK_IS_ONLINE(12009, "task.is.online"),


/**
* alert instance
*/
Expand Down

0 comments on commit 25379bb

Please sign in to comment.