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