|
|
@@ -53,15 +53,15 @@
|
|
|
<if test="goodsCds != null and goodsCds != ''">
|
|
|
AND (
|
|
|
<foreach collection="goodsCds" item="item" index="index" separator="or">
|
|
|
- UPPER(R.GOODS_CD) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ R.GOODS_CD LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
|
)
|
|
|
</if>
|
|
|
<if test="startDt != null and startDt != ''">
|
|
|
- AND R.REG_DT <![CDATA[<=]]> STR_TO_DATE(#{startDt},'%Y-%m-%d')
|
|
|
+ AND R.REG_DT <![CDATA[>=]]> STR_TO_DATE(#{startDt},'%Y-%m-%d')
|
|
|
</if>
|
|
|
<if test="endDt != null and endDt != ''">
|
|
|
- AND R.REG_DT <![CDATA[>]]> DATE_ADD(STR_TO_DATE(#{endDt},'%Y-%m-%d'),INTERVAL 1 DAY)
|
|
|
+ AND R.REG_DT <![CDATA[<]]> DATE_ADD(STR_TO_DATE(#{endDt},'%Y-%m-%d'),INTERVAL 1 DAY)
|
|
|
</if>
|
|
|
<if test="reviewGb != null and reviewGb != ''">
|
|
|
AND R.REVIEW_GB = #{reviewGb}
|
|
|
@@ -74,10 +74,10 @@
|
|
|
</if>
|
|
|
<if test="searchTxt != null and searchTxt != ''">
|
|
|
<if test="searchGb == 'memNm'">
|
|
|
- AND UPPER(C.CUST_NM) LIKE CONCAT('%',UPPER(#{searchTxt}),'%')
|
|
|
+ AND UPPER(C.CUST_NM) LIKE CONCAT(UPPER(#{searchTxt}),'%')
|
|
|
</if>
|
|
|
<if test="searchGb == 'email'">
|
|
|
- AND UPPER(C.EMAIL) LIKE CONCAT('%',UPPER(#{searchTxt}),'%')
|
|
|
+ AND UPPER(C.EMAIL) LIKE CONCAT(UPPER(#{searchTxt}),'%')
|
|
|
</if>
|
|
|
</if>
|
|
|
ORDER BY R.REG_DT DESC
|