Skip to content

Commit

Permalink
시간으로 상담확인서의 시작을 나타내지 않고 교시로 변경되었습니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
enbraining committed Dec 15, 2023
1 parent 9571c78 commit a7126e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ public class Consulting {
private Long id;

@Column(nullable = false)
private Long issuedAt; // 상담 신청 일자
private Long issuedAt;

@Column(nullable = false)
private Long startAt; // 언제 가야하는지
private int classTime;

@Column(nullable = false)
private boolean isAccess; // 선생님이 승인했는지
private boolean isAccess;

public Consulting(Long issuedAt, Long startAt){
public Consulting(Long issuedAt, int classTime){
this.issuedAt = issuedAt;
this.startAt = startAt;
this.classTime = classTime;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
@NoArgsConstructor
@AllArgsConstructor
public class ConsultingSubmitRequest {
private Long startat;
private int classTime;
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public ResponseEntity<ConsultingSubmitResponse> submitConsulting(ConsultingSubmi
Member member = memberRepository.findMemberById(UUID.fromString(id));

if(member.getConsulting() != null){
member.setConsulting(new Consulting(Instant.now().toEpochMilli(), request.getStartat()));
member.setConsulting(new Consulting(Instant.now().toEpochMilli(), request.getClassTime()));
}

memberRepository.save(member);
Expand Down

0 comments on commit a7126e1

Please sign in to comment.