diff --git a/src/main/resources/sql/mapper/base/file-mapper.xml b/src/main/resources/sql/mapper/base/file-mapper.xml index 2624f7e4..a71185ce 100644 --- a/src/main/resources/sql/mapper/base/file-mapper.xml +++ b/src/main/resources/sql/mapper/base/file-mapper.xml @@ -19,9 +19,12 @@ +CONCAT('files/', DIR, DATE_FORMAT(CURRENT_DATE, '%Y/%m/%d/')) +FILE_PATH + SELECT INF_TYPE - , CONCAT('files/', DIR, DATE_FORMAT(CURRENT_DATE, '/%Y/%m/%d/')) DIR + , DIR FROM ( SELECT '010' INF_TYPE, 'interface/attachment/smg' DIR UNION SELECT '020' INF_TYPE, 'interface/attachment/saeol' DIR UNION @@ -48,7 +51,7 @@ SELECT A.FILE_ID , A.USE_YN , A.REG_DT , A.RGTR - , A.FILE_PATH AS URL + , AS URL FROM TB_FILE A WHERE FILE_ID IN (#{fileID}) ORDER BY FILE_ID @@ -68,7 +71,7 @@ SELECT A.FILE_ID , A.USE_YN , A.REG_DT , A.RGTR - , A.FILE_PATH AS URL + , AS URL FROM TB_FILE A AND A.INF_TYPE = #{infoType}