[ADD] WorkflowStep edit 수정

main
bjkim 9 months ago
parent 2091b78d8e
commit d6df1addb5

@ -38,7 +38,6 @@ public class WorkflowStepEntity {
private String regUserId;
@Schema(description = "생성 일시", example = "2025-09-11T10:00:00")
@Column(nullable = false)
@CreatedDate
private LocalDateTime regDt;

@ -43,7 +43,8 @@ public class WorkFlowService {
WorkflowEntity existing = workflowRepository.findById(workflow.getId())
.orElseThrow(() -> new IllegalArgumentException("워크플로우가 존재하지 않습니다. id=" + workflow.getId()));
Integer maxVersion = existing.getVersion();
workflow.setVersion(maxVersion != null ? maxVersion + 1 : 1); }
workflow.setVersion(maxVersion != null ? maxVersion + 1 : 1);
}
return workflowRepository.save(workflow);
}

Loading…
Cancel
Save