Browse Source

조회조건 변수 추가
- sysCd /* 시스템코드 */

dev001 9 months ago
parent
commit
d357175265

+ 1 - 0
src/main/java/sgc/portal/ei/ei0102/dto/EI01020001USearch.java

@@ -20,4 +20,5 @@ public class EI01020001USearch extends BaseSearchDto {
 	private String cmpnCd;     /* 회사 코드 */
 	private String cmpnCd;     /* 회사 코드 */
 	private String pyear;      /* 기준 연도 */
 	private String pyear;      /* 기준 연도 */
 	private String pmonth;     /* 기준 월   */
 	private String pmonth;     /* 기준 월   */
+	private String sysCd;     /* 시스템코드 */
 }
 }

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

@@ -428,7 +428,7 @@
                                              , ESBS_CD2
                                              , ESBS_CD2
                                              , USE_YN
                                              , USE_YN
                                           FROM SM_COM_COMMCD_D
                                           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
                                         ) B
                                         ON A.SPEC_CD = B.ESBS_CD2
                                         ON A.SPEC_CD = B.ESBS_CD2
                                         ,                                
                                         ,                                
@@ -457,7 +457,7 @@
                                         UNION ALL
                                         UNION ALL
                                         SELECT '12'  AS PMONTH FROM DUAL
                                         SELECT '12'  AS PMONTH FROM DUAL
                                         ) C
                                         ) 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'
                                     AND A.ESBS_CD1 = 'Y'
                                 ) A
                                 ) A
                                 LEFT OUTER JOIN
                                 LEFT OUTER JOIN
@@ -1275,7 +1275,7 @@ SELECT AA.CMPN_CD
                                              , ESBS_CD2
                                              , ESBS_CD2
                                              , USE_YN
                                              , USE_YN
                                           FROM SM_COM_COMMCD_D
                                           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
                                         ) B
                                         ON A.SPEC_CD = B.ESBS_CD2
                                         ON A.SPEC_CD = B.ESBS_CD2
                                         ,                                
                                         ,                                
@@ -1304,7 +1304,7 @@ SELECT AA.CMPN_CD
                                         UNION ALL
                                         UNION ALL
                                         SELECT '12'  AS PMONTH FROM DUAL
                                         SELECT '12'  AS PMONTH FROM DUAL
                                         ) C
                                         ) 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'
                                     AND A.ESBS_CD1 = 'Y'
                                 ) A
                                 ) A
                                 LEFT OUTER JOIN
                                 LEFT OUTER JOIN

+ 2 - 0
src/main/webapp/ux/ei/ei0102/EI01020001U.xml

@@ -30,6 +30,7 @@
 						<w2:key id="cmpnCd" name="회사 코드" dataType="text"></w2:key>
 						<w2:key id="cmpnCd" name="회사 코드" dataType="text"></w2:key>
 						<w2:key id="pyear" name="기준 연도" dataType="text"></w2:key>
 						<w2:key id="pyear" name="기준 연도" dataType="text"></w2:key>
 						<w2:key id="pmonth" name="기준 월" dataType="text"></w2:key>
 						<w2:key id="pmonth" name="기준 월" dataType="text"></w2:key>
+						<w2:key id="sysCd" name="시스템코드" dataType="text"></w2:key>
 					</w2:keyInfo>
 					</w2:keyInfo>
 				</w2:dataMap>
 				</w2:dataMap>
 				<w2:dataList baseNode="list" repeatNode="map" id="dcdataList1" saveRemovedData="" ev:oncelldatachange="">
 				<w2:dataList baseNode="list" repeatNode="map" id="dcdataList1" saveRemovedData="" ev:oncelldatachange="">
@@ -712,6 +713,7 @@
         dcsearchMap1.set( "cmpnCd" , scwin.cmpnCd);
         dcsearchMap1.set( "cmpnCd" , scwin.cmpnCd);
         dcsearchMap1.set( "pyear" , udcYm.getValue().substr(0,4));
         dcsearchMap1.set( "pyear" , udcYm.getValue().substr(0,4));
         dcsearchMap1.set( "pmonth" , udcYm.getValue().substr(4,6));
         dcsearchMap1.set( "pmonth" , udcYm.getValue().substr(4,6));
+        dcsearchMap1.set( "sysCd" , scwin.sysCd);
         
         
         ajaxLib.ajax("ei/ei0102/EI01020001U/list", {
         ajaxLib.ajax("ei/ei0102/EI01020001U/list", {
             method: "POST",
             method: "POST",