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