From 1b705ab44649babe119ce81aa264893fbcbbdb41 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 8 Jul 2024 16:15:36 +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/file-mapper.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/resources/sql/mapper/file-mapper.xml b/src/main/resources/sql/mapper/file-mapper.xml index c930812..b90e4fc 100644 --- a/src/main/resources/sql/mapper/file-mapper.xml +++ b/src/main/resources/sql/mapper/file-mapper.xml @@ -19,8 +19,11 @@ +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 FROM DUAL UNION SELECT '020' INF_TYPE, 'interface/attachment/saeol' DIR FROM DUAL UNION @@ -33,7 +36,7 @@ -SELECT A.*, FILE_PATH URL +SELECT A.*, URL FROM TB_FILE A WHERE FILE_ID IN (#{fileID}) ORDER BY FILE_ID