File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/clap/server/adapter/outbound/infrastructure/elastic/document Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 77import org .springframework .data .elasticsearch .annotations .Field ;
88import org .springframework .data .elasticsearch .annotations .Mapping ;
99
10- import java .time .LocalDate ;
10+ import java .time .LocalDateTime ;
1111
1212@ Document (indexName = "task" )
1313@ Mapping (mappingPath = "elastic/task-mapping.json" )
@@ -26,7 +26,7 @@ public class TaskDocument {
2626 @ Field (name ="processor" )
2727 private String processor ;
2828 @ Field (name ="created_at" )
29- private LocalDate createdAt ;
29+ private LocalDateTime createdAt ;
3030
3131 public TaskDocument (Task taskEntity ) {
3232 this .id = taskEntity .getTaskId ();
@@ -35,6 +35,6 @@ public TaskDocument(Task taskEntity) {
3535 this .subCategory = taskEntity .getCategory ().getName ();
3636 this .status = taskEntity .getTaskStatus ().name ().toLowerCase ();
3737 this .processor = taskEntity .getProcessor ().getMemberInfo ().getNickname ();
38- this .createdAt = taskEntity .getCreatedAt (). toLocalDate () ;
38+ this .createdAt = taskEntity .getCreatedAt ();
3939 }
4040}
You can’t perform that action at this time.
0 commit comments