|
|
@ -61,7 +61,7 @@ SELECT A.*, FILE_PATH URL
|
|
|
|
<selectKey keyProperty="file.id,file.path" keyColumn="NEW_ID,PATH" resultType="map" order="BEFORE">
|
|
|
|
<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 (
|
|
|
|
FROM (
|
|
|
|
SELECT IFNULL(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 TB_FILE A, (<include refid="utility.selectThisDay" />) B
|
|
|
|
WHERE FILE_ID LIKE CONCAT(THIS_DAY, '%')
|
|
|
|
WHERE FILE_ID LIKE CONCAT(THIS_DAY, '%')
|
|
|
|
) T1, (
|
|
|
|
) T1, (
|
|
|
|