|
|
|
@ -98,12 +98,14 @@ SELECT A.FILE_ID
|
|
|
|
|
<insert id="insertFile" parameterType="map">
|
|
|
|
|
/* 파일 등록(fileMapper.insertFile) */
|
|
|
|
|
<selectKey keyProperty="file.id,file.path" keyColumn="NEW_ID,PATH" resultType="map" order="BEFORE">
|
|
|
|
|
SELECT NEW_ID, CONCAT(DIR, NEW_ID, '.', #{file.extension}) PATH
|
|
|
|
|
SELECT NEW_ID
|
|
|
|
|
, CONCAT(DIR, NEW_ID, '.', #{file.extension}) PATH
|
|
|
|
|
FROM (
|
|
|
|
|
SELECT NVL(MAX(FILE_ID) + 1, CONCAT(THIS_DAY, '00001')) NEW_ID
|
|
|
|
|
FROM (<include refid="utility.selectThisDay" />) B
|
|
|
|
|
LEFT OUTER JOIN TB_FILE A ON FILE_ID LIKE CONCAT(THIS_DAY, '%')
|
|
|
|
|
) T1, (
|
|
|
|
|
) T1
|
|
|
|
|
, (
|
|
|
|
|
<include refid="fileDirs" />
|
|
|
|
|
WHERE INF_TYPE = #{file.infoType}
|
|
|
|
|
) T2
|
|
|
|
|