From 1ac20ac5ac0082ca36147a736d17d101569220c9 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 22 Dec 2023 18:03:59 +0900 Subject: [PATCH] =?UTF-8?q?databaseIdProvider=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/spring/context-datasource.xml | 11 ++++++++++- src/main/resources/sql/mapper/base/utility.xml | 15 +++++---------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/main/resources/spring/context-datasource.xml b/src/main/resources/spring/context-datasource.xml index 87c5d12..85be3a3 100644 --- a/src/main/resources/spring/context-datasource.xml +++ b/src/main/resources/spring/context-datasource.xml @@ -20,11 +20,20 @@ --> + + + + oracle + mariadb + + + + + p:databaseIdProvider-ref="databaseIdProvider"/> diff --git a/src/main/resources/sql/mapper/base/utility.xml b/src/main/resources/sql/mapper/base/utility.xml index c927282..7f335db 100644 --- a/src/main/resources/sql/mapper/base/utility.xml +++ b/src/main/resources/sql/mapper/base/utility.xml @@ -20,19 +20,14 @@ SELECT FOUND_ROWS() TOT_CNT - -DATE_FORMAT(CURRENT_TIMESTAMP, '%Y%m%d%H%i%s') - -DATE_FORMAT(CURRENT_DATE, '%Y%m%d') - - +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},)