diff --git a/src/main/java/cokr/xit/adds/DocController.java b/src/main/java/cokr/xit/adds/DocController.java index 74a038c..b8bba60 100644 --- a/src/main/java/cokr/xit/adds/DocController.java +++ b/src/main/java/cokr/xit/adds/DocController.java @@ -64,6 +64,7 @@ public class DocController extends AbstractController { File file = new File(resultFilePath); Relation rel = new Relation().setInfoType("200").setSubType("01").setInfoKey(dscMngId); FileInfo fileInfo = new FileInfo.Factory().create(rel, file); + fileInfo.setName(print.getFormatKorName()+".hwp"); int effected= fileService.create(fileInfo); String fileId = fileInfo.getId(); file.delete(); @@ -130,6 +131,7 @@ public class DocController extends AbstractController { File file = new File(resultFilePath); Relation rel = new Relation().setInfoType("200").setSubType("02").setInfoKey(dscMngId); FileInfo fileInfo = new FileInfo.Factory().create(rel, file); + fileInfo.setName(print.getFormatKorName()+".hwp"); int effected= fileService.create(fileInfo); String fileId = fileInfo.getId(); file.delete(); diff --git a/src/main/resources/sql/mapper/base/file-mapper.xml b/src/main/resources/sql/mapper/base/file-mapper.xml index 655f5f1..1bed8c4 100644 --- a/src/main/resources/sql/mapper/base/file-mapper.xml +++ b/src/main/resources/sql/mapper/base/file-mapper.xml @@ -20,7 +20,7 @@ SELECT INF_TYPE - , CONCAT('files/', DIR, DATE_FORMAT(CURRENT_DATE, '/%Y/%m/%d/')) DIR + , CONCAT('/applications/adds/files/', DIR, DATE_FORMAT(CURRENT_DATE, '/%Y/%m/%d/')) DIR FROM ( SELECT '00' INF_TYPE, 'attachment/' DIR FROM DUAL UNION SELECT '01' INF_TYPE, 'document/' DIR FROM DUAL UNION