Browse Source

공통코드 sql 수정
/* 경영정보)사업본부 구분(이테크) 1111 */

dev001 9 months ago
parent
commit
4157fcef9e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/main/resources/sqlmap/mappers/ei/ei0102/EI01020001UMapper.xml

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

@@ -1448,7 +1448,7 @@ SELECT AA.CMPN_CD
          	         AND A.CCGRP_GB_CD IN (
          	                               SELECT SPEC_CD   /* 사업본부 구분코드   */
                                               FROM SM_COM_COMMCD_D   /* 공통)공통코드상세 */
-                                             WHERE COMM_CD_ID = '1111'
+                                             WHERE COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = #{sysCd} AND COMM_CD = 'EI002') /* 경영정보)사업본부 구분(이테크) 1111 */                                               
                                                AND ESBS_CD1 = 'Y'
                                            ) 
                  ) A  
@@ -1546,7 +1546,7 @@ SELECT AA.CMPN_CD
          	                    AND CCGRP_GB_CD IN (
          	                                        SELECT SPEC_CD   /* 사업본부 구분코드   */
                                                        FROM SM_COM_COMMCD_D   /* 공통)공통코드상세 */
-                                                      WHERE COMM_CD_ID = '1111'
+                                                      WHERE COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = #{sysCd} AND COMM_CD = 'EI002') /* 경영정보)사업본부 구분(이테크) 1111 */
                                                         AND ESBS_CD1 = 'Y'
                                                     )
          	        ) A
@@ -1652,7 +1652,7 @@ SELECT AA.CMPN_CD
 	                             AND CCGRP_GB_CD IN (
 	                                                 SELECT SPEC_CD   /* 사업본부 구분코드   */
                                                        FROM SM_COM_COMMCD_D   /* 공통)공통코드상세 */
-                                                      WHERE COMM_CD_ID = '1111'
+                                                      WHERE COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = #{sysCd} AND COMM_CD = 'EI002') /* 경영정보)사업본부 구분(이테크) 1111 */
                                                         AND ESBS_CD1 = 'Y'
                                                      )  
                             ) A
@@ -1674,7 +1674,7 @@ SELECT AA.CMPN_CD
 	<select id="getSpecCd" resultType="easyHashMap">
 	SELECT SPEC_CD   /* 사업본부 구분코드   */
       FROM SM_COM_COMMCD_D   /* 공통)공통코드상세 */
-     WHERE COMM_CD_ID = '1111'
+     WHERE COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = #{sysCd} AND COMM_CD = 'EI002') /* 경영정보)사업본부 구분(이테크) 1111 */
        AND ESBS_CD1 = 'Y'
 	</select>
 	
@@ -1687,7 +1687,7 @@ SELECT AA.CMPN_CD
        AND CCGRP_GB_CD IN (
              	            SELECT SPEC_CD   /* 사업본부 구분코드   */
                               FROM SM_COM_COMMCD_D   /* 공통)공통코드상세 */
-                             WHERE COMM_CD_ID = '1111'
+                             WHERE COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = #{sysCd} AND COMM_CD = 'EI002') /* 경영정보)사업본부 구분(이테크) 1111 */
                                AND ESBS_CD1 = 'Y'
                            )
 	</select>