이지우 - 메인화면 팝업 조회 오류 수정

This commit is contained in:
jiwoo 2024-01-09 10:34:49 +09:00
parent fe073ab009
commit ed54d28e23
3 changed files with 113 additions and 20 deletions

View File

@ -118,6 +118,15 @@ public class PopupManage extends ComDefaultVO implements Serializable {
/*main화면 출력*/
private String delSttus;
private String popupVrticlLc;
private String popupWidthLc;
private String popupVrticlSize;
private String popupWidthSize;
private String stopvewSetupAt;
private String frstRegistPnttm;
private String frstRegisterNm;
public PopupManage(){}
@ -547,5 +556,89 @@ public class PopupManage extends ComDefaultVO implements Serializable {
public void setNtceEnddeYYYMMDD(String ntceEnddeYYYMMDD) {
this.ntceEnddeYYYMMDD = ntceEnddeYYYMMDD;
}
public String getPopupVrticlLc() {
return popupVrticlLc;
}
public void setPopupVrticlLc(String popupVrticlLc) {
this.popupVrticlLc = popupVrticlLc;
}
public String getPopupWidthLc() {
return popupWidthLc;
}
public void setPopupWidthLc(String popupWidthLc) {
this.popupWidthLc = popupWidthLc;
}
public String getPopupVrticlSize() {
return popupVrticlSize;
}
public void setPopupVrticlSize(String popupVrticlSize) {
this.popupVrticlSize = popupVrticlSize;
}
public String getPopupWidthSize() {
return popupWidthSize;
}
public void setPopupWidthSize(String popupWidthSize) {
this.popupWidthSize = popupWidthSize;
}
public String getStopvewSetupAt() {
return stopvewSetupAt;
}
public void setStopvewSetupAt(String stopvewSetupAt) {
this.stopvewSetupAt = stopvewSetupAt;
}
public String getFrstRegistPnttm() {
return frstRegistPnttm;
}
public void setFrstRegistPnttm(String frstRegistPnttm) {
this.frstRegistPnttm = frstRegistPnttm;
}
public String getFrstRegisterNm() {
return frstRegisterNm;
}
public void setFrstRegisterNm(String frstRegisterNm) {
this.frstRegisterNm = frstRegisterNm;
}
}

View File

@ -38,27 +38,27 @@
</resultMap>
<!-- 팝업창관리:: 메인 게시물정보 -->
<select id="PopupManage.selectPopupManageMain" resultClass="egovMap">
<select id="PopupManage.selectPopupManageMain" resultClass="PopupManageVO">
/* PopupManage.selectPopupManageMain */
<![CDATA[
SELECT
A.POPUP_ID,
A.POPUP_SJ_NM POPUP_TITLE_NM,
A.FILE_URL,
A.POPUP_VRTICL_LC,
A.POPUP_WIDTH_LC,
A.POPUP_VRTICL_SIZE,
A.POPUP_WIDTH_SIZE,
A.NTCE_BGNDE,
A.NTCE_ENDDE,
A.STOPVEW_SETUP_AT,
A.NTCE_AT,
TO_CHAR(A.FRST_REGIST_PNTTM,'YYYY-MM-DD') FRST_REGIST_PNTTM,
(SELECT USER_NM FROM LETTNEMPLYRINFO WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_NM,
A.POPUP_TYPE,
A.SCROLL_TYPE,
A.NTT_CN,
A.SORT_NUM
A.POPUP_ID AS popupId,
A.POPUP_SJ_NM AS popupTitleNm,
A.FILE_URL AS fileUrl,
A.POPUP_VRTICL_LC AS popupVrticlLc,
A.POPUP_WIDTH_LC AS popupWidthLc,
A.POPUP_VRTICL_SIZE AS popupVrticlSize,
A.POPUP_WIDTH_SIZE AS popupWidthSize,
A.NTCE_BGNDE AS ntceBgnde,
A.NTCE_ENDDE AS ntceEndde,
A.STOPVEW_SETUP_AT AS stopvewSetupAt,
A.NTCE_AT AS ntceAt,
TO_CHAR(A.FRST_REGIST_PNTTM,'YYYY-MM-DD') AS frstRegistPnttm,
(SELECT USER_NM FROM LETTNEMPLYRINFO WHERE ESNTL_ID = A.FRST_REGISTER_ID) AS frstRegisterNm,
A.POPUP_TYPE AS popupType,
A.SCROLL_TYPE AS scrollType,
A.NTT_CN AS nttCn,
A.SORT_NUM AS sortNum
FROM COMTNPOPUPMANAGE A
WHERE 1=1
AND A.NTCE_AT = 'Y'

View File

@ -159,12 +159,12 @@ function instrChk(){
<c:choose>
<c:when test="${not empty popupListData.fileUrl}">
<a href="<c:out value='${popupListData.fileUrl}' />" target="_blank">
<c:out value='${popupListData.nttCn}' />
${popupListData.nttCn}
</a>
</c:when>
<c:otherwise>
<a href="#">
<c:out value='${popupListData.nttCn}' />
${popupListData.nttCn}
</a>
</c:otherwise>
</c:choose>