fix: K) 위원회 일정관리 날짜형식 변경

thkim
thkim 2024-03-18 17:56:38 +09:00
parent 964b0ebf34
commit 52cfa4a257
1 changed files with 6 additions and 4 deletions

View File

@ -89,14 +89,16 @@ public class FileService {
// 업로드된 file을 tnAttachFile에 insert한다.
for (Iterator<FileVO> iter = fileVoList.iterator(); iter.hasNext(); nCount++) {
FileVO item = iter.next();
FileVO item = iter.next();
String fileNewName = item.getStreFileNm() + "." + item.getFileExtsn();
String filePath = (item.getFileStreCours() + File.separator + item.getAtchFileId()).replaceAll("\\\\", "/") + fileNewName;
tnAttachFileRepository.spAddTnAttachFile(
fileGrpId,
nCount,
item.getOrignlFileNm(),
item.getStreFileNm() + "." + item.getFileExtsn(),
(item.getFileStreCours() + File.separator + item.getAtchFileId()).replaceAll("\\\\", "/"),
fileNewName,
filePath,
Long.parseLong(item.getFileMg()),
item.getFileExtsn(),
ipAddress,
@ -133,7 +135,7 @@ public class FileService {
throw new Exception("대상이 존재하지 않습니다.");
}
String fileFullPath = tnAttachFile.getFilePath() + tnAttachFile.getFileNewName();
String fileFullPath = tnAttachFile.getFilePath();
File file = new File(fileFullPath);
file.delete();