feat : 시간대 변경

This commit is contained in:
yulmam 2024-08-09 10:10:24 +09:00
parent 5dfbcb3dd2
commit 49bf79dd05
5 changed files with 10 additions and 5 deletions

View File

@ -40,9 +40,11 @@ public class Board {
@Column(nullable = true)
private int viewCount;
@Column(columnDefinition = "TIMESTAMP")
@CreatedDate
LocalDateTime createdAt;
@Column(columnDefinition = "TIMESTAMP")
@LastModifiedDate
LocalDateTime modifiedAt;

View File

@ -9,6 +9,8 @@ import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import java.time.LocalDateTime;
@ -26,10 +28,12 @@ public class Comment {
@Column(columnDefinition = "TEXT", nullable = false)
private String content;
@Column
@Column(columnDefinition = "TIMESTAMP")
@CreatedDate
private LocalDateTime createdAt;
@Column
@Column(columnDefinition = "TIMESTAMP")
@LastModifiedDate
private LocalDateTime modifiedAt;
@ManyToOne

View File

@ -64,9 +64,6 @@ public class ReportController {
return new ResponseEntity<>(detailReport, HttpStatus.OK);
}
@GetMapping("/teacher/reportSet/{lectureId}")
public ResponseEntity<List<ReportSetResponse>> searchReportSets(@PathVariable("lectureId") long lectureId){
List<ReportSetResponse> reportSetResponses = reportService.findReportSets(lectureId);

View File

@ -30,6 +30,7 @@ public class Report {
private int correctCount;
@Column(columnDefinition = "TIMESTAMP")
@CreatedDate
private LocalDateTime testAt;

View File

@ -34,6 +34,7 @@ public class ReportSet {
)
private UUID id;
@Column(columnDefinition = "TIMESTAMP")
@CreatedDate
private LocalDateTime createAt;