|
|
@@ -553,12 +553,12 @@
|
|
|
<if test="supplyCompCd != null and supplyCompCd != ''">
|
|
|
AND G.SUPPLY_COMP_CD = #{supplyCompCd}
|
|
|
</if>
|
|
|
- <if test="multiSupplyCompCd != null and multiSupplyCompCd != ''">
|
|
|
- AND G.SUPPLY_COMP_CD IN
|
|
|
- <foreach collection="multiSupplyCompCd" item="item" index="index" open="(" close=")" separator=",">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
+ <if test="multiSupplyCompCd != null and multiSupplyCompCd != ''">
|
|
|
+ AND G.SUPPLY_COMP_CD IN
|
|
|
+ <foreach collection="multiSupplyCompCd" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
<if test="brandCd != null and brandCd != ''">
|
|
|
AND G.BRAND_CD = #{brandCd}
|
|
|
</if>
|
|
|
@@ -715,11 +715,31 @@
|
|
|
<if test="ageGrpCd != null and ageGrpCd != ''">
|
|
|
AND G.AGE_GRP_CD = #{ageGrpCd}
|
|
|
</if>
|
|
|
- <if test="cateCd != null and cateCd != ''">
|
|
|
+ <if test="cateNo != null and cateNo > 0 ">
|
|
|
AND G.GOODS_CD IN (
|
|
|
SELECT GOODS_CD
|
|
|
- FROM TB_CATEGORY_GOODS
|
|
|
- WHERE CATE_CD = #{cateCd}
|
|
|
+ FROM TB_CATE_4SRCH A
|
|
|
+ INNER JOIN TB_CATE_GOODS B ON A.LEAF_CATE_NO = B.CATE_NO
|
|
|
+ WHERE 1 = 1
|
|
|
+ AND SITE_CD = #{siteCd}
|
|
|
+ AND CATE_GB = #{cateGb}
|
|
|
+ <choose>
|
|
|
+ <when test='selLvl != null and selLvl == "2"'>
|
|
|
+ AND A.CATE1_NO = #{cateNo}
|
|
|
+ </when>
|
|
|
+ <when test='selLvl != null and selLvl == "3"'>
|
|
|
+ AND A.CATE2_NO = #{cateNo}
|
|
|
+ </when>
|
|
|
+ <when test='selLvl != null and selLvl == "4"'>
|
|
|
+ AND A.CATE3_NO = #{cateNo}
|
|
|
+ </when>
|
|
|
+ <when test='selLvl != null and selLvl == "5"'>
|
|
|
+ AND A.CATE4_NO = #{cateNo}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ AND A.CATE5_NO = #{cateNo}
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
)
|
|
|
</if>
|
|
|
</sql>
|
|
|
@@ -4324,6 +4344,15 @@
|
|
|
</if>
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
+ <choose>
|
|
|
+ <when test='sizeGb != null and sizeGb == "1"'>
|
|
|
+ ORDER BY A.SIZE_GB, A.SIZE_CATE1_CD, A.DISP_ORD
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ ORDER BY A.SIZE_GB, A.DISP_ORD
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+
|
|
|
</select>
|
|
|
|
|
|
<!-- 사이즈 정보 저장 -->
|