|
@@ -428,7 +428,7 @@
|
|
|
, ESBS_CD2
|
|
|
, USE_YN
|
|
|
FROM SM_COM_COMMCD_D
|
|
|
- WHERE COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = 'EIS' AND COMM_CD = 'EI003')
|
|
|
+ WHERE COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = #{sysCd} AND COMM_CD = 'EI003')
|
|
|
) B
|
|
|
ON A.SPEC_CD = B.ESBS_CD2
|
|
|
,
|
|
@@ -457,7 +457,7 @@
|
|
|
UNION ALL
|
|
|
SELECT '12' AS PMONTH FROM DUAL
|
|
|
) C
|
|
|
- WHERE A.COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = 'EIS' AND COMM_CD = 'EI002')
|
|
|
+ WHERE A.COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = #{sysCd} AND COMM_CD = 'EI002')
|
|
|
AND A.ESBS_CD1 = 'Y'
|
|
|
) A
|
|
|
LEFT OUTER JOIN
|
|
@@ -1275,7 +1275,7 @@ SELECT AA.CMPN_CD
|
|
|
, ESBS_CD2
|
|
|
, USE_YN
|
|
|
FROM SM_COM_COMMCD_D
|
|
|
- WHERE COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = 'EIS' AND COMM_CD = 'EI003')
|
|
|
+ WHERE COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = #{sysCd} AND COMM_CD = 'EI003')
|
|
|
) B
|
|
|
ON A.SPEC_CD = B.ESBS_CD2
|
|
|
,
|
|
@@ -1304,7 +1304,7 @@ SELECT AA.CMPN_CD
|
|
|
UNION ALL
|
|
|
SELECT '12' AS PMONTH FROM DUAL
|
|
|
) C
|
|
|
- WHERE A.COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = 'EIS' AND COMM_CD = 'EI002')
|
|
|
+ WHERE A.COMM_CD_ID = (SELECT COMM_CD_ID FROM SM_COM_COMMCD WHERE CMPN_CD = #{cmpnCd} AND SYS_CD = #{sysCd} AND COMM_CD = 'EI002')
|
|
|
AND A.ESBS_CD1 = 'Y'
|
|
|
) A
|
|
|
LEFT OUTER JOIN
|