파일 ID 추출 수정

dev
mjkhan21 5 months ago
parent aa9a1ca98a
commit 8fa1a82a8b

@ -67,8 +67,8 @@ AND ${by} = #{term}
SELECT NEW_ID, CONCAT(DIR, NEW_ID, '.', #{file.extension}) PATH SELECT NEW_ID, CONCAT(DIR, NEW_ID, '.', #{file.extension}) PATH
FROM ( FROM (
SELECT NVL(MAX(FILE_ID) + 1, CONCAT(THIS_DAY, '00001')) NEW_ID SELECT NVL(MAX(FILE_ID) + 1, CONCAT(THIS_DAY, '00001')) NEW_ID
FROM TB_FILE A, (<include refid="utility.selectThisDay" />) B FROM (<include refid="utility.selectThisDay" />) B LEFT OUTER JOIN
WHERE FILE_ID LIKE CONCAT(THIS_DAY, '%') TB_FILE A ON FILE_ID LIKE CONCAT(THIS_DAY, '%')
) T1, ( ) T1, (
<include refid="fileDirs" /> <include refid="fileDirs" />
WHERE INF_TYPE = #{file.infoType} WHERE INF_TYPE = #{file.infoType}

Loading…
Cancel
Save