瀏覽代碼

getCouponRetrieveList 쿼리문 수정

gagamel 5 年之前
父節點
當前提交
84cb34f9f7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/style24/persistence/mybatis/shop/TsaCoupon.xml

+ 1 - 1
src/main/java/com/style24/persistence/mybatis/shop/TsaCoupon.xml

@@ -247,7 +247,7 @@
 			AND	   A.CPN_ID = #{cpnId}
 		</if>
 		<if test="cpnNm !=null and cpnNm !=''">
-			AND	   A.CPN_NM LIKE '%'||#{cpnNm}||'%'
+			AND	   A.CPN_NM LIKE CONCAT('%',#{cpnNm},'%')
 		</if>
 		<if test="cpnType !=null and cpnType !=''">
 			AND	   A.CPN_TYPE = #{cpnType}