Browse Source

sql 정리

dev001 9 months ago
parent
commit
4c6a496ed0
1 changed files with 0 additions and 7 deletions
  1. 0 7
      src/main/resources/sqlmap/mappers/ei/ei0102/EI01020001UMapper.xml

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

@@ -761,7 +761,6 @@ SELECT AA.CMPN_CD
    ORDER BY AA.SORT_NUM
 	</select>
 	
-	
 	<select id="getList3" resultType="easyHashMap">
 		SELECT A.CMPN_CD                            /* 회사 코드           */
              , A.PYEAR                              /* 기준 연도           */
@@ -1000,14 +999,11 @@ SELECT AA.CMPN_CD
      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 A.BACKLOG_FCST = #{backlogFcst}
 		     , A.MDFT_DT = #{mdftDt}
 		     , A.MDFT_PR = #{mdftPr}
-		 		
       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)
            VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd} ,#{backlogFcst}, #{wrteDt}, #{wrtePr})
     </update>
@@ -1030,14 +1026,11 @@ SELECT AA.CMPN_CD
      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 A.BACKLOG_PFMC = #{backlogPfmc}
 		     , A.MDFT_DT = #{mdftDt}
 		     , A.MDFT_PR = #{mdftPr}
-		 		
       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)
            VALUES (#{cmpnCd} ,#{pyear} ,#{pmonth} ,#{ccgrpGbCd} ,#{backlogPfmc} ,#{wrteDt}, #{wrtePr})
     </update>