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