|
@@ -1448,7 +1448,7 @@ SELECT AA.CMPN_CD
|
|
AND A.CCGRP_GB_CD IN (
|
|
AND A.CCGRP_GB_CD IN (
|
|
SELECT SPEC_CD /* 사업본부 구분코드 */
|
|
SELECT SPEC_CD /* 사업본부 구분코드 */
|
|
FROM SM_COM_COMMCD_D /* 공통)공통코드상세 */
|
|
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'
|
|
AND ESBS_CD1 = 'Y'
|
|
)
|
|
)
|
|
) A
|
|
) A
|
|
@@ -1546,7 +1546,7 @@ SELECT AA.CMPN_CD
|
|
AND CCGRP_GB_CD IN (
|
|
AND CCGRP_GB_CD IN (
|
|
SELECT SPEC_CD /* 사업본부 구분코드 */
|
|
SELECT SPEC_CD /* 사업본부 구분코드 */
|
|
FROM SM_COM_COMMCD_D /* 공통)공통코드상세 */
|
|
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'
|
|
AND ESBS_CD1 = 'Y'
|
|
)
|
|
)
|
|
) A
|
|
) A
|
|
@@ -1652,7 +1652,7 @@ SELECT AA.CMPN_CD
|
|
AND CCGRP_GB_CD IN (
|
|
AND CCGRP_GB_CD IN (
|
|
SELECT SPEC_CD /* 사업본부 구분코드 */
|
|
SELECT SPEC_CD /* 사업본부 구분코드 */
|
|
FROM SM_COM_COMMCD_D /* 공통)공통코드상세 */
|
|
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'
|
|
AND ESBS_CD1 = 'Y'
|
|
)
|
|
)
|
|
) A
|
|
) A
|
|
@@ -1674,7 +1674,7 @@ SELECT AA.CMPN_CD
|
|
<select id="getSpecCd" resultType="easyHashMap">
|
|
<select id="getSpecCd" resultType="easyHashMap">
|
|
SELECT SPEC_CD /* 사업본부 구분코드 */
|
|
SELECT SPEC_CD /* 사업본부 구분코드 */
|
|
FROM SM_COM_COMMCD_D /* 공통)공통코드상세 */
|
|
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'
|
|
AND ESBS_CD1 = 'Y'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -1687,7 +1687,7 @@ SELECT AA.CMPN_CD
|
|
AND CCGRP_GB_CD IN (
|
|
AND CCGRP_GB_CD IN (
|
|
SELECT SPEC_CD /* 사업본부 구분코드 */
|
|
SELECT SPEC_CD /* 사업본부 구분코드 */
|
|
FROM SM_COM_COMMCD_D /* 공통)공통코드상세 */
|
|
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'
|
|
AND ESBS_CD1 = 'Y'
|
|
)
|
|
)
|
|
</select>
|
|
</select>
|