date in simple format added
This commit is contained in:
@@ -4,6 +4,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Date;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.codelibs.jhighlight.fastutil.Hash;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -44,6 +45,7 @@ public class KSFileController {
|
||||
ksDocument.setName(file.getOriginalFilename());
|
||||
ksDocument.setDescription(fileUploadDTO.getDescription());
|
||||
ksDocument.setIngestionStatus("NEW");
|
||||
ksDocument.setIngestionDateFormat(new SimpleDateFormat("MM/dd/yy").format(new Date()));
|
||||
|
||||
Date now = new Date();
|
||||
ksDocument.setIngestionDate(now);
|
||||
|
||||
@@ -25,6 +25,7 @@ public class KSDocument {
|
||||
private String ingestionStatus;
|
||||
//private String ingestionMessage;
|
||||
private Date ingestionDate;
|
||||
private String ingestionDateFormat;
|
||||
|
||||
private KSIngestionInfo ingestionInfo;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.olympus.apollo.services;
|
||||
|
||||
import java.util.*;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import com.olympus.apollo.dto.IngestionOutput;
|
||||
import com.olympus.apollo.models.KSDocument;
|
||||
@@ -82,6 +83,7 @@ public class KSIngestor {
|
||||
});
|
||||
ksDocument.setIngestionStatus("INGESTED");//we have to set to DONE
|
||||
ksDocument.setIngestionDate(new Date());
|
||||
ksDocument.setIngestionDateFormat(new SimpleDateFormat("MM/dd/yy").format(new Date()));
|
||||
|
||||
ksDocumentRepository.save(ksDocument);
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@ConfigurationProperties("storage")
|
||||
public class StorageProperties {
|
||||
/**
|
||||
/**
|
||||
* Folder location for storing files
|
||||
*/
|
||||
private String location = "C:\\Users\\andrea.terzani\\dev\\olympus\\upload-dir";
|
||||
private String location = "C:\\Users\\s.shamrao.shinde\\GenAIStorage";
|
||||
|
||||
public String getLocation() {
|
||||
return location;
|
||||
|
||||
Reference in New Issue
Block a user