diff --git a/src/main/java/cokr/xit/app/XbaseBootApplication.java b/src/main/java/cokr/xit/app/XbaseBootApplication.java index 2d9f567..5c2c78c 100644 --- a/src/main/java/cokr/xit/app/XbaseBootApplication.java +++ b/src/main/java/cokr/xit/app/XbaseBootApplication.java @@ -5,9 +5,7 @@ import org.springframework.boot.SpringApplication; import cokr.xit.base.boot.XitBaseApplication; public class XbaseBootApplication extends XitBaseApplication { - public static void main(String[] args) { SpringApplication.run(XbaseBootApplication.class, args); } - } \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/utility.xml b/src/main/resources/sql/mapper/base/utility.xml index 7748817..5187fae 100644 --- a/src/main/resources/sql/mapper/base/utility.xml +++ b/src/main/resources/sql/mapper/base/utility.xml @@ -22,7 +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 + +DATE_FORMAT(CURRENT_DATE, '%Y%m%d') + +SELECTTODAY + +IFNULL(#{thisDay},) SELECTTHIS_DAY