diff --git a/src/main/kotlin/goodspace/bllsoneshot/entity/assignment/Task.kt b/src/main/kotlin/goodspace/bllsoneshot/entity/assignment/Task.kt index 18aa47c..66cb677 100644 --- a/src/main/kotlin/goodspace/bllsoneshot/entity/assignment/Task.kt +++ b/src/main/kotlin/goodspace/bllsoneshot/entity/assignment/Task.kt @@ -18,7 +18,7 @@ class Task( @Column(nullable = false) var subject: Subject, - val date: LocalDate? = null, + var date: LocalDate? = null, @Column(nullable = false) var name: String, diff --git a/src/main/kotlin/goodspace/bllsoneshot/mentor/dto/request/MentorTaskUpdateRequest.kt b/src/main/kotlin/goodspace/bllsoneshot/mentor/dto/request/MentorTaskUpdateRequest.kt index 78eac31..f4efdc2 100644 --- a/src/main/kotlin/goodspace/bllsoneshot/mentor/dto/request/MentorTaskUpdateRequest.kt +++ b/src/main/kotlin/goodspace/bllsoneshot/mentor/dto/request/MentorTaskUpdateRequest.kt @@ -6,10 +6,13 @@ import goodspace.bllsoneshot.task.dto.request.WorksheetCreateRequest import jakarta.validation.constraints.NotBlank import jakarta.validation.constraints.PositiveOrZero import jakarta.validation.constraints.Size +import java.time.LocalDate data class MentorTaskUpdateRequest( val subject: Subject, + val date: LocalDate?, + @field:NotBlank(message = "할 일 이름이 비어 있습니다.") @field:Size(max = 50, message = "할 일 이름은 50자를 초과할 수 없습니다.") val taskName: String, diff --git a/src/main/kotlin/goodspace/bllsoneshot/mentor/service/MentorTaskService.kt b/src/main/kotlin/goodspace/bllsoneshot/mentor/service/MentorTaskService.kt index 661e268..c0091f5 100644 --- a/src/main/kotlin/goodspace/bllsoneshot/mentor/service/MentorTaskService.kt +++ b/src/main/kotlin/goodspace/bllsoneshot/mentor/service/MentorTaskService.kt @@ -99,6 +99,7 @@ class MentorTaskService( validateMentorAccess(mentorId, task) task.subject = request.subject + task.date = request.date task.name = request.taskName task.goalMinutes = request.goalMinutes replaceWorksheets(task, request)