diff --git a/src/main/resources/sql/mapper/base/file-mapper.xml b/src/main/resources/sql/mapper/base/file-mapper.xml index 6ffcda4..a0e3d64 100644 --- a/src/main/resources/sql/mapper/base/file-mapper.xml +++ b/src/main/resources/sql/mapper/base/file-mapper.xml @@ -20,21 +20,24 @@ SELECT INF_TYPE - , CONCAT('C://workspace/xit/base/files/', DIR, DATE_FORMAT(CURRENT_DATE, '%Y/%m/%d/')) DIR + , CONCAT('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 - SELECT '02' INF_TYPE, 'article/' DIR FROM DUAL - ) FILE_DIRS + SELECT '02' INF_TYPE, 'article/' DIR FROM DUAL UNION + + SELECT '100' INF_TYPE, 'attachment/dsuse' DIR FROM DUAL + SELECT '110' INF_TYPE, 'document/dsuse' DIR FROM DUAL + ) FILE_DIRS -SELECT A.*, REPLACE(FILE_PATH, 'C://workspace/xit/base', '') URL +SELECT A.*, FILE_PATH URL FROM TB_FILE A WHERE FILE_ID IN (#{fileID}) ORDER BY FILE_ID -SELECT A.*, REPLACE(FILE_PATH, 'C://workspace/xit/base', '') URL +SELECT A.*, FILE_PATH URL FROM TB_FILE A AND A.INF_TYPE = #{infoType}