|
@@ -816,6 +816,24 @@
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="insertOrUpdate1">
|
|
|
|
+ MERGE
|
|
|
|
+ INTO EIS_MI_PL_ETEC A
|
|
|
|
+ USING dual
|
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
|
|
|
|
+ WHEN MATCHED THEN
|
|
|
|
+ UPDATE
|
|
|
|
+ SET SLAMT_PLAN = #{plan}
|
|
|
|
+ , SLAMT_PFMC_RV = #{pfmcRv}
|
|
|
|
+ , SLAMT_FCST = #{fcst}
|
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.SLAMT_PLAN , A.SLAMT_PFMC_RV, A.SLAMT_FCST, A.WRTE_DT, A.WRTE_PR)
|
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd},#{plan} ,#{pfmcRv}, #{fcst}, #{wrteDt}, #{wrtePr})
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
<update id="update2">
|
|
<update id="update2">
|
|
UPDATE EIS_MI_PL_ETEC
|
|
UPDATE EIS_MI_PL_ETEC
|
|
SET SLPCOST_PLAN = #{plan}
|
|
SET SLPCOST_PLAN = #{plan}
|
|
@@ -829,6 +847,24 @@
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="insertOrUpdate2">
|
|
|
|
+ MERGE
|
|
|
|
+ INTO EIS_MI_PL_ETEC A
|
|
|
|
+ USING dual
|
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
|
|
|
|
+ WHEN MATCHED THEN
|
|
|
|
+ UPDATE
|
|
|
|
+ SET SLPCOST_PLAN = #{plan}
|
|
|
|
+ , SLPCOST_PFMC_RV = #{pfmcRv}
|
|
|
|
+ , SLPCOST_FCST = #{fcst}
|
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.SLPCOST_PLAN , A.SLPCOST_PFMC_RV, A.SLPCOST_FCST, A.WRTE_DT, A.WRTE_PR)
|
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd},#{plan} ,#{pfmcRv}, #{fcst},#{wrteDt}, #{wrtePr})
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
<update id="update3">
|
|
<update id="update3">
|
|
UPDATE EIS_MI_PL_ETEC
|
|
UPDATE EIS_MI_PL_ETEC
|
|
SET SLPROF_PLAN = #{plan}
|
|
SET SLPROF_PLAN = #{plan}
|
|
@@ -842,6 +878,24 @@
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="insertOrUpdate3">
|
|
|
|
+ MERGE
|
|
|
|
+ INTO EIS_MI_PL_ETEC A
|
|
|
|
+ USING dual
|
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
|
|
|
|
+ WHEN MATCHED THEN
|
|
|
|
+ UPDATE
|
|
|
|
+ SET SLPROF_PLAN = #{plan}
|
|
|
|
+ , SLPROF_PFMC_RV = #{pfmcRv}
|
|
|
|
+ , SLPROF_FCST = #{fcst}
|
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.SLPROF_PLAN , A.SLPROF_PFMC_RV, A.SLPROF_FCST, A.WRTE_DT, A.WRTE_PR)
|
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd},#{plan} ,#{pfmcRv}, #{fcst},#{wrteDt}, #{wrtePr})
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
<update id="update4">
|
|
<update id="update4">
|
|
UPDATE EIS_MI_PL_ETEC
|
|
UPDATE EIS_MI_PL_ETEC
|
|
SET SMCOST_PLAN = #{plan}
|
|
SET SMCOST_PLAN = #{plan}
|
|
@@ -855,6 +909,24 @@
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="insertOrUpdate4">
|
|
|
|
+ MERGE
|
|
|
|
+ INTO EIS_MI_PL_ETEC A
|
|
|
|
+ USING dual
|
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
|
|
|
|
+ WHEN MATCHED THEN
|
|
|
|
+ UPDATE
|
|
|
|
+ SET SMCOST_PLAN = #{plan}
|
|
|
|
+ , SMCOST_PFMC_RV = #{pfmcRv}
|
|
|
|
+ , SMCOST_FCST = #{fcst}
|
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.SMCOST_PLAN , A.SMCOST_PFMC_RV, A.SMCOST_FCST, A.WRTE_DT, A.WRTE_PR)
|
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd},#{plan} ,#{pfmcRv}, #{fcst},#{wrteDt}, #{wrtePr})
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
<update id="update5">
|
|
<update id="update5">
|
|
UPDATE EIS_MI_PL_ETEC
|
|
UPDATE EIS_MI_PL_ETEC
|
|
SET SMCOST_BZ_PLAN = #{plan}
|
|
SET SMCOST_BZ_PLAN = #{plan}
|
|
@@ -868,6 +940,24 @@
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="insertOrUpdate5">
|
|
|
|
+ MERGE
|
|
|
|
+ INTO EIS_MI_PL_ETEC A
|
|
|
|
+ USING dual
|
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
|
|
|
|
+ WHEN MATCHED THEN
|
|
|
|
+ UPDATE
|
|
|
|
+ SET SMCOST_BZ_PLAN = #{plan}
|
|
|
|
+ , SMCOST_BZ_PFMC_RV = #{pfmcRv}
|
|
|
|
+ , SMCOST_BZ_FCST = #{fcst}
|
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.SMCOST_BZ_PLAN, A.SMCOST_BZ_PFMC_RV, A.SMCOST_BZ_FCST, A.WRTE_DT, A.WRTE_PR)
|
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd},#{plan} ,#{pfmcRv}, #{fcst},#{wrteDt}, #{wrtePr})
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
<update id="update6">
|
|
<update id="update6">
|
|
UPDATE EIS_MI_PL_ETEC
|
|
UPDATE EIS_MI_PL_ETEC
|
|
SET SMCOST_SPT_PLAN = #{plan}
|
|
SET SMCOST_SPT_PLAN = #{plan}
|
|
@@ -881,6 +971,24 @@
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="insertOrUpdate6">
|
|
|
|
+ MERGE
|
|
|
|
+ INTO EIS_MI_PL_ETEC A
|
|
|
|
+ USING dual
|
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
|
|
|
|
+ WHEN MATCHED THEN
|
|
|
|
+ UPDATE
|
|
|
|
+ SET SMCOST_SPT_PLAN = #{plan}
|
|
|
|
+ , SMCOST_SPT_PFMC_RV = #{pfmcRv}
|
|
|
|
+ , SMCOST_SPT_FCST = #{fcst}
|
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.SMCOST_SPT_PLAN , A.SMCOST_SPT_PFMC_RV, A.SMCOST_SPT_FCST, A.WRTE_DT, A.WRTE_PR)
|
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd},#{plan} ,#{pfmcRv}, #{fcst},#{wrteDt}, #{wrtePr})
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
<update id="update7">
|
|
<update id="update7">
|
|
UPDATE EIS_MI_PL_ETEC
|
|
UPDATE EIS_MI_PL_ETEC
|
|
SET SMCOST_TMP_PLAN = #{plan}
|
|
SET SMCOST_TMP_PLAN = #{plan}
|
|
@@ -894,6 +1002,24 @@
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="insertOrUpdate7">
|
|
|
|
+ MERGE
|
|
|
|
+ INTO EIS_MI_PL_ETEC A
|
|
|
|
+ USING dual
|
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
|
|
|
|
+ WHEN MATCHED THEN
|
|
|
|
+ UPDATE
|
|
|
|
+ SET SMCOST_TMP_PLAN = #{plan}
|
|
|
|
+ , SMCOST_TMP_PFMC_RV = #{pfmcRv}
|
|
|
|
+ , SMCOST_TMP_FCST = #{fcst}
|
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.SMCOST_TMP_PLAN , A.SMCOST_TMP_PFMC_RV, A.SMCOST_TMP_FCST, A.WRTE_DT, A.WRTE_PR)
|
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd},#{plan} ,#{pfmcRv}, #{fcst}, #{wrteDt}, #{wrtePr})
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
<update id="update8">
|
|
<update id="update8">
|
|
UPDATE EIS_MI_PL_ETEC
|
|
UPDATE EIS_MI_PL_ETEC
|
|
SET SMCOST_ONSL_PLAN = #{plan}
|
|
SET SMCOST_ONSL_PLAN = #{plan}
|
|
@@ -907,6 +1033,24 @@
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="insertOrUpdate8">
|
|
|
|
+ MERGE
|
|
|
|
+ INTO EIS_MI_PL_ETEC A
|
|
|
|
+ USING dual
|
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
|
|
|
|
+ WHEN MATCHED THEN
|
|
|
|
+ UPDATE
|
|
|
|
+ SET SMCOST_ONSL_PLAN = #{plan}
|
|
|
|
+ , SMCOST_ONSL_PFMC_RV = #{pfmcRv}
|
|
|
|
+ , SMCOST_ONSL_FCST = #{fcst}
|
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.SMCOST_ONSL_PLAN , A.SMCOST_ONSL_PFMC_RV, A.SMCOST_ONSL_FCST, A.WRTE_DT, A.WRTE_PR)
|
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd},#{plan} ,#{pfmcRv}, #{fcst},#{wrteDt}, #{wrtePr})
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
<update id="update9">
|
|
<update id="update9">
|
|
UPDATE EIS_MI_PL_ETEC
|
|
UPDATE EIS_MI_PL_ETEC
|
|
SET BZPROF_PLAN = #{plan}
|
|
SET BZPROF_PLAN = #{plan}
|
|
@@ -919,5 +1063,22 @@
|
|
AND PMONTH = #{pmonth}
|
|
AND PMONTH = #{pmonth}
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
AND CCGRP_GB_CD = #{ccgrpGbCd}
|
|
</update>
|
|
</update>
|
|
|
|
+
|
|
|
|
+ <update id="insertOrUpdate9">
|
|
|
|
+ MERGE
|
|
|
|
+ INTO EIS_MI_PL_ETEC A
|
|
|
|
+ USING dual
|
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
|
|
|
|
+ WHEN MATCHED THEN
|
|
|
|
+ UPDATE
|
|
|
|
+ SET BZPROF_PLAN = #{plan}
|
|
|
|
+ , BZPROF_PFMC_RV = #{pfmcRv}
|
|
|
|
+ , BZPROF_FCST = #{fcst}
|
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.BZPROF_PLAN , A.BZPROF_PFMC_RV, A.BZPROF_FCST, A.WRTE_DT, A.WRTE_PR)
|
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd},#{plan} ,#{pfmcRv}, #{fcst},#{wrteDt}, #{wrtePr})
|
|
|
|
+ </update>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|