-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VKT(Frontend & Backend): enrollment appointment continues
- Loading branch information
Showing
21 changed files
with
392 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -375,3 +375,14 @@ SELECT exam_event_id, (SELECT max(person_id) FROM person), | |
'CANCELED', true, | ||
'[email protected]', '0404040404', null, null, null, null | ||
FROM exam_event; | ||
|
||
-- Insert enrollment appointment | ||
INSERT INTO enrollment_appointment(person_id, | ||
skill_oral, skill_textual, skill_understanding, | ||
partial_exam_speaking, partial_exam_speech_comprehension, partial_exam_writing, partial_exam_reading_comprehension, | ||
status, digital_certificate_consent, email, phone_number, street, postal_code, town, country) | ||
VALUES (SELECT max(person_id) FROM person), | ||
true, true, true, | ||
true, true, true, true, | ||
'COMPLETED', true, | ||
'[email protected]', '0404040404', null, null, null, null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
backend/vkt/src/main/java/fi/oph/vkt/api/dto/PublicEnrollmentAppointmentDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package fi.oph.vkt.api.dto; | ||
|
||
import fi.oph.vkt.model.type.EnrollmentStatus; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Builder; | ||
import lombok.NonNull; | ||
|
||
@Builder | ||
public record PublicEnrollmentAppointmentDTO( | ||
@NonNull @NotNull Long id, | ||
@NonNull @NotNull Boolean oralSkill, | ||
@NonNull @NotNull Boolean textualSkill, | ||
@NonNull @NotNull Boolean understandingSkill, | ||
@NonNull @NotNull Boolean speakingPartialExam, | ||
@NonNull @NotNull Boolean speechComprehensionPartialExam, | ||
@NonNull @NotNull Boolean writingPartialExam, | ||
@NonNull @NotNull Boolean readingComprehensionPartialExam, | ||
@NonNull @NotNull EnrollmentStatus status, | ||
String previousEnrollment, | ||
@NonNull @NotNull Boolean digitalCertificateConsent, | ||
@NonNull @NotBlank String email, | ||
@NonNull @NotBlank String phoneNumber, | ||
String street, | ||
String postalCode, | ||
String town, | ||
String country | ||
) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.