From 1b6841ae900043240041de7947f9396c979acdc4 Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 4 Sep 2024 14:11:31 +0900 Subject: [PATCH] =?UTF-8?q?jar=ED=8C=8C=EC=9D=BC=20=EB=82=B4=EB=B6=80?= =?UTF-8?q?=EC=97=90=20utility.xml=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/sql/mapper/base/utility-jar.xml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/main/resources/sql/mapper/base/utility-jar.xml diff --git a/src/main/resources/sql/mapper/base/utility-jar.xml b/src/main/resources/sql/mapper/base/utility-jar.xml new file mode 100644 index 0000000..424e46a --- /dev/null +++ b/src/main/resources/sql/mapper/base/utility-jar.xml @@ -0,0 +1,61 @@ + + + + + + + +SELECT QROWS.* FROM ( + SELECT ROW_NUMBER() OVER() ROW_NUM + , COUNT(*) OVER() TOT_CNT, QBODY.* + FROM ( + + + + ) QBODY + ) QROWS +WHERE ROW_NUM BETWEEN ((#{pageNum} - 1) * #{fetchSize}) + 1 AND (#{pageNum} * #{fetchSize}) + + + + + +ORDER BY ${orderBy} + + + + + + + +DATE_FORMAT(CURRENT_TIMESTAMP, '%Y%m%d%H%i%s') +TO_CHAR(CURRENT_TIMESTAMP, 'YYYYMMDDHH24MISS') + + +SELECTNOW FROM DUAL + + +DATE_FORMAT(CURRENT_DATE, '%Y%m%d') +TO_CHAR(CURRENT_DATE, 'YYYYMMDD') + + + +SELECTTODAY FROM DUAL + + + +NVL(#{thisDay},) + + + +SELECTTHIS_DAY FROM DUAL + + + +DATE_FORMAT(CURRENT_DATE, '%Y') +TO_CHAR(CURRENT_DATE, 'YYYY') + + + \ No newline at end of file