Browse Source

화면수정

SBK 1 year ago
parent
commit
79773c27ef
1 changed files with 31 additions and 31 deletions
  1. 31 31
      src/main/resources/sqlmap/mappers/co/co0106/CO01060001UMapper.xml

+ 31 - 31
src/main/resources/sqlmap/mappers/co/co0106/CO01060001UMapper.xml

@@ -24,37 +24,37 @@
 			 , C.DIFF_RSN -- 차이 발생 사유
 			 , C.MDFT_PR -- 최종 수정자
 			 , TO_CHAR(TO_TIMESTAMP(C.MDFT_DT,'YYYY-MM-DD-HH24:MI:SS'),'YYYY-MM-DD-HH24:MI:SS') MDFT_DT -- 최종 수정일자
-			FROM CON_PJT_MST A
-			LEFT JOIN CON_PJT_RESN B ON B.CMPN_CD = A.CMPN_CD AND B.STD_YM = A.STD_YM AND B.CC_CD = A.CC_CD
-			LEFT JOIN CON_PJT_TIMEDIFF C ON C.CMPN_CD = A.CMPN_CD AND C.STD_YM = A.STD_YM AND C.CC_CD = A.CC_CD
-			 WHERE A.CMPN_CD = #{cmpnCd}
-			   AND A.STD_YM = #{stdYm}
-			   AND A.CC_CD NOT IN (SELECT SPEC_CD FROM SM_COM_COMMCD_D A, SM_COM_COMMCD B WHERE A.COMM_CD_ID = B.COMM_CD_ID AND B.COMM_CD = 'CO004' AND A.USE_YN = 'Y')
-			   AND A.CC_CD LIKE '%'||#{ccCd}||'%'
-			<if test="complCd != 'all'">
-			   AND B.COMPL_CD = #{complCd}
-			</if>
-			<if test="ccgrpCd != 'all'">
-			   AND A.CCGRP_CD = #{ccgrpCd}
-			</if>
-			<if test="gubun == 'ISDIFFAMT'">
-			   <![CDATA[
-			   AND 
-			   	(
-			   		C.DIFF_ORCO_CONT_AMT != 0 
-			  	 OR C.DIFF_ORCO_ACT_AMT != 0
-			  	 OR C.DIFF_ORCO_NAS_ACT_AMT != 0
-			  	 OR C.DIFF_RSN IS NOT NULL
-			   )]]>
-			</if>
-			<if test="gubun == 'ISNDIFFAMT'">
-			   <![CDATA[	  
-			   AND C.DIFF_ORCO_CONT_AMT = 0 
-		  	   AND C.DIFF_ORCO_ACT_AMT = 0 
-		  	   AND C.DIFF_ORCO_NAS_ACT_AMT = 0 
-		  	   AND C.DIFF_RSN IS NULL]]>
-			</if>
-			 ORDER BY A.CCGRP_CD, A.CC_CD
+		  FROM CON_PJT_MST A
+		  LEFT JOIN CON_PJT_RESN B ON B.CMPN_CD = A.CMPN_CD AND B.STD_YM = A.STD_YM AND B.CC_CD = A.CC_CD
+		  LEFT JOIN CON_PJT_TIMEDIFF C ON C.CMPN_CD = A.CMPN_CD AND C.STD_YM = A.STD_YM AND C.CC_CD = A.CC_CD
+		 WHERE A.CMPN_CD = #{cmpnCd}
+		   AND A.STD_YM = #{stdYm}
+		   AND A.CC_CD NOT IN (SELECT SPEC_CD FROM SM_COM_COMMCD_D A, SM_COM_COMMCD B WHERE A.COMM_CD_ID = B.COMM_CD_ID AND B.COMM_CD = 'CO004' AND A.USE_YN = 'Y')
+		   AND A.CC_CD LIKE '%'||#{ccCd}||'%'
+		<if test="complCd != 'all'">
+		   AND B.COMPL_CD = #{complCd}
+		</if>
+		<if test="ccgrpCd != 'all'">
+		   AND A.CCGRP_CD = #{ccgrpCd}
+		</if>
+		<if test="gubun == 'ISDIFFAMT'">
+		   <![CDATA[
+		   AND 
+		   	(
+		   		C.DIFF_ORCO_CONT_AMT != 0 
+		  	 OR C.DIFF_ORCO_ACT_AMT != 0
+		  	 OR C.DIFF_ORCO_NAS_ACT_AMT != 0
+		  	 OR C.DIFF_RSN IS NOT NULL
+		   )]]>
+		</if>
+		<if test="gubun == 'ISNDIFFAMT'">
+		   <![CDATA[	  
+		   AND C.DIFF_ORCO_CONT_AMT = 0 
+	  	   AND C.DIFF_ORCO_ACT_AMT = 0 
+	  	   AND C.DIFF_ORCO_NAS_ACT_AMT = 0 
+	  	   AND C.DIFF_RSN IS NULL]]>
+		</if>
+		 ORDER BY A.CCGRP_CD, A.CC_CD
 	</select>
     
     <update id="update1" parameterType="map">