[사용자] 내 알림 1주일 경과된 데이터 삭제 처리
This commit is contained in:
parent
b1c740a576
commit
f2685aea0f
@ -381,12 +381,27 @@ public class MyPageController {
|
|||||||
, ModelMap model
|
, ModelMap model
|
||||||
) throws Exception {
|
) throws Exception {
|
||||||
|
|
||||||
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); // 권한에 따른 로그인 정보 가져오기
|
// try {
|
||||||
|
|
||||||
|
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
|
||||||
|
SsoLoginVO ssoLoginVO = checkLoginUtil.getSSOLoginVO(request); //SSO 로그인 정보 가져오기
|
||||||
|
|
||||||
|
if (loginVO == null || ssoLoginVO == null) {
|
||||||
|
//이전 url 처리(beforeSiteUrl)_이준호_220228추가
|
||||||
|
return checkLoginUtil.getUserLoginPage(model, request); //로그인 정보가 없으면 로그인 페이지로 이동한다.
|
||||||
|
// return checkLoginUtil.getUserLoginPage(model); //로그인 정보가 없으면 로그인 페이지로 이동한다.
|
||||||
|
}
|
||||||
|
|
||||||
|
notifyManageService.updateM7DaysUseYnN();
|
||||||
|
|
||||||
|
|
||||||
//1.pageing step1
|
//1.pageing step1
|
||||||
PaginationInfo paginationInfo = this.setNotiPagingStep1(notifyManageVO);
|
PaginationInfo paginationInfo = this.setNotiPagingStep1(notifyManageVO);
|
||||||
//2. pageing step2
|
//2. pageing step2
|
||||||
notifyManageVO = this.setNotiPagingStep2(notifyManageVO, paginationInfo);
|
notifyManageVO = this.setNotiPagingStep2(notifyManageVO, paginationInfo);
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
notifyManageVO.setToUserId(loginVO.getUniqId());
|
notifyManageVO.setToUserId(loginVO.getUniqId());
|
||||||
|
|
||||||
|
|
||||||
@ -412,7 +427,10 @@ public class MyPageController {
|
|||||||
|
|
||||||
//대상 리스트, 페이징 정보 전달
|
//대상 리스트, 페이징 정보 전달
|
||||||
model.addAttribute("list", notifyManageVOList);
|
model.addAttribute("list", notifyManageVOList);
|
||||||
|
// } catch (Exception e) {
|
||||||
|
// e.printStackTrace();
|
||||||
|
// // TODO: handle exception
|
||||||
|
// }
|
||||||
// return "web/my/myQnaMngList";
|
// return "web/my/myQnaMngList";
|
||||||
return "web/my/myNotifyMngList";
|
return "web/my/myNotifyMngList";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,6 +59,8 @@ public interface NotifyManageService {
|
|||||||
|
|
||||||
int selectNotifyCnt(String uniqId);
|
int selectNotifyCnt(String uniqId);
|
||||||
|
|
||||||
|
void updateM7DaysUseYnN();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,150 +1,152 @@
|
|||||||
package kcc.let.uss.notify.service;
|
package kcc.let.uss.notify.service;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import kcc.com.cmm.ComDefaultVO;
|
import kcc.com.cmm.ComDefaultVO;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 알림 관리자 관리
|
* 알림 관리자 관리
|
||||||
* @author 이호영
|
* @author 이호영
|
||||||
* @since 2023.12.14
|
* @since 2023.12.14
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @see
|
* @see
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* << 개정이력(Modification Information) >>
|
* << 개정이력(Modification Information) >>
|
||||||
*
|
*
|
||||||
* 수정일 수정자 수정내용
|
* 수정일 수정자 수정내용
|
||||||
* ------- -------- ---------------------------
|
* ------- -------- ---------------------------
|
||||||
* 2023.12.14 이호영 최초 생성
|
* 2023.12.14 이호영 최초 생성
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public class NotifyManageVO extends ComDefaultVO implements Serializable {
|
public class NotifyManageVO extends ComDefaultVO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* serialVersionUID
|
* serialVersionUID
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private String cmmNotifyOrd;
|
private String cmmNotifyOrd;
|
||||||
private String toUserId;
|
private String toUserId;
|
||||||
private String notifyCn;
|
private String notifyCn;
|
||||||
private String notifyChk;
|
private String notifyChk;
|
||||||
private String lctrDivCd;
|
private String lctrDivCd;
|
||||||
private String notifyPath;
|
private String notifyPath;
|
||||||
private String eduAplctOrd;
|
private String eduAplctOrd;
|
||||||
private String eduChasiOrd;
|
private String eduChasiOrd;
|
||||||
private String frstRegistPnttm;
|
private String frstRegistPnttm;
|
||||||
private String frstRegisterId;
|
private String frstRegisterId;
|
||||||
private String lastUpdtPnttm;
|
private String lastUpdtPnttm;
|
||||||
private String lastUpdusrId;
|
private String lastUpdusrId;
|
||||||
private String cmmNotifyMngOrd;
|
private String cmmNotifyMngOrd;
|
||||||
private String useYn;
|
private String useYn;
|
||||||
private String mngUserId;
|
private String mngUserId;
|
||||||
private String mngUserNm;
|
private String mngUserNm;
|
||||||
public String getCmmNotifyOrd() {
|
|
||||||
return cmmNotifyOrd;
|
|
||||||
}
|
public String getCmmNotifyOrd() {
|
||||||
public void setCmmNotifyOrd(String cmmNotifyOrd) {
|
return cmmNotifyOrd;
|
||||||
this.cmmNotifyOrd = cmmNotifyOrd;
|
}
|
||||||
}
|
public void setCmmNotifyOrd(String cmmNotifyOrd) {
|
||||||
public String getToUserId() {
|
this.cmmNotifyOrd = cmmNotifyOrd;
|
||||||
return toUserId;
|
}
|
||||||
}
|
public String getToUserId() {
|
||||||
public void setToUserId(String toUserId) {
|
return toUserId;
|
||||||
this.toUserId = toUserId;
|
}
|
||||||
}
|
public void setToUserId(String toUserId) {
|
||||||
public String getNotifyCn() {
|
this.toUserId = toUserId;
|
||||||
return notifyCn;
|
}
|
||||||
}
|
public String getNotifyCn() {
|
||||||
public void setNotifyCn(String notifyCn) {
|
return notifyCn;
|
||||||
this.notifyCn = notifyCn;
|
}
|
||||||
}
|
public void setNotifyCn(String notifyCn) {
|
||||||
public String getNotifyChk() {
|
this.notifyCn = notifyCn;
|
||||||
return notifyChk;
|
}
|
||||||
}
|
public String getNotifyChk() {
|
||||||
public void setNotifyChk(String notifyChk) {
|
return notifyChk;
|
||||||
this.notifyChk = notifyChk;
|
}
|
||||||
}
|
public void setNotifyChk(String notifyChk) {
|
||||||
public String getLctrDivCd() {
|
this.notifyChk = notifyChk;
|
||||||
return lctrDivCd;
|
}
|
||||||
}
|
public String getLctrDivCd() {
|
||||||
public void setLctrDivCd(String lctrDivCd) {
|
return lctrDivCd;
|
||||||
this.lctrDivCd = lctrDivCd;
|
}
|
||||||
}
|
public void setLctrDivCd(String lctrDivCd) {
|
||||||
public String getNotifyPath() {
|
this.lctrDivCd = lctrDivCd;
|
||||||
return notifyPath;
|
}
|
||||||
}
|
public String getNotifyPath() {
|
||||||
public void setNotifyPath(String notifyPath) {
|
return notifyPath;
|
||||||
this.notifyPath = notifyPath;
|
}
|
||||||
}
|
public void setNotifyPath(String notifyPath) {
|
||||||
public String getEduAplctOrd() {
|
this.notifyPath = notifyPath;
|
||||||
return eduAplctOrd;
|
}
|
||||||
}
|
public String getEduAplctOrd() {
|
||||||
public void setEduAplctOrd(String eduAplctOrd) {
|
return eduAplctOrd;
|
||||||
this.eduAplctOrd = eduAplctOrd;
|
}
|
||||||
}
|
public void setEduAplctOrd(String eduAplctOrd) {
|
||||||
public String getEduChasiOrd() {
|
this.eduAplctOrd = eduAplctOrd;
|
||||||
return eduChasiOrd;
|
}
|
||||||
}
|
public String getEduChasiOrd() {
|
||||||
public void setEduChasiOrd(String eduChasiOrd) {
|
return eduChasiOrd;
|
||||||
this.eduChasiOrd = eduChasiOrd;
|
}
|
||||||
}
|
public void setEduChasiOrd(String eduChasiOrd) {
|
||||||
public String getFrstRegistPnttm() {
|
this.eduChasiOrd = eduChasiOrd;
|
||||||
return frstRegistPnttm;
|
}
|
||||||
}
|
public String getFrstRegistPnttm() {
|
||||||
public void setFrstRegistPnttm(String frstRegistPnttm) {
|
return frstRegistPnttm;
|
||||||
this.frstRegistPnttm = frstRegistPnttm;
|
}
|
||||||
}
|
public void setFrstRegistPnttm(String frstRegistPnttm) {
|
||||||
public String getFrstRegisterId() {
|
this.frstRegistPnttm = frstRegistPnttm;
|
||||||
return frstRegisterId;
|
}
|
||||||
}
|
public String getFrstRegisterId() {
|
||||||
public void setFrstRegisterId(String frstRegisterId) {
|
return frstRegisterId;
|
||||||
this.frstRegisterId = frstRegisterId;
|
}
|
||||||
}
|
public void setFrstRegisterId(String frstRegisterId) {
|
||||||
public String getLastUpdtPnttm() {
|
this.frstRegisterId = frstRegisterId;
|
||||||
return lastUpdtPnttm;
|
}
|
||||||
}
|
public String getLastUpdtPnttm() {
|
||||||
public void setLastUpdtPnttm(String lastUpdtPnttm) {
|
return lastUpdtPnttm;
|
||||||
this.lastUpdtPnttm = lastUpdtPnttm;
|
}
|
||||||
}
|
public void setLastUpdtPnttm(String lastUpdtPnttm) {
|
||||||
public String getLastUpdusrId() {
|
this.lastUpdtPnttm = lastUpdtPnttm;
|
||||||
return lastUpdusrId;
|
}
|
||||||
}
|
public String getLastUpdusrId() {
|
||||||
public void setLastUpdusrId(String lastUpdusrId) {
|
return lastUpdusrId;
|
||||||
this.lastUpdusrId = lastUpdusrId;
|
}
|
||||||
}
|
public void setLastUpdusrId(String lastUpdusrId) {
|
||||||
public String getCmmNotifyMngOrd() {
|
this.lastUpdusrId = lastUpdusrId;
|
||||||
return cmmNotifyMngOrd;
|
}
|
||||||
}
|
public String getCmmNotifyMngOrd() {
|
||||||
public void setCmmNotifyMngOrd(String cmmNotifyMngOrd) {
|
return cmmNotifyMngOrd;
|
||||||
this.cmmNotifyMngOrd = cmmNotifyMngOrd;
|
}
|
||||||
}
|
public void setCmmNotifyMngOrd(String cmmNotifyMngOrd) {
|
||||||
public String getUseYn() {
|
this.cmmNotifyMngOrd = cmmNotifyMngOrd;
|
||||||
return useYn;
|
}
|
||||||
}
|
public String getUseYn() {
|
||||||
public void setUseYn(String useYn) {
|
return useYn;
|
||||||
this.useYn = useYn;
|
}
|
||||||
}
|
public void setUseYn(String useYn) {
|
||||||
public String getMngUserId() {
|
this.useYn = useYn;
|
||||||
return mngUserId;
|
}
|
||||||
}
|
public String getMngUserId() {
|
||||||
public void setMngUserId(String mngUserId) {
|
return mngUserId;
|
||||||
this.mngUserId = mngUserId;
|
}
|
||||||
}
|
public void setMngUserId(String mngUserId) {
|
||||||
public String getMngUserNm() {
|
this.mngUserId = mngUserId;
|
||||||
return mngUserNm;
|
}
|
||||||
}
|
public String getMngUserNm() {
|
||||||
public void setMngUserNm(String mngUserNm) {
|
return mngUserNm;
|
||||||
this.mngUserNm = mngUserNm;
|
}
|
||||||
}
|
public void setMngUserNm(String mngUserNm) {
|
||||||
|
this.mngUserNm = mngUserNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@ -82,5 +82,9 @@ public class NotifyManageDAO extends EgovAbstractDAO {
|
|||||||
return (int) select("VEANotifyDAO.selectNotifyCnt", uniqId);
|
return (int) select("VEANotifyDAO.selectNotifyCnt", uniqId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateM7DaysUseYnN() {
|
||||||
|
update("VEANotifyDAO.updateM7DaysUseYnN");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -386,4 +386,10 @@ public class NotifyManageServiceImpl extends EgovAbstractServiceImpl implements
|
|||||||
public int selectNotifyCnt(String uniqId) {
|
public int selectNotifyCnt(String uniqId) {
|
||||||
return notifyManageDAO.selectNotifyCnt(uniqId);
|
return notifyManageDAO.selectNotifyCnt(uniqId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateM7DaysUseYnN() {
|
||||||
|
notifyManageDAO.updateM7DaysUseYnN();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,6 +27,7 @@
|
|||||||
, FRST_REGISTER_ID
|
, FRST_REGISTER_ID
|
||||||
, LAST_UPDT_PNTTM
|
, LAST_UPDT_PNTTM
|
||||||
, LAST_UPDUSR_ID
|
, LAST_UPDUSR_ID
|
||||||
|
, USE_YN
|
||||||
|
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@ -43,7 +44,8 @@
|
|||||||
a.FRST_REGIST_PNTTM as frstRegistPnttm ,
|
a.FRST_REGIST_PNTTM as frstRegistPnttm ,
|
||||||
a.FRST_REGISTER_ID as frstRegisterId ,
|
a.FRST_REGISTER_ID as frstRegisterId ,
|
||||||
a.LAST_UPDT_PNTTM as lastUpdtPnttm ,
|
a.LAST_UPDT_PNTTM as lastUpdtPnttm ,
|
||||||
a.LAST_UPDUSR_ID as lastUpdusrId
|
a.LAST_UPDUSR_ID as lastUpdusrId ,
|
||||||
|
a.USE_YN as useYn
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
@ -56,6 +58,7 @@
|
|||||||
<include refid="VEANotifyDAO.table_name"/> a
|
<include refid="VEANotifyDAO.table_name"/> a
|
||||||
WHERE
|
WHERE
|
||||||
a.TO_USER_ID = #toUserId#
|
a.TO_USER_ID = #toUserId#
|
||||||
|
and a.USE_YN = 'Y'
|
||||||
ORDER BY
|
ORDER BY
|
||||||
a.NOTIFY_CHK
|
a.NOTIFY_CHK
|
||||||
, a.FRST_REGIST_PNTTM desc
|
, a.FRST_REGIST_PNTTM desc
|
||||||
@ -80,6 +83,7 @@
|
|||||||
, #frstRegisterId#
|
, #frstRegisterId#
|
||||||
, ''
|
, ''
|
||||||
, ''
|
, ''
|
||||||
|
, 'Y'
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@ -155,5 +159,10 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<update id="VEANotifyDAO.updateM7DaysUseYnN">
|
||||||
|
UPDATE VEA_CMM_NOTIFY
|
||||||
|
SET USE_YN = 'N'
|
||||||
|
WHERE FRST_REGIST_PNTTM <![CDATA[ <= ]]> SYSDATE - 7;
|
||||||
|
|
||||||
|
</update>
|
||||||
</sqlMap>
|
</sqlMap>
|
||||||
Loading…
Reference in New Issue
Block a user