From 9ce3ea357c6fead85b5d7ecddde6a4b39ad17f99 Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 4 Sep 2024 15:22:07 +0900 Subject: [PATCH] =?UTF-8?q?utility.xml=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/utility.xml} | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename src/main/resources/sql/{mapper/base/utility-jar.xml => mapper-jar-applib/base/utility.xml} (76%) diff --git a/src/main/resources/sql/mapper/base/utility-jar.xml b/src/main/resources/sql/mapper-jar-applib/base/utility.xml similarity index 76% rename from src/main/resources/sql/mapper/base/utility-jar.xml rename to src/main/resources/sql/mapper-jar-applib/base/utility.xml index 424e46a..1f64b63 100644 --- a/src/main/resources/sql/mapper/base/utility-jar.xml +++ b/src/main/resources/sql/mapper-jar-applib/base/utility.xml @@ -1,12 +1,12 @@ - + SELECT QROWS.* FROM ( - SELECT ROW_NUMBER() OVER() ROW_NUM + SELECT ROW_NUMBER() OVER() ROW_NUM , COUNT(*) OVER() TOT_CNT, QBODY.* FROM ( @@ -17,7 +17,7 @@ SELECT QROWS.* FROM ( WHERE ROW_NUM BETWEEN ((#{pageNum} - 1) * #{fetchSize}) + 1 AND (#{pageNum} * #{fetchSize}) -/* 전체 결과수 가져오기(utility.foundRows) */ SELECT FOUND_ROWS() TOT_CNT @@ -26,7 +26,7 @@ SELECT FOUND_ROWS() TOT_CNT - + @@ -34,7 +34,7 @@ SELECT FOUND_ROWS() TOT_CNT TO_CHAR(CURRENT_TIMESTAMP, 'YYYYMMDDHH24MISS') -SELECTNOW FROM DUAL +SELECTNOW FROM DUAL DATE_FORMAT(CURRENT_DATE, '%Y%m%d') @@ -42,15 +42,15 @@ SELECT FOUND_ROWS() TOT_CNT -SELECTTODAY FROM DUAL +SELECTTODAY FROM DUAL -NVL(#{thisDay},) +NVL(#{thisDay},) -SELECTTHIS_DAY FROM DUAL +SELECTTHIS_DAY FROM DUAL