Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/CEOS-Developers/CEOS-BE into…
Browse files Browse the repository at this point in the history
… dev
  • Loading branch information
hyunihs committed Oct 23, 2023
2 parents 70e5fc1 + 49ee6be commit 3886759
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public class Recruitment extends BaseEntity {

@NotNull private LocalDate otDate;

@NotNull private LocalDate ideathonDate;

@NotNull private LocalDate hackathonDate;

@NotNull private LocalDate demodayDate;

private LocalDateTime applicationExcelCreatedAt;
Expand All @@ -68,6 +72,8 @@ private Recruitment(
LocalDate resultDateFinal,
String openChatUrl,
LocalDate otDate,
LocalDate ideathonDate,
LocalDate hackathonDate,
LocalDate demodayDate,
LocalDateTime applicationExcelCreatedAt) {
this.generation = generation;
Expand All @@ -82,6 +88,8 @@ private Recruitment(
this.resultDateFinal = resultDateFinal;
this.openChatUrl = openChatUrl;
this.otDate = otDate;
this.ideathonDate = ideathonDate;
this.hackathonDate = hackathonDate;
this.demodayDate = demodayDate;
this.applicationExcelCreatedAt = applicationExcelCreatedAt;
}
Expand All @@ -99,6 +107,8 @@ public void updateRecruitment(RecruitmentDTO recruitmentDTO) {
this.resultDateFinal = recruitmentDTO.getResultDateFinal();
this.openChatUrl = recruitmentDTO.getOpenChatUrl();
this.otDate = recruitmentDTO.getOtDate();
this.ideathonDate = recruitmentDTO.getIdeathonDate();
this.hackathonDate = recruitmentDTO.getHackathonDate();
this.demodayDate = recruitmentDTO.getDemodayDate();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class RecruitmentDTO {
private LocalDate resultDateFinal;
private String openChatUrl;
private LocalDate otDate;
private LocalDate ideathonDate;
private LocalDate hackathonDate;
private LocalDate demodayDate;

@Builder
Expand All @@ -36,6 +38,8 @@ public RecruitmentDTO(
LocalDate resultDateFinal,
String openChatUrl,
LocalDate otDate,
LocalDate ideathonDate,
LocalDate hackathonDate,
LocalDate demodayDate) {
this.generation = generation;
this.prodStudyUrl = prodStudyUrl;
Expand All @@ -49,6 +53,8 @@ public RecruitmentDTO(
this.resultDateFinal = resultDateFinal;
this.openChatUrl = openChatUrl;
this.otDate = otDate;
this.ideathonDate = ideathonDate;
this.hackathonDate = hackathonDate;
this.demodayDate = demodayDate;
}

Expand All @@ -66,6 +72,8 @@ public static RecruitmentDTO from(Recruitment recruitment) {
.resultDateFinal(recruitment.getResultDateFinal())
.openChatUrl(recruitment.getOpenChatUrl())
.otDate(recruitment.getOtDate())
.ideathonDate(recruitment.getIdeathonDate())
.hackathonDate(recruitment.getHackathonDate())
.demodayDate(recruitment.getDemodayDate())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class UserRecruitmentDTO {
private LocalDate endDateInterview;
private LocalDate resultDateFinal;
private LocalDate otDate;
private LocalDate ideathonDate;
private LocalDate hackathonDate;
private LocalDate demodayDate;

@Builder
Expand All @@ -34,6 +36,8 @@ public UserRecruitmentDTO(
LocalDate endDateInterview,
LocalDate resultDateFinal,
LocalDate otDate,
LocalDate ideathonDate,
LocalDate hackathonDate,
LocalDate demodayDate) {
this.generation = generation;
this.prodStudyUrl = prodStudyUrl;
Expand All @@ -46,6 +50,8 @@ public UserRecruitmentDTO(
this.endDateInterview = endDateInterview;
this.resultDateFinal = resultDateFinal;
this.otDate = otDate;
this.ideathonDate = ideathonDate;
this.hackathonDate = hackathonDate;
this.demodayDate = demodayDate;
}

Expand All @@ -62,6 +68,8 @@ public static UserRecruitmentDTO from(Recruitment recruitment) {
.endDateInterview(recruitment.getEndDateInterview())
.resultDateFinal(recruitment.getResultDateFinal())
.otDate(recruitment.getOtDate())
.ideathonDate(recruitment.getIdeathonDate())
.hackathonDate(recruitment.getHackathonDate())
.demodayDate(recruitment.getDemodayDate())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class WebSecurityConfig {

private final String[] GetPermittedPatterns = {
"/awards/**",
"/recruitments/**",
"/recruitments",
"/projects/**",
"/activities/**",
"/managements/**",
Expand Down

0 comments on commit 3886759

Please sign in to comment.