|
@@ -347,6 +347,22 @@
|
|
|
AND GRPCOMP_GB_CD = #{grpcompGbCd}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="insertOrUpdate1">
|
|
|
+ MERGE
|
|
|
+ INTO EIS_MI_FISTMT A
|
|
|
+ USING dual
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND GRPCOMP_GB_CD = #{grpcompGbCd})
|
|
|
+ WHEN MATCHED THEN
|
|
|
+ UPDATE
|
|
|
+ SET ASSET_CURR_AMT_RV = #{amtRv}
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.GRPCOMP_GB_CD, A.ASSET_CURR_AMT_RV, A.WRTE_DT, A.WRTE_PR)
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{grpcompGbCd},#{amtRv},#{wrteDt}, #{wrtePr})
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
<update id="update2">
|
|
|
UPDATE EIS_MI_FISTMT
|
|
|
SET ASSET_NCURR_AMT_RV = #{amtRv}
|
|
@@ -358,6 +374,22 @@
|
|
|
AND GRPCOMP_GB_CD = #{grpcompGbCd}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="insertOrUpdate2">
|
|
|
+ MERGE
|
|
|
+ INTO EIS_MI_FISTMT A
|
|
|
+ USING dual
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND GRPCOMP_GB_CD = #{grpcompGbCd})
|
|
|
+ WHEN MATCHED THEN
|
|
|
+ UPDATE
|
|
|
+ SET ASSET_NCURR_AMT_RV = #{amtRv}
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.GRPCOMP_GB_CD, A.ASSET_NCURR_AMT_RV, A.WRTE_DT, A.WRTE_PR)
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{grpcompGbCd},#{amtRv}, #{wrteDt}, #{wrtePr})
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
<update id="update3">
|
|
|
UPDATE EIS_MI_FISTMT
|
|
|
SET ASSET_CASH_AMT_RV = #{amtRv}
|
|
@@ -369,6 +401,22 @@
|
|
|
AND GRPCOMP_GB_CD = #{grpcompGbCd}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="insertOrUpdate3">
|
|
|
+ MERGE
|
|
|
+ INTO EIS_MI_FISTMT A
|
|
|
+ USING dual
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND GRPCOMP_GB_CD = #{grpcompGbCd})
|
|
|
+ WHEN MATCHED THEN
|
|
|
+ UPDATE
|
|
|
+ SET ASSET_CASH_AMT_RV = #{amtRv}
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.GRPCOMP_GB_CD, A.ASSET_CASH_AMT_RV, A.WRTE_DT, A.WRTE_PR)
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{grpcompGbCd}, #{amtRv}, #{wrteDt}, #{wrtePr})
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
<update id="update4">
|
|
|
UPDATE EIS_MI_FISTMT
|
|
|
SET LIAB_CURR_AMT_RV = #{amtRv}
|
|
@@ -380,6 +428,22 @@
|
|
|
AND GRPCOMP_GB_CD = #{grpcompGbCd}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="insertOrUpdate4">
|
|
|
+ MERGE
|
|
|
+ INTO EIS_MI_FISTMT A
|
|
|
+ USING dual
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND GRPCOMP_GB_CD = #{grpcompGbCd})
|
|
|
+ WHEN MATCHED THEN
|
|
|
+ UPDATE
|
|
|
+ SET LIAB_CURR_AMT_RV = #{amtRv}
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.GRPCOMP_GB_CD, A.LIAB_CURR_AMT_RV, A.WRTE_DT, A.WRTE_PR)
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{grpcompGbCd}, #{amtRv}, #{wrteDt}, #{wrtePr})
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
<update id="update5">
|
|
|
UPDATE EIS_MI_FISTMT
|
|
|
SET LIAB_NCURR_AMT_RV = #{amtRv}
|
|
@@ -391,6 +455,22 @@
|
|
|
AND GRPCOMP_GB_CD = #{grpcompGbCd}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="insertOrUpdate5">
|
|
|
+ MERGE
|
|
|
+ INTO EIS_MI_FISTMT A
|
|
|
+ USING dual
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND GRPCOMP_GB_CD = #{grpcompGbCd})
|
|
|
+ WHEN MATCHED THEN
|
|
|
+ UPDATE
|
|
|
+ SET LIAB_NCURR_AMT_RV = #{amtRv}
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.GRPCOMP_GB_CD, A.LIAB_NCURR_AMT_RV, A.WRTE_DT, A.WRTE_PR)
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{grpcompGbCd}, #{amtRv}, #{wrteDt}, #{wrtePr})
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
<update id="update6">
|
|
|
UPDATE EIS_MI_FISTMT
|
|
|
SET LIAB_BR_AMT_RV = #{amtRv}
|
|
@@ -402,6 +482,22 @@
|
|
|
AND GRPCOMP_GB_CD = #{grpcompGbCd}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="insertOrUpdate6">
|
|
|
+ MERGE
|
|
|
+ INTO EIS_MI_FISTMT A
|
|
|
+ USING dual
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND GRPCOMP_GB_CD = #{grpcompGbCd})
|
|
|
+ WHEN MATCHED THEN
|
|
|
+ UPDATE
|
|
|
+ SET LIAB_BR_AMT_RV = #{amtRv}
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.GRPCOMP_GB_CD, A.LIAB_BR_AMT_RV, A.WRTE_DT, A.WRTE_PR)
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{grpcompGbCd}, #{amtRv}, #{wrteDt}, #{wrtePr})
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
<update id="update7">
|
|
|
UPDATE EIS_MI_FISTMT
|
|
|
SET INTE_COST_AMT_RV = #{amtRv}
|
|
@@ -413,4 +509,20 @@
|
|
|
AND GRPCOMP_GB_CD = #{grpcompGbCd}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="insertOrUpdate7">
|
|
|
+ MERGE
|
|
|
+ INTO EIS_MI_FISTMT A
|
|
|
+ USING dual
|
|
|
+ ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND GRPCOMP_GB_CD = #{grpcompGbCd})
|
|
|
+ WHEN MATCHED THEN
|
|
|
+ UPDATE
|
|
|
+ SET INTE_COST_AMT_RV = #{amtRv}
|
|
|
+ , MDFT_DT = #{mdftDt}
|
|
|
+ , MDFT_PR = #{mdftPr}
|
|
|
+ WHEN NOT MATCHED THEN
|
|
|
+ INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.GRPCOMP_GB_CD, A.INTE_COST_AMT_RV, A.WRTE_DT, A.WRTE_PR)
|
|
|
+ VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{grpcompGbCd}, #{amtRv}, #{wrteDt}, #{wrtePr})
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|