From 2f88d4547e6b07260c62fe07b55075e8500e78df Mon Sep 17 00:00:00 2001 From: leebj Date: Thu, 27 Jun 2024 17:56:07 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20ID=20=EC=B6=94=EC=B6=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/sql/mapper/base/file-mapper.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/resources/sql/mapper/base/file-mapper.xml b/src/main/resources/sql/mapper/base/file-mapper.xml index 55ecb7cd..70ecdd0e 100644 --- a/src/main/resources/sql/mapper/base/file-mapper.xml +++ b/src/main/resources/sql/mapper/base/file-mapper.xml @@ -57,17 +57,19 @@ SELECT A.*, FILE_PATH URL -/* 파일 등록(fileMapper.insertFile) */ + +/* 파일 등록(fileMapper.insertFile) */ 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, () B - WHERE FILE_ID LIKE CONCAT(THIS_DAY, '%') + FROM () B + LEFT OUTER JOIN TB_FILE A ON FILE_ID LIKE CONCAT(THIS_DAY, '%') ) T1, ( WHERE INF_TYPE = #{file.infoType} - ) T2 + ) T2 + INSERT INTO TB_FILE ( FILE_ID , INF_TYPE