now, selectNow, today, selectToday 추가

master
mjkhan21 1 year ago
parent 1c52eb639e
commit 12a56a6dfd

@ -5,9 +5,7 @@ import org.springframework.boot.SpringApplication;
import cokr.xit.base.boot.XitBaseApplication; import cokr.xit.base.boot.XitBaseApplication;
public class XbaseBootApplication extends XitBaseApplication { public class XbaseBootApplication extends XitBaseApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(XbaseBootApplication.class, args); SpringApplication.run(XbaseBootApplication.class, args);
} }
} }

@ -22,7 +22,13 @@ SELECT FOUND_ROWS() TOT_CNT</select>
<sql id="now">DATE_FORMAT(CURRENT_TIMESTAMP(), '%Y%m%d%H%i%s')</sql> <sql id="now">DATE_FORMAT(CURRENT_TIMESTAMP(), '%Y%m%d%H%i%s')</sql>
<sql id="thisDay">IFNULL(#{thisDay}, DATE_FORMAT(CURRENT_DATE, '%Y%m%d'))</sql> <sql id="selectNow">SELECT<include refid="utility.now" />NOW</sql>
<sql id="today">DATE_FORMAT(CURRENT_DATE, '%Y%m%d')</sql>
<sql id="selectToday">SELECT<include refid="utility.today" />TODAY</sql>
<sql id="thisDay">IFNULL(#{thisDay},<include refid="utility.today" />)</sql>
<sql id="selectThisDay">SELECT<include refid="utility.thisDay" />THIS_DAY</sql> <sql id="selectThisDay">SELECT<include refid="utility.thisDay" />THIS_DAY</sql>

Loading…
Cancel
Save