파일 아이디 추출 수정

main
mjkhan21 5 months ago
parent 5479878030
commit bfeb2c1d03

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

Loading…
Cancel
Save