Skip to content

Commit

Permalink
RAC-160 fix : 병합 과정에서 잘못된 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ywj9811 committed Nov 21, 2023
1 parent eb50f20 commit f63b041
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void updateExpected(User user, Long mentoringId, MentoringDateRequest dat
}

@Scheduled(cron = "0 0 0 * * *", zone = "Asia/Seoul")
private void updateCancel() {
public void updateCancel() {
LocalDate now = LocalDate.now();
List<Mentoring> mentorings = mentoringGetService.byStatusAndCreatedAt(WAITING, now);
for (Mentoring mentoring : mentorings) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.postgraduate.domain.salary.domain.entity.Salary;
import com.postgraduate.domain.senior.application.dto.req.SeniorProfileRequest;
import com.postgraduate.domain.auth.application.dto.req.SeniorSignUpRequest;
import com.postgraduate.domain.senior.application.dto.res.SeniorDetailResponse;
import com.postgraduate.domain.senior.application.dto.res.SeniorInfoResponse;
import com.postgraduate.domain.senior.application.dto.res.SeniorMyPageResponse;
import com.postgraduate.domain.senior.domain.entity.Info;
Expand Down Expand Up @@ -89,4 +90,21 @@ public static SeniorInfoResponse mapToOriginInfo(Senior senior) {
.oneLiner(profile.getOneLiner())
.build();
}

public static SeniorDetailResponse mapToSeniorDetail(Senior senior) {
String[] keyword = senior.getInfo().getKeyword().split(",");
return SeniorDetailResponse.builder()
.nickName(senior.getUser().getNickName())
.profile(senior.getUser().getProfile())
.postgradu(senior.getInfo().getPostgradu())
.major(senior.getInfo().getMajor())
.lab(senior.getInfo().getLab())
.professor(senior.getInfo().getProfessor())
.keyword(keyword)
.info(senior.getProfile().getInfo())
.oneLiner(senior.getProfile().getOneLiner())
.target(senior.getProfile().getTarget())
.time(senior.getProfile().getTime())
.build();
}
}

0 comments on commit f63b041

Please sign in to comment.