From 97d602a1bda923c84f0c1df25edb370a34b660cc Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 8 Jul 2024 16:43:45 +0900 Subject: [PATCH] =?UTF-8?q?fileDir,=20fileUrl=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/sql/mapper/base/file-mapper.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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}