DB유형에 따른 동적 조회 수정

main
이범준 11 months ago
parent 926b7c28d4
commit 7cb913007e

@ -9,19 +9,33 @@
</sql> </sql>
<sql id="center"> <sql id="center">
<if test="mainOption == 'codeValue'">) LIKE CONCAT('%',</if> <if test="mainOption == 'codeValue'">
) LIKE
<if test="_databaseId == 'mariadb'"> CONCAT('%', </if>
<if test="_databaseId == 'oracle'"> '%' || </if>
</if>
<if test="mainOption == 'match'"> <if test="mainOption == 'match'">
<if test="subOption == 'perfect'"> = </if> <if test="subOption == 'perfect'"> = </if>
<if test="subOption == 'part'"> LIKE CONCAT('%',</if> <if test="subOption == 'part'">
LIKE
<if test="_databaseId == 'mariadb'"> CONCAT('%', </if>
<if test="_databaseId == 'oracle'"> '%' || </if>
</if>
</if> </if>
<if test="mainOption == 'ymd'">,1,8) = REPLACE(REPLACE(REPLACE(</if> <if test="mainOption == 'ymd'">,1,8) = REPLACE(REPLACE(REPLACE(</if>
</sql> </sql>
<sql id="end"> <sql id="end">
<if test="mainOption == 'codeValue'">, '%')</if> <if test="mainOption == 'codeValue'">
<if test="_databaseId == 'mariadb'"> , '%') </if>
<if test="_databaseId == 'oracle'"> || '%' </if>
</if>
<if test="mainOption == 'match'"> <if test="mainOption == 'match'">
<if test="subOption == 'perfect'"></if> <if test="subOption == 'perfect'"></if>
<if test="subOption == 'part'">, '%')</if> <if test="subOption == 'part'">
<if test="_databaseId == 'mariadb'"> , '%') </if>
<if test="_databaseId == 'oracle'"> || '%' </if>
</if>
</if> </if>
<if test="mainOption == 'ymd'">,'-',''),'/',''),'.','')</if> <if test="mainOption == 'ymd'">,'-',''),'/',''),'.','')</if>
</sql> </sql>

Loading…
Cancel
Save