|
|
@@ -474,8 +474,30 @@
|
|
|
/* TsfCustomer.deleteWishInfo */
|
|
|
DELETE FROM TB_WISHLIST
|
|
|
WHERE CUST_NO = #{custNo}
|
|
|
- <if test="goodsCd != null and goodsCd != ''">
|
|
|
+ <choose>
|
|
|
+ <when test="arrGoodsCd != null and arrGoodsCd.length>0">
|
|
|
+ AND UPPER(GOODS_CD) IN
|
|
|
+ <foreach collection="arrGoodsCd" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ UPPER(#{item})
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
AND GOODS_CD = #{goodsCd}
|
|
|
- </if>
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</delete>
|
|
|
+
|
|
|
+ <!-- 위시리스트 삭제 상품 조회 -->
|
|
|
+ <select id="getDeleteGoodsWish" parameterType="int" resultType="String">
|
|
|
+ /* TsfCustomer.getDeleteGoodsWish */
|
|
|
+ SELECT GROUP_CONCAT(GOODS_CD) AS GOODS_CD
|
|
|
+ FROM (
|
|
|
+ SELECT GOODS_CD , REG_DT
|
|
|
+ , RANK() OVER(ORDER BY REG_DT DESC) AS RNUM
|
|
|
+ FROM TB_WISHLIST
|
|
|
+ WHERE CUST_NO = #{custNo}
|
|
|
+ ) Z
|
|
|
+ WHERE RNUM > 50
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|