From 3ddb2bb91721f3d913c1a0220965ef050fba7c47 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 18 Jul 2023 10:52:05 +0900 Subject: [PATCH] =?UTF-8?q?now,=20selectNow,=20today,=20selectToday=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/sql/mapper/base/utility.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/resources/sql/mapper/base/utility.xml b/src/main/resources/sql/mapper/base/utility.xml index 7748817..5c14cfd 100644 --- a/src/main/resources/sql/mapper/base/utility.xml +++ b/src/main/resources/sql/mapper/base/utility.xml @@ -22,8 +22,13 @@ SELECT FOUND_ROWS() TOT_CNT DATE_FORMAT(CURRENT_TIMESTAMP(), '%Y%m%d%H%i%s') -IFNULL(#{thisDay}, DATE_FORMAT(CURRENT_DATE, '%Y%m%d')) +SELECTNOW -SELECTTHIS_DAY +DATE_FORMAT(CURRENT_DATE, '%Y%m%d') + +SELECTTODAY +IFNULL(#{thisDay},) + +SELECTTHIS_DAY \ No newline at end of file