Browse Source

sql 정리

dev001 9 months ago
parent
commit
4c6a496ed0

+ 0 - 7
src/main/resources/sqlmap/mappers/ei/ei0102/EI01020001UMapper.xml

@@ -761,7 +761,6 @@ SELECT AA.CMPN_CD
    ORDER BY AA.SORT_NUM
    ORDER BY AA.SORT_NUM
 	</select>
 	</select>
 	
 	
-	
 	<select id="getList3" resultType="easyHashMap">
 	<select id="getList3" resultType="easyHashMap">
 		SELECT A.CMPN_CD                            /* 회사 코드           */
 		SELECT A.CMPN_CD                            /* 회사 코드           */
              , A.PYEAR                              /* 기준 연도           */
              , A.PYEAR                              /* 기준 연도           */
@@ -1000,14 +999,11 @@ SELECT AA.CMPN_CD
      USING dual
      USING dual
         ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
         ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
       WHEN MATCHED THEN
       WHEN MATCHED THEN
-	  
 		UPDATE 
 		UPDATE 
 		   SET A.BACKLOG_FCST = #{backlogFcst}
 		   SET A.BACKLOG_FCST = #{backlogFcst}
 		     , A.MDFT_DT = #{mdftDt}
 		     , A.MDFT_DT = #{mdftDt}
 		     , A.MDFT_PR = #{mdftPr}
 		     , A.MDFT_PR = #{mdftPr}
-		 		
       WHEN NOT MATCHED THEN
       WHEN NOT MATCHED THEN
-	  
            INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.BACKLOG_FCST, A.WRTE_DT, A.WRTE_PR)
            INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.BACKLOG_FCST, A.WRTE_DT, A.WRTE_PR)
            VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd} ,#{backlogFcst}, #{wrteDt}, #{wrtePr})
            VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd} ,#{backlogFcst}, #{wrteDt}, #{wrtePr})
     </update>
     </update>
@@ -1030,14 +1026,11 @@ SELECT AA.CMPN_CD
      USING dual
      USING dual
         ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
         ON (A.CMPN_CD = #{cmpnCd} AND A.PYEAR = #{pyear} AND A.PMONTH = #{pmonth} AND CCGRP_GB_CD = #{ccgrpGbCd})
       WHEN MATCHED THEN
       WHEN MATCHED THEN
-	  
 		UPDATE 
 		UPDATE 
 		   SET A.BACKLOG_PFMC = #{backlogPfmc}
 		   SET A.BACKLOG_PFMC = #{backlogPfmc}
 		     , A.MDFT_DT = #{mdftDt}
 		     , A.MDFT_DT = #{mdftDt}
 		     , A.MDFT_PR = #{mdftPr}
 		     , A.MDFT_PR = #{mdftPr}
-		 		
       WHEN NOT MATCHED THEN
       WHEN NOT MATCHED THEN
-	  
            INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.BACKLOG_PFMC, A.WRTE_DT, A.WRTE_PR)
            INSERT (A.CMPN_CD, A.PYEAR, A.PMONTH, A.CCGRP_GB_CD, A.BACKLOG_PFMC, A.WRTE_DT, A.WRTE_PR)
            VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd} ,#{backlogPfmc} ,#{wrteDt}, #{wrtePr})
            VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd} ,#{backlogPfmc} ,#{wrteDt}, #{wrtePr})
     </update>
     </update>