Browse Source

메일발송 리스트 조회시 역량평가 문항 조인조건 추가

SH 1 month ago
parent
commit
c14a9c9e23
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/main/resources/sqlmap/mappers/cw/cw0632/CW06320001UMapper.xml

+ 5 - 1
src/main/resources/sqlmap/mappers/cw/cw0632/CW06320001UMapper.xml

@@ -10,9 +10,13 @@
 			, B.EMP_NM 
 			, '20' AS MAIL_GBN
 			, '00' AS STATUS_CD
-	 FROM ZEHR_CE_EVAL A, ZEHR_PHM_INFO_R B
+	 FROM ZEHR_CE_EVAL A, ZEHR_PHM_INFO_R B, ZEHR_CE_EVAL_DTL C
 	WHERE A.CMPN_CD = B.CMPN_CD
+	  AND A.CMPN_CD = C.CMPN_CD
 	  AND A.EVAL_EMP_NO = B.EMP_NO
+	  AND A.YEAR_YY = C.YEAR_YY
+	  AND A.EMP_NO = C.EMP_NO
+	  AND A.EVAL_EMP_NO = C.EVAL_EMP_NO
 	  AND A.CMPN_CD = #{cmpnCd}
 	  AND A.YEAR_YY = #{yy}
 	  AND A.CONF = '10'