|
|
@@ -391,7 +391,6 @@
|
|
|
<selectKey keyProperty="planSq" resultType="Integer" order="AFTER">
|
|
|
SELECT LAST_INSERT_ID() /* 기획전 일련번호 */
|
|
|
</selectKey>
|
|
|
-
|
|
|
INSERT INTO TB_PLAN (
|
|
|
PLAN_SQ
|
|
|
, PLAN_NM
|
|
|
@@ -478,6 +477,7 @@
|
|
|
</insert>
|
|
|
|
|
|
<insert id="createPlanBrand" parameterType="Plan">
|
|
|
+ /* TsaMarketing.createPlanBrand */
|
|
|
INSERT INTO TB_PLAN_BRAND
|
|
|
(
|
|
|
BRAND_CD
|
|
|
@@ -501,6 +501,7 @@
|
|
|
</insert>
|
|
|
|
|
|
<select id="getPlanBrandList" parameterType="Plan" resultType="Plan">
|
|
|
+ /* TsaMarketing.getPlanBrandList */
|
|
|
SELECT TP.PLAN_NM AS PLAN_NM
|
|
|
, TP.PLAN_SQ AS PLAN_SQ
|
|
|
, TB.BRAND_ENM AS BRAND_ENM
|
|
|
@@ -515,6 +516,31 @@
|
|
|
AND TP.PLAN_SQ = #{planSq}
|
|
|
AND TP.DEL_YN = 'N'
|
|
|
</select>
|
|
|
+
|
|
|
+ <insert id="createPlanBrandCopy" parameterType="Plan">
|
|
|
+ /* TsaMarketing.createPlanBrandCopy */
|
|
|
+ INSERT INTO
|
|
|
+ TB_PLAN_BRAND
|
|
|
+ (
|
|
|
+ BRAND_CD
|
|
|
+ ,PLAN_SQ
|
|
|
+ ,DISP_YN
|
|
|
+ ,REG_NO
|
|
|
+ ,REG_DT
|
|
|
+ ,UPD_NO
|
|
|
+ ,UPD_DT
|
|
|
+ ) SELECT BRAND_CD
|
|
|
+ , ${planSq}
|
|
|
+ , DISP_YN
|
|
|
+ , REG_NO
|
|
|
+ , REG_DT
|
|
|
+ , UPD_NO
|
|
|
+ , UPD_DT
|
|
|
+ FROM TB_PLAN_BRAND
|
|
|
+ WHERE 1=1
|
|
|
+ AND PLAN_SQ = #{copyPlanSq}
|
|
|
+ AND BRAND_CD = #{brandCd}
|
|
|
+ </insert>
|
|
|
</mapper>
|
|
|
|
|
|
|