Browse Source

미입력현황에 완료현장은 제외하고 조회될수 있게 수정

SBK 1 year ago
parent
commit
246082724c

+ 4 - 2
src/main/resources/sqlmap/mappers/co/co0105/CO01050001UMapper.xml

@@ -200,10 +200,12 @@
 		     , NVL(C.RT_PROG_ACT_O,0) RT_PROG_ACT_O--Actual
 		     , NVL(C.RT_PROG_ACT_O,0) RT_PROG_ACT_O--Actual
 		  FROM CON_PJT_MST A
 		  FROM CON_PJT_MST A
 		  LEFT JOIN SM_COM_CMPN B ON A.CMPN_CD  = B.CMPN_CD 
 		  LEFT JOIN SM_COM_CMPN B ON A.CMPN_CD  = B.CMPN_CD 
-		  LEFT JOIN WC_Z_ETEC_PJT_PROGRESS@ERPSQL C ON C.CD_COMPANY = B.MAP_CMPN_CD AND C.CD_SITE = A.CC_CD AND SUBSTR(C.YM_PROG,0,6) = A.STD_YM 
+		  LEFT JOIN WC_Z_ETEC_PJT_PROGRESS@ERPSQL C ON C.CD_COMPANY = B.MAP_CMPN_CD AND C.CD_SITE = A.CC_CD AND SUBSTR(C.YM_PROG,0,6) = A.STD_YM
+		  LEFT JOIN CON_PJT_RESN D ON A.CMPN_CD = D.CMPN_CD AND A.STD_YM = D.STD_YM AND A.CC_CD = D.CC_CD
 		 WHERE A.CMPN_CD = #{cmpnCd}
 		 WHERE A.CMPN_CD = #{cmpnCd}
 		   AND A.STD_YM = #{stdYm}
 		   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 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 D.COMPL_CD = '01'
 		<if test="gubun == '02'">
 		<if test="gubun == '02'">
 		   AND ( NVL(C.RT_PROG_PLAN_O,0) > 0 OR NVL(C.RT_PROG_ACT_O,0) > 0 )
 		   AND ( NVL(C.RT_PROG_PLAN_O,0) > 0 OR NVL(C.RT_PROG_ACT_O,0) > 0 )
 		</if>
 		</if>