|
@@ -3027,7 +3027,7 @@
|
|
|
|
|
|
|
|
<!-- 구상 상품등록/저장 -->
|
|
<!-- 구상 상품등록/저장 -->
|
|
|
<insert id="saveGoodsCompose" parameterType="GoodsCompose">
|
|
<insert id="saveGoodsCompose" parameterType="GoodsCompose">
|
|
|
- /* TsaGoods.saveGoodsCompose */
|
|
|
|
|
|
|
+ /* TssGoods.saveGoodsCompose */
|
|
|
INSERT INTO TB_GOODS_COMPOSE (
|
|
INSERT INTO TB_GOODS_COMPOSE (
|
|
|
GOODS_CD
|
|
GOODS_CD
|
|
|
, COMPS_GOODS_CD
|
|
, COMPS_GOODS_CD
|
|
@@ -3074,7 +3074,7 @@
|
|
|
|
|
|
|
|
<!-- 구성상품 목록 -->
|
|
<!-- 구성상품 목록 -->
|
|
|
<select id="getGoodsDetailComposeList" parameterType="Goods" resultType="GoodsCompose">
|
|
<select id="getGoodsDetailComposeList" parameterType="Goods" resultType="GoodsCompose">
|
|
|
- /* TsaGoods.getGoodsDetailComposeList */
|
|
|
|
|
|
|
+ /* TssGoods.getGoodsDetailComposeList */
|
|
|
SELECT A.GOODS_CD
|
|
SELECT A.GOODS_CD
|
|
|
, A.GOODS_TYPE
|
|
, A.GOODS_TYPE
|
|
|
, FN_GET_CODE_NM('G056', A.GOODS_TYPE) AS GOODS_TYPE_NM
|
|
, FN_GET_CODE_NM('G056', A.GOODS_TYPE) AS GOODS_TYPE_NM
|
|
@@ -3108,7 +3108,7 @@
|
|
|
|
|
|
|
|
<!-- 자사브랜드, 업체 연관정보 확인 -->
|
|
<!-- 자사브랜드, 업체 연관정보 확인 -->
|
|
|
<select id="getBrandSupplyCount" parameterType="Brand" resultType="int">
|
|
<select id="getBrandSupplyCount" parameterType="Brand" resultType="int">
|
|
|
- /* TsaGoods.getBrandSupplyCount */
|
|
|
|
|
|
|
+ /* TssGoods.getBrandSupplyCount */
|
|
|
SELECT COUNT(*)
|
|
SELECT COUNT(*)
|
|
|
FROM TB_BRAND B
|
|
FROM TB_BRAND B
|
|
|
INNER JOIN TB_BRAND_SUPPLY BS ON B.BRAND_CD = BS.BRAND_CD
|
|
INNER JOIN TB_BRAND_SUPPLY BS ON B.BRAND_CD = BS.BRAND_CD
|
|
@@ -3120,7 +3120,7 @@
|
|
|
|
|
|
|
|
<!-- WMS입고상품 목록 건수 -->
|
|
<!-- WMS입고상품 목록 건수 -->
|
|
|
<select id="getGoodsWmsIncomelotListCount" parameterType="WmsGoods" resultType="int">
|
|
<select id="getGoodsWmsIncomelotListCount" parameterType="WmsGoods" resultType="int">
|
|
|
- /* TsaGoods.getGoodsWmsIncomelotListCount */
|
|
|
|
|
|
|
+ /* TssGoods.getGoodsWmsIncomelotListCount */
|
|
|
SELECT COUNT(*)
|
|
SELECT COUNT(*)
|
|
|
FROM TB_WMS_GOODS A
|
|
FROM TB_WMS_GOODS A
|
|
|
INNER JOIN TB_BRAND B ON A.BRAND_NO = B.BRAND_NO
|
|
INNER JOIN TB_BRAND B ON A.BRAND_NO = B.BRAND_NO
|
|
@@ -3150,7 +3150,7 @@
|
|
|
|
|
|
|
|
<!-- WMS입고상품 목록 -->
|
|
<!-- WMS입고상품 목록 -->
|
|
|
<select id="getGoodsWmsIncomelotList" parameterType="WmsGoods" resultType="WmsGoods">
|
|
<select id="getGoodsWmsIncomelotList" parameterType="WmsGoods" resultType="WmsGoods">
|
|
|
- /* TsaGoods.getGoodsWmsIncomelotList */
|
|
|
|
|
|
|
+ /* TssGoods.getGoodsWmsIncomelotList */
|
|
|
SELECT Q.* FROM (
|
|
SELECT Q.* FROM (
|
|
|
SELECT Z.* FROM (
|
|
SELECT Z.* FROM (
|
|
|
SELECT A.* FROM (
|
|
SELECT A.* FROM (
|
|
@@ -3231,7 +3231,7 @@
|
|
|
|
|
|
|
|
<!-- WMS입고단품목록 건수 -->
|
|
<!-- WMS입고단품목록 건수 -->
|
|
|
<select id="getGoodsWmsIncomelotSkuListCount" parameterType="IfIncomelot" resultType="int">
|
|
<select id="getGoodsWmsIncomelotSkuListCount" parameterType="IfIncomelot" resultType="int">
|
|
|
- /* TsaGoods.getGoodsWmsIncomelotSkuListCount */
|
|
|
|
|
|
|
+ /* TssGoods.getGoodsWmsIncomelotSkuListCount */
|
|
|
SELECT COUNT(*)
|
|
SELECT COUNT(*)
|
|
|
FROM (
|
|
FROM (
|
|
|
SELECT A.LOTNO
|
|
SELECT A.LOTNO
|
|
@@ -3298,7 +3298,7 @@
|
|
|
|
|
|
|
|
<!-- WMS입고단품목록 -->
|
|
<!-- WMS입고단품목록 -->
|
|
|
<select id="getGoodsWmsIncomelotSkuList" parameterType="IfIncomelot" resultType="IfIncomelot">
|
|
<select id="getGoodsWmsIncomelotSkuList" parameterType="IfIncomelot" resultType="IfIncomelot">
|
|
|
- /* TsaGoods.getGoodsWmsIncomelotSkuList */
|
|
|
|
|
|
|
+ /* TssGoods.getGoodsWmsIncomelotSkuList */
|
|
|
SELECT Q.*
|
|
SELECT Q.*
|
|
|
FROM (
|
|
FROM (
|
|
|
SELECT Z.*
|
|
SELECT Z.*
|
|
@@ -3370,7 +3370,7 @@
|
|
|
|
|
|
|
|
<!-- 상품 동영상 조회 -->
|
|
<!-- 상품 동영상 조회 -->
|
|
|
<select id="getGoodsVideoList" parameterType="GoodsVideo" resultType="GoodsVideo">
|
|
<select id="getGoodsVideoList" parameterType="GoodsVideo" resultType="GoodsVideo">
|
|
|
- /* TsaGoods.getGoodsVideoList */
|
|
|
|
|
|
|
+ /* TssGoods.getGoodsVideoList */
|
|
|
SELECT A.VIDEO_SQ
|
|
SELECT A.VIDEO_SQ
|
|
|
, A.GOODS_CD
|
|
, A.GOODS_CD
|
|
|
, D.BRAND_ENM
|
|
, D.BRAND_ENM
|
|
@@ -3432,21 +3432,21 @@
|
|
|
<when test='search != null and search == "searchGoodsNm"'>
|
|
<when test='search != null and search == "searchGoodsNm"'>
|
|
|
AND (
|
|
AND (
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(C.GOODS_NM) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
|
|
|
|
+ UPPER(C.GOODS_NM) LIKE CONCAT('%', UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
</foreach>
|
|
|
)
|
|
)
|
|
|
</when>
|
|
</when>
|
|
|
<when test='search != null and search == "searchGoodsNum"'>
|
|
<when test='search != null and search == "searchGoodsNum"'>
|
|
|
AND (
|
|
AND (
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(C.GOODS_NUM) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
|
|
|
|
+ UPPER(C.GOODS_NUM) LIKE CONCAT('%', UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
</foreach>
|
|
|
)
|
|
)
|
|
|
</when>
|
|
</when>
|
|
|
<when test='search != null and search == "searchSupplyGoodsCd"'>
|
|
<when test='search != null and search == "searchSupplyGoodsCd"'>
|
|
|
AND (
|
|
AND (
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(C.SUPPLY_GOODS_CD) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
|
|
|
|
+ UPPER(C.SUPPLY_GOODS_CD) LIKE CONCAT('%', UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
</foreach>
|
|
|
)
|
|
)
|
|
|
</when>
|
|
</when>
|
|
@@ -3468,9 +3468,11 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+ <if test="supplyCompCd != null and supplyCompCd != ''">
|
|
|
|
|
+ AND C.SUPPLY_COMP_CD = #{supplyCompCd}
|
|
|
|
|
+ </if>
|
|
|
<if test='roleCd != null and roleCd == "G001_B000" '>
|
|
<if test='roleCd != null and roleCd == "G001_B000" '>
|
|
|
AND C.SELF_GOODS_YN = 'N' -- 입점상품
|
|
AND C.SELF_GOODS_YN = 'N' -- 입점상품
|
|
|
- AND C.SUPPLY_COMP_CD = #{supplyCompCd} -- 입점상품
|
|
|
|
|
</if>
|
|
</if>
|
|
|
<if test='roleCd != null and roleCd == "G001_E000" '>
|
|
<if test='roleCd != null and roleCd == "G001_E000" '>
|
|
|
AND C.SELF_GOODS_YN = 'Y' -- 자사상품
|
|
AND C.SELF_GOODS_YN = 'Y' -- 자사상품
|
|
@@ -3481,7 +3483,7 @@
|
|
|
|
|
|
|
|
<!-- 상품 동영상 노출안함으로 변경 -->
|
|
<!-- 상품 동영상 노출안함으로 변경 -->
|
|
|
<update id="updateNotUseGoodsVideo" parameterType="GoodsVideo">
|
|
<update id="updateNotUseGoodsVideo" parameterType="GoodsVideo">
|
|
|
- /* TsaGoods.updateNotUseGoodsVideo */
|
|
|
|
|
|
|
+ /* TssGoods.updateNotUseGoodsVideo */
|
|
|
UPDATE TB_GOODS_VIDEO
|
|
UPDATE TB_GOODS_VIDEO
|
|
|
SET DISP_YN = 'N'
|
|
SET DISP_YN = 'N'
|
|
|
, UPD_NO = #{updNo}
|
|
, UPD_NO = #{updNo}
|
|
@@ -3491,7 +3493,7 @@
|
|
|
|
|
|
|
|
<!-- 동영상 등록 -->
|
|
<!-- 동영상 등록 -->
|
|
|
<insert id="createGoodsVideo" parameterType="GoodsVideo">
|
|
<insert id="createGoodsVideo" parameterType="GoodsVideo">
|
|
|
- /* TsaGoods.createGoodsVideo */
|
|
|
|
|
|
|
+ /* TssGoods.createGoodsVideo */
|
|
|
INSERT INTO TB_GOODS_VIDEO
|
|
INSERT INTO TB_GOODS_VIDEO
|
|
|
(
|
|
(
|
|
|
VIDEO_SQ
|
|
VIDEO_SQ
|
|
@@ -3525,7 +3527,7 @@
|
|
|
|
|
|
|
|
<!-- 동영상 수정 -->
|
|
<!-- 동영상 수정 -->
|
|
|
<update id="updateGoodsVideo" parameterType="GoodsVideo">
|
|
<update id="updateGoodsVideo" parameterType="GoodsVideo">
|
|
|
- /* TsaGoods.saveGoodsVideo */
|
|
|
|
|
|
|
+ /* TssGoods.saveGoodsVideo */
|
|
|
UPDATE TB_GOODS_VIDEO SET
|
|
UPDATE TB_GOODS_VIDEO SET
|
|
|
DISP_YN = #{dispYn}
|
|
DISP_YN = #{dispYn}
|
|
|
, VIDEO_GB = #{videoGb}
|
|
, VIDEO_GB = #{videoGb}
|