|
@@ -692,7 +692,7 @@
|
692
|
692
|
|
693
|
693
|
|
694
|
694
|
<select id="selectPopWishListItem" resultType="com.oqpo.api.entity.stinfo.ItemUnitEntity">
|
695
|
|
- select /* selectPopItemStoreWishGridList */
|
|
695
|
+ select /* selectPopWishListItem */
|
696
|
696
|
iInfo.item_id,iInfo.item_nm,iInfo.podr_pssbl_dvsn, fn_code_nm('PODR_PSSBL_DVSN',iInfo.podr_pssbl_dvsn) AS podr_pssbl_dvsn_nm
|
697
|
697
|
,sInfo.unit, fn_code_nm('DSTRBT_COST_UNIT', sInfo.unit) as unit_nm, sInfo.stdd_qty, sInfo.unit_amt
|
698
|
698
|
, sInfo.store_unit_unq_no,'S' as unit_gubun, sInfo.brand_unit_unq_no
|
|
@@ -705,5 +705,37 @@
|
705
|
705
|
and date_format(now(),'%Y%m%d') between sInfo.cont_stt_dt and sInfo.cont_end_dt
|
706
|
706
|
where iInfo.brand_id = #{brandId}
|
707
|
707
|
AND iInfo.item_st_cd = 'IS00'
|
|
708
|
+ <choose>
|
|
709
|
+ <when test="gridRequest.sidx != null and gridRequest.sidx != ''">
|
|
710
|
+ <if test="gridRequest.sidx == 'VIEW_NUM'.toString()">
|
|
711
|
+ <if test="gridRequest.sord == 'asc'.toString()">
|
|
712
|
+ order by iInfo.item_nm asc
|
|
713
|
+ </if>
|
|
714
|
+ <if test="gridRequest.sord == 'desc'.toString()">
|
|
715
|
+ order by iInfo.item_nm desc
|
|
716
|
+ </if>
|
|
717
|
+ </if>
|
|
718
|
+ </when>
|
|
719
|
+ <otherwise>
|
|
720
|
+ order by iInfo.item_nm asc
|
|
721
|
+ </otherwise>
|
|
722
|
+ </choose>
|
|
723
|
+ <if test="gridRequest.pagingYn == true">
|
|
724
|
+ limit #{gridRequest.gridFirst}, #{gridRequest.gridSize}
|
|
725
|
+ </if>
|
|
726
|
+ </select>
|
|
727
|
+
|
|
728
|
+ <select id="selectPopWishListItemCnt" resultType="int">
|
|
729
|
+ select /* selectPopWishListItemCnt */
|
|
730
|
+ count(*) as cnt
|
|
731
|
+ from item_base_info iInfo
|
|
732
|
+ join store_base_info store on iInfo.brand_id = store.brand_id and store.store_id = #{storeId}
|
|
733
|
+ join store_item_unit_info sInfo on iInfo.brand_id = sInfo.brand_id and iInfo.item_id = sInfo.item_id and sInfo.unit_target_cd = 'Y'
|
|
734
|
+ join store_wish_list_mgnt wish on wish_list_mgnt_no = #{wishListMgntNo} and wish.store_id = store.store_id and wish.del_yn = 'N'
|
|
735
|
+ join store_wish_list_ptcl wishptcl on wish.wish_list_mgnt_no = wishptcl.wish_list_mgnt_no and wishptcl.item_id = iInfo.item_id and wishptcl.del_yn = 'N'
|
|
736
|
+ and store.store_id = sInfo.store_id and sInfo.store_id = #{storeId}
|
|
737
|
+ and date_format(now(),'%Y%m%d') between sInfo.cont_stt_dt and sInfo.cont_end_dt
|
|
738
|
+ where iInfo.brand_id = #{brandId}
|
|
739
|
+ AND iInfo.item_st_cd = 'IS00'
|
708
|
740
|
</select>
|
709
|
741
|
</mapper>
|