관리자 수정
This commit is contained in:
parent
c616c1d808
commit
53f8b95a97
@ -36,9 +36,6 @@ public class MainPopupManageServiceImpl extends EgovAbstractServiceImpl implemen
|
||||
@Resource(name = "popupManageDAO")
|
||||
public PopupManageDAO popupDao;
|
||||
|
||||
@Resource(name = "egovPopupManageIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
@Override
|
||||
public List<?> selectMainPopupList(MainPopupVO mainPopupVO) throws Exception {
|
||||
return dao.selectMainPopupList(mainPopupVO);
|
||||
|
||||
@ -43,9 +43,6 @@ public class SubMainZoneManageServiceImpl extends EgovAbstractServiceImpl implem
|
||||
@Resource(name="popupzoneManageDAO")
|
||||
private PopupzoneManageDAO popupzoneManageDAO;
|
||||
|
||||
@Resource(name = "egovPopupManageIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
@Override
|
||||
public List<?> selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception {
|
||||
return dao.selectSubMainzoneList(mainzoneVO);
|
||||
|
||||
@ -73,10 +73,6 @@ public class EgovBannerController {
|
||||
@Resource(name = "egovBannerService")
|
||||
private EgovBannerService egovBannerService;
|
||||
|
||||
/** Message ID Generation */
|
||||
@Resource(name="egovBannerIdGnrService")
|
||||
private EgovIdGnrService egovBannerIdGnrService;
|
||||
|
||||
@Resource(name = "EgovFileMngService")
|
||||
private EgovFileMngService fileService;
|
||||
|
||||
@ -255,7 +251,8 @@ public class EgovBannerController {
|
||||
}
|
||||
}
|
||||
|
||||
banner.setBannerId(egovBannerIdGnrService.getNextStringId());
|
||||
// banner.setBannerId(egovBannerIdGnrService.getNextStringId());
|
||||
banner.setBannerId("ERROR");
|
||||
banner.setBannerImage(bannerImage);
|
||||
banner.setBannerImageFile(atchFileId);
|
||||
banner.setUserId(user.getId());
|
||||
|
||||
@ -110,10 +110,6 @@ public class FmsFileController {
|
||||
@Resource(name = "certService")
|
||||
private CertService certService;
|
||||
|
||||
/** Message ID Generation */
|
||||
@Resource(name="egovBannerIdGnrService")
|
||||
private EgovIdGnrService egovBannerIdGnrService;
|
||||
|
||||
@Resource(name="egovCertEtcIdGnrService")
|
||||
private EgovIdGnrService egovCertEtcIdGnrService;
|
||||
|
||||
@ -464,7 +460,8 @@ public class FmsFileController {
|
||||
popupzoneVO.setSortOver("D");
|
||||
egovPopupManageService.resetSort(popupzoneVO);
|
||||
}else if("banner".equals(fileVO.getMenuName())) { //배너
|
||||
banner.setBannerId(egovBannerIdGnrService.getNextStringId());
|
||||
// banner.setBannerId(egovBannerIdGnrService.getNextStringId());
|
||||
banner.setBannerId("ERROR");
|
||||
banner.setUserId(loginVO.getId());
|
||||
banner.setDelSttus("N"); //삭제여부 N 초기화
|
||||
bannerVO.setBannerId(banner.getBannerId());
|
||||
|
||||
@ -46,9 +46,6 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen
|
||||
/** PopupzoneManageDAO */
|
||||
@Resource(name="popupzoneManageDAO")
|
||||
private PopupzoneManageDAO popupzoneManageDAO;
|
||||
|
||||
@Resource(name = "egovPopupManageIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
public EgovPopupManageServiceImpl() {
|
||||
}
|
||||
@ -74,7 +71,8 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen
|
||||
*/
|
||||
@Override
|
||||
public void insertPopup(PopupManageVO popupManageVO) throws Exception {
|
||||
String sMakeId = idgenService.getNextStringId();
|
||||
// String sMakeId = idgenService.getNextStringId();
|
||||
String sMakeId = "ERROR";
|
||||
popupManageVO.setPopupId(sMakeId);
|
||||
dao.insertPopup(popupManageVO);
|
||||
}
|
||||
|
||||
@ -19,10 +19,6 @@ public class EgovHpcmServiceImpl extends EgovAbstractServiceImpl implements Egov
|
||||
@Resource(name="EgovHpcmDAO")
|
||||
private EgovHpcmDAO egovHpcmDao;
|
||||
|
||||
/** ID Generation */
|
||||
@Resource(name="egovHpcmManageIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
@Override
|
||||
public List<?> selectHpcmList(HpcmDefaultVO searchVO) throws Exception {
|
||||
return egovHpcmDao.selectHpcmList(searchVO);
|
||||
@ -44,7 +40,8 @@ public class EgovHpcmServiceImpl extends EgovAbstractServiceImpl implements Egov
|
||||
@Override
|
||||
public void insertHpcm(HpcmVO hpcmVO) throws FdlException {
|
||||
|
||||
String hpcmId = idgenService.getNextStringId();
|
||||
// String hpcmId = idgenService.getNextStringId();
|
||||
String hpcmId = "ERROR";
|
||||
hpcmVO.setHpcmId(hpcmId);
|
||||
|
||||
egovHpcmDao.insertHpcm(hpcmVO);
|
||||
|
||||
@ -1,78 +0,0 @@
|
||||
package itn.let.cop.bbs.service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.aspectj.lang.JoinPoint;
|
||||
|
||||
/**
|
||||
* 게시판 변경이력 생성을 위한 ASPECT 클래스
|
||||
* @author ITN
|
||||
* @since 2018.08.17
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2018.08.17 ITN 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class EgovBBSChgHstAspect {
|
||||
|
||||
@Resource(name = "EgovBBSManageService")
|
||||
private EgovBBSManageService bbsMngService;
|
||||
|
||||
/**
|
||||
* 게시물 생성 정보를 생성한다.
|
||||
* EgovBBSManageService.insertBoardArticle Method
|
||||
*
|
||||
* @param
|
||||
* @return void
|
||||
* @throws Exception
|
||||
*/
|
||||
public void insertBBSChgHst(JoinPoint joinPoint, Object returnVal) throws Throwable {
|
||||
String methodName = joinPoint.getSignature().getName();
|
||||
|
||||
if (returnVal instanceof Board) {
|
||||
Board board = (Board) returnVal;
|
||||
String histSe = "";
|
||||
String bbsChgNm = board.getLastUpdusrNm();
|
||||
String bbsChgId = board.getLastUpdusrId();
|
||||
String bbsNttSj = board.getNttSj();
|
||||
String bbsNttCn = board.getNttCn();
|
||||
|
||||
if (methodName.equals("insertBoardArticle")) {
|
||||
histSe = "C";
|
||||
bbsChgNm = board.getNtcrNm();
|
||||
bbsChgId = board.getFrstRegisterId();
|
||||
} else if (methodName.equals("updateBoardArticle")) {
|
||||
histSe = "U";
|
||||
} else if (methodName.equals("deleteBoardArticle")) {
|
||||
histSe = "D";
|
||||
bbsNttSj = "삭제된 게시글입니다.";
|
||||
bbsNttCn = "삭제된 게시글입니다.";
|
||||
}
|
||||
|
||||
BoardChgHst param = new BoardChgHst();
|
||||
param.setNttId(board.getNttId());
|
||||
param.setBbsId(board.getBbsId());
|
||||
int histId = bbsMngService.selectBoardChgHstId(param);
|
||||
|
||||
BoardChgHst boardChgHst = new BoardChgHst();
|
||||
boardChgHst.setNttId(board.getNttId());
|
||||
boardChgHst.setBbsId(board.getBbsId());
|
||||
boardChgHst.setHistId(histId);
|
||||
boardChgHst.setHistSe(histSe);
|
||||
boardChgHst.setNttSj(bbsNttSj);
|
||||
boardChgHst.setNttCn(bbsNttCn);
|
||||
boardChgHst.setFrstRegisterNm(bbsChgNm);
|
||||
boardChgHst.setFrstRegisterId(bbsChgId);
|
||||
boardChgHst.setNtcrIp(board.getNtcrIp());
|
||||
bbsMngService.insertBoardChgHst(boardChgHst);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,18 +1,12 @@
|
||||
package itn.let.cop.bbs.web;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.OutputStream;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.net.URLEncoder;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
@ -64,7 +58,6 @@ import egovframework.rte.psl.dataaccess.util.EgovMap;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import itn.com.cmm.ComDefaultCodeVO;
|
||||
import itn.com.cmm.EgovMessageSource;
|
||||
import itn.com.cmm.EgovMultiPartEmail;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.com.cmm.ReadVO;
|
||||
import itn.com.cmm.UserVO;
|
||||
@ -141,9 +134,6 @@ public class EgovBBSManageController {
|
||||
@Resource(name = "egovMessageSource")
|
||||
EgovMessageSource egovMessageSource;
|
||||
|
||||
@Resource(name = "egovMultiPartEmail")
|
||||
private EgovMultiPartEmail egovMultiPartEmail;
|
||||
|
||||
//문자발송 서비스
|
||||
@Resource(name = "MjonMsgDataService")
|
||||
private MjonMsgDataService mjonMsgDataService;
|
||||
|
||||
@ -33,10 +33,6 @@ public class EgovIndvdlSchdulManageServiceImpl extends EgovAbstractServiceImpl i
|
||||
private IndvdlSchdulManageDao dao;
|
||||
|
||||
|
||||
@Resource(name="deptSchdulManageIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
|
||||
/**
|
||||
* 메인페이지/일정관리조회
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
@ -110,7 +106,7 @@ public class EgovIndvdlSchdulManageServiceImpl extends EgovAbstractServiceImpl i
|
||||
*/
|
||||
@Override
|
||||
public void insertIndvdlSchdulManage(IndvdlSchdulManageVO indvdlSchdulManageVO) throws Exception {
|
||||
String sMakeId = idgenService.getNextStringId();
|
||||
String sMakeId = "ERROR";
|
||||
indvdlSchdulManageVO.setSchdulId(sMakeId);
|
||||
|
||||
dao.insertIndvdlSchdulManage(indvdlSchdulManageVO);
|
||||
|
||||
@ -15,7 +15,6 @@ import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import itn.com.cmm.EgovMultiPartEmail;
|
||||
import itn.let.mail.service.EmailItnVO;
|
||||
import itn.let.mail.service.MailTemplateService;
|
||||
import itn.let.mail.service.StatusResponse;
|
||||
@ -46,9 +45,6 @@ public class MailTemplateServiceImpl extends EgovAbstractServiceImpl implements
|
||||
@Value("#{globalSettings['Globals.itn.mail.to.address']}")
|
||||
private String ITN_MAIL_TO_ADDRESS;
|
||||
|
||||
@Resource(name = "egovMultiPartEmail")
|
||||
private EgovMultiPartEmail egovMultiPartEmail;
|
||||
|
||||
@Resource(name = "mberManageDAO")
|
||||
private MberManageDAO mberManageDAO;
|
||||
|
||||
|
||||
@ -65,7 +65,6 @@ import itn.let.sym.mnu.mpm.service.MenuManageVO;
|
||||
import itn.let.sym.site.service.EgovSiteIpService;
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.sym.site.service.SiteManagerVO;
|
||||
import itn.let.uss.olp.qmc.service.EgovQustnrManageService;
|
||||
import itn.let.uss.umt.service.EgovUserManageService;
|
||||
import itn.let.uss.umt.service.MberManageVO;
|
||||
import itn.let.utl.sim.service.EgovClntInfo;
|
||||
@ -99,9 +98,6 @@ public class EgovMainController {
|
||||
@Resource(name = "userManageService")
|
||||
private EgovUserManageService userManageService;
|
||||
|
||||
@Resource(name = "egovQustnrManageService")
|
||||
private EgovQustnrManageService egovQustnrManageService;
|
||||
|
||||
/** EgovMenuManageService */
|
||||
@Resource(name = "meunManageService")
|
||||
private EgovMenuManageService menuManageService;
|
||||
|
||||
@ -95,7 +95,7 @@ import itn.let.mjo.symbol.service.MjonSymbolService;
|
||||
import itn.let.mjo.symbol.service.MjonSymbolVO;
|
||||
import itn.let.sym.ccm.cde.service.CateCode;
|
||||
import itn.let.sym.ccm.cde.service.EgovCcmCmmnDetailCodeManageService;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.uss.umt.service.EgovMberManageService;
|
||||
@ -179,9 +179,9 @@ public class MjonMsgCampainDataController {
|
||||
@Resource(name = "egovSiteManagerService")
|
||||
EgovSiteManagerService egovSiteManagerService;
|
||||
|
||||
/** 등급제 관리 서비스 */
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
|
||||
|
||||
|
||||
@Resource(name = "MsgHolidayService")
|
||||
private MsgHolidayService msgHolidayService;
|
||||
@ -408,7 +408,7 @@ public class MjonMsgCampainDataController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
@ -1034,7 +1034,7 @@ public class MjonMsgCampainDataController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
@ -2230,7 +2230,7 @@ public class MjonMsgCampainDataController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
|
||||
@ -59,7 +59,7 @@ import itn.let.mjo.symbol.service.MjonSymbolService;
|
||||
import itn.let.mjo.symbol.service.MjonSymbolVO;
|
||||
import itn.let.sym.ccm.cde.service.CateCode;
|
||||
import itn.let.sym.ccm.cde.service.EgovCcmCmmnDetailCodeManageService;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.uss.umt.service.EgovMberManageService;
|
||||
@ -144,9 +144,9 @@ public class MjonMsgCampainHGDataController {
|
||||
@Resource(name = "egovSiteManagerService")
|
||||
EgovSiteManagerService egovSiteManagerService;
|
||||
|
||||
/** 등급제 관리 서비스 */
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
|
||||
|
||||
|
||||
@Resource(name = "MsgHolidayService")
|
||||
private MsgHolidayService msgHolidayService;
|
||||
@ -360,7 +360,7 @@ public class MjonMsgCampainHGDataController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
@ -752,7 +752,7 @@ public class MjonMsgCampainHGDataController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
|
||||
@ -84,7 +84,7 @@ import itn.let.mjo.symbol.service.MjonSymbolService;
|
||||
import itn.let.mjo.symbol.service.MjonSymbolVO;
|
||||
import itn.let.sym.ccm.cde.service.CateCode;
|
||||
import itn.let.sym.ccm.cde.service.EgovCcmCmmnDetailCodeManageService;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.uss.umt.service.EgovMberManageService;
|
||||
@ -168,9 +168,9 @@ public class MjonMsgCampainTWDataController {
|
||||
@Resource(name = "egovSiteManagerService")
|
||||
EgovSiteManagerService egovSiteManagerService;
|
||||
|
||||
/** 등급제 관리 서비스 */
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
|
||||
|
||||
|
||||
@Resource(name = "MsgHolidayService")
|
||||
private MsgHolidayService msgHolidayService;
|
||||
@ -396,7 +396,7 @@ public class MjonMsgCampainTWDataController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
@ -1105,7 +1105,7 @@ public class MjonMsgCampainTWDataController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
|
||||
@ -106,7 +106,7 @@ import itn.let.mjo.symbol.service.MjonSymbolVO;
|
||||
import itn.let.schdlr.service.SchdlrManageService;
|
||||
import itn.let.sym.ccm.cde.service.CateCode;
|
||||
import itn.let.sym.ccm.cde.service.EgovCcmCmmnDetailCodeManageService;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.uss.umt.service.EgovMberManageService;
|
||||
@ -185,9 +185,9 @@ public class MjonMsgDataController {
|
||||
@Resource(name = "egovSiteManagerService")
|
||||
EgovSiteManagerService egovSiteManagerService;
|
||||
|
||||
/** 등급제 관리 서비스 */
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
|
||||
|
||||
|
||||
@Resource(name = "MjonMsgSentService")
|
||||
private MjonMsgSentService mjonMsgSentService;
|
||||
@ -535,7 +535,7 @@ public class MjonMsgDataController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
@ -1233,7 +1233,7 @@ public class MjonMsgDataController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
@ -2642,7 +2642,7 @@ public class MjonMsgDataController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
|
||||
@ -39,8 +39,6 @@ import itn.let.mjo.pay.service.RefundVO;
|
||||
import itn.let.mjo.pay.service.StVcVO;
|
||||
import itn.let.mjo.tax.service.TaxVO;
|
||||
import itn.let.mjo.tax.service.impl.TaxDAO;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.grd.service.MberGrdVO;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.uat.uia.service.impl.MberManageDAO;
|
||||
import itn.let.uss.umt.service.MberManageVO;
|
||||
@ -91,8 +89,8 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
||||
EgovCryptoUtil egovCryptoUtil;
|
||||
|
||||
/* 등급제 */
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public List<MjonPayVO> selectPayList(MjonPayVO mjonPayVO) throws Exception {
|
||||
@ -418,14 +416,6 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
||||
}
|
||||
|
||||
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(mjonPayVO.getUserId());
|
||||
mberGrdVO.setAmt(mjonPayVO.getAmt());
|
||||
mberGrdVO.setMoid(mjonPayVO.getMoid());
|
||||
mberGrdService.mberGrdSaveByUser(mberGrdVO);
|
||||
// End
|
||||
|
||||
System.out.println("END 카드결제");
|
||||
|
||||
@ -734,15 +724,6 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(mjonPayVO.getUserId());
|
||||
mberGrdVO.setAmt(mjonPayVO.getAmt());
|
||||
mberGrdVO.setMoid(mjonPayVO.getMoid());
|
||||
mberGrdService.mberGrdSaveByUser(mberGrdVO);
|
||||
// End
|
||||
|
||||
|
||||
|
||||
@ -2144,15 +2125,6 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
||||
}
|
||||
|
||||
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(mjonPayVO.getUserId());
|
||||
mberGrdVO.setAmt(mjonPayVO.getAmt());
|
||||
mberGrdVO.setMoid(mjonPayVO.getMoid());
|
||||
mberGrdService.mberGrdSaveByUser(mberGrdVO);
|
||||
// End
|
||||
|
||||
|
||||
mjonPayVO.setPaySuccess(true);
|
||||
}
|
||||
@ -2315,15 +2287,6 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
||||
}
|
||||
|
||||
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(mjonPayVO.getUserId());
|
||||
mberGrdVO.setAmt(mjonPayVO.getAmt());
|
||||
mberGrdVO.setMoid(mjonPayVO.getMoid());
|
||||
mberGrdService.mberGrdSaveByUser(mberGrdVO);
|
||||
// End
|
||||
|
||||
|
||||
mjonPayVO.setPaySuccess(true);
|
||||
}
|
||||
|
||||
@ -18,8 +18,6 @@ import itn.let.mjo.msgdata.service.impl.MjonMsgDataDAO;
|
||||
import itn.let.mjo.pay.service.MjonPayVO;
|
||||
import itn.let.mjo.pay.service.RefundService;
|
||||
import itn.let.mjo.pay.service.RefundVO;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.grd.service.MberGrdVO;
|
||||
import itn.let.uss.umt.service.MberManageVO;
|
||||
import itn.let.utl.sim.service.EgovFileScrty;
|
||||
|
||||
@ -46,8 +44,8 @@ public class RefundServiceImpl extends EgovAbstractServiceImpl implements Refund
|
||||
@Resource(name="mjonPayDAO")
|
||||
private MjonPayDAO mjonPayDAO;
|
||||
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public List<RefundVO> selectRefundList(RefundVO refundVO) throws Exception {
|
||||
@ -181,20 +179,6 @@ public class RefundServiceImpl extends EgovAbstractServiceImpl implements Refund
|
||||
else
|
||||
msg = "결제취소요청이 취소처리 되었습니다";
|
||||
|
||||
try {
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(refundVO.getMberId());
|
||||
mberGrdVO.setAmt("0");
|
||||
mberGrdVO.setMoid("");
|
||||
mberGrdService.mberGrdSaveByUserNoHist(mberGrdVO);
|
||||
// End
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
return new StatusResponse(HttpStatus.OK, msg, LocalDateTime.now());
|
||||
}
|
||||
|
||||
|
||||
@ -76,18 +76,14 @@ import itn.let.mjo.msgdata.service.MjonMsgDataService;
|
||||
import itn.let.mjo.pay.service.KmcVO;
|
||||
import itn.let.mjo.pay.service.MjonPayService;
|
||||
import itn.let.mjo.pay.service.MjonPayVO;
|
||||
import itn.let.mjo.pay.service.MjonVaMsgLogVO;
|
||||
import itn.let.mjo.pay.service.RefundService;
|
||||
import itn.let.mjo.pay.service.RefundVO;
|
||||
import itn.let.mjo.pay.service.StVcVO;
|
||||
import itn.let.mjo.payva.service.VacsVactService;
|
||||
import itn.let.mjo.payva.service.VacsVactVO;
|
||||
import itn.let.mjo.reservmsg.service.MjonReservMsgService;
|
||||
import itn.let.mjo.tax.service.TaxService;
|
||||
import itn.let.mjo.tax.service.TaxVO;
|
||||
import itn.let.schdlr.service.SchdlrManageService;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.grd.service.MberGrdVO;
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.uat.uia.service.AuthCertVO;
|
||||
@ -164,8 +160,8 @@ public class MjonPayController {
|
||||
@Resource(name = "egovSiteManagerService")
|
||||
EgovSiteManagerService egovSiteManagerService;
|
||||
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
|
||||
|
||||
//배열 정의{"컬럼순차번호, 컬럼이름, 컬럼내용, 컬럼이름에 붙여야할 내용(엑셀코드양식다운로드시 필요)"}
|
||||
private String[][] sendPayExcelValue ={
|
||||
@ -1586,7 +1582,7 @@ public class MjonPayController {
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
float shortPrice = 0; // 단문(SMS)
|
||||
float longPrice = 0; // 장문(LMS)
|
||||
@ -1652,10 +1648,6 @@ public class MjonPayController {
|
||||
}
|
||||
model.addAttribute("tabType", tabType);
|
||||
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
List<MberGrdVO> mberGrdSettingList = mberGrdService.selectMberGrdSettingList(mberGrdVO);
|
||||
model.addAttribute("mberGrdSettingList", mberGrdSettingList);
|
||||
|
||||
return "/web/pay/PayGuide";
|
||||
}
|
||||
|
||||
@ -1765,100 +1757,6 @@ public class MjonPayController {
|
||||
return "/web/pay/PayEstimate";
|
||||
}
|
||||
|
||||
/**
|
||||
* 결제하기
|
||||
* @param searchVO
|
||||
* @param model
|
||||
* @return "/web/pay/PayView.do"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value= {"/web/member/pay/PayView_OLD.do"})
|
||||
public String PayView(@ModelAttribute("mjonPayVO") MjonPayVO mjonPayVO,
|
||||
HttpServletRequest request, RedirectAttributes redirectAttributes,
|
||||
ModelMap model) throws Exception{
|
||||
|
||||
String pattern = (String) request.getAttribute(
|
||||
HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE) ;
|
||||
|
||||
//로그인 정보 획득
|
||||
// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
||||
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
||||
|
||||
if(loginVO == null) {
|
||||
//redirectAttributes.addFlashAttribute("message", "문자온 서비스는 로그인 후 이용 가능합니다.");
|
||||
return "redirect:/web/user/login/login.do";
|
||||
}
|
||||
|
||||
MberManageVO mberManageVO = mberManageService.selectMber(loginVO.getId());
|
||||
model.addAttribute("mberManageVO", mberManageVO);
|
||||
|
||||
MjonCandidateVO mjonCandidateVO = new MjonCandidateVO();
|
||||
if(userId != "") {
|
||||
mjonCandidateVO = mjonCandidateService.selectCandidateDataInfo(userId);
|
||||
model.addAttribute("mjonCandidateVO",mjonCandidateVO);
|
||||
}
|
||||
|
||||
mjonPayVO.setReturnURL(request.getRequestURL().toString().split("pay")[0] + "nicepay/payResultAjax.do") ;
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(mjonPayVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(mjonPayVO.getPageUnit());
|
||||
paginationInfo.setPageSize(mjonPayVO.getPageSize());
|
||||
|
||||
mjonPayVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
mjonPayVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
mjonPayVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
if("".equals(mjonPayVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
||||
mjonPayVO.setSearchSortCnd("moid");
|
||||
mjonPayVO.setSearchSortOrd("desc");
|
||||
}
|
||||
mjonPayVO.setUserId(loginVO.getId());
|
||||
|
||||
/*List<MjonPayVO> resultList = mjonPayService.selectPayList(mjonPayVO);*/
|
||||
|
||||
/*model.addAttribute("resultList", resultList);
|
||||
paginationInfo.setTotalRecordCount(resultList.size() > 0 ? ((MjonPayVO)resultList.get(0)).getTotCnt() : 0);*/
|
||||
/*model.addAttribute("paginationInfo", paginationInfo);*/
|
||||
|
||||
//대상 리스트 가져오기
|
||||
VacsVactVO vacsVactVO = new VacsVactVO();
|
||||
vacsVactVO.setMberId(loginVO.getId());
|
||||
//List<?> bankList = vacsVactService.selectBankAcctList(tempVO); //할당 가능한 계좌 수량 리스트 받아오기
|
||||
List<?> bankList = vacsVactService.selectBankAcctAllList(vacsVactVO); //할당 가능한 계좌 수량 리스트 받아오기
|
||||
List<?> myBankList = vacsVactService.selectMyBankAcctList(vacsVactVO); //내가 할당받은 전용계좌 리스트 받아오기
|
||||
|
||||
MjonVaMsgLogVO vaMsgLogVO = new MjonVaMsgLogVO();
|
||||
vaMsgLogVO.setMberId(loginVO.getId());
|
||||
|
||||
Date now = new Date();
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
|
||||
String date = sdf.format(now);
|
||||
vaMsgLogVO.setSendDate(date);
|
||||
|
||||
MjonVaMsgLogVO resultMsgInfo = mjonPayService.selectMyAcctSendCnt(vaMsgLogVO);
|
||||
|
||||
//대상 리스트, 페이징 정보 전달
|
||||
model.addAttribute("resultList", bankList);
|
||||
model.addAttribute("resultMyList", myBankList);
|
||||
model.addAttribute("resultMsgInfo", resultMsgInfo);
|
||||
model.addAttribute("mjonPayVO", mjonPayVO);
|
||||
|
||||
// 탭이동
|
||||
String tabType = "1";
|
||||
if(request.getParameter("tabType") != null) {
|
||||
tabType = request.getParameter("tabType");
|
||||
}
|
||||
model.addAttribute("tabType", tabType);
|
||||
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
List<MberGrdVO> mberGrdSettingList = mberGrdService.selectMberGrdSettingList(mberGrdVO);
|
||||
model.addAttribute("mberGrdSettingList", mberGrdSettingList);
|
||||
|
||||
return "/web/pay/PayView_OLD";
|
||||
}
|
||||
|
||||
/**
|
||||
* 요금결제내역
|
||||
@ -1922,18 +1820,6 @@ public class MjonPayController {
|
||||
|
||||
model.addAttribute("mjonCandidateVO", mjonCandidateVO);
|
||||
|
||||
/*
|
||||
if(pattern.equals("/web/member/pay/PayListAllAjax.do")) {
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(userId);
|
||||
mberGrdVO.setAmt("0");
|
||||
mberGrdVO.setMoid("");
|
||||
mberGrdService.mberGrdSaveByUserNoHist(mberGrdVO);
|
||||
// End
|
||||
}
|
||||
*/
|
||||
|
||||
//후불제 회원 여부 조회
|
||||
UserManageVO userManageVO = new UserManageVO();
|
||||
|
||||
@ -36,8 +36,6 @@ import itn.let.mjo.pay.service.MjonPayVO;
|
||||
import itn.let.mjo.pay.service.MjonVaMsgLogVO;
|
||||
import itn.let.mjo.payva.service.VacsVactService;
|
||||
import itn.let.mjo.payva.service.VacsVactVO;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.grd.service.MberGrdVO;
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.uss.umt.service.EgovMberManageService;
|
||||
@ -79,8 +77,8 @@ public class MjonPayV2Controller {
|
||||
@Resource(name="MjonCommon")
|
||||
private MjonCommon mjonCommon;
|
||||
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
|
||||
|
||||
/** KG 모빌리언스 설정 */
|
||||
// CARD
|
||||
@ -186,10 +184,6 @@ public class MjonPayV2Controller {
|
||||
}
|
||||
model.addAttribute("tabType", tabType);
|
||||
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
List<MberGrdVO> mberGrdSettingList = mberGrdService.selectMberGrdSettingList(mberGrdVO);
|
||||
model.addAttribute("mberGrdSettingList", mberGrdSettingList);
|
||||
|
||||
return "/web/pay/PayView";
|
||||
}
|
||||
|
||||
|
||||
@ -48,8 +48,6 @@ import itn.let.mjo.pay.service.RefundService;
|
||||
import itn.let.mjo.pay.service.RefundVO;
|
||||
import itn.let.mjo.tax.service.TaxService;
|
||||
import itn.let.mjo.tax.service.TaxVO;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.grd.service.MberGrdVO;
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.uat.uia.service.EgovLoginService;
|
||||
@ -109,8 +107,8 @@ public class RefundController {
|
||||
@Resource(name = "MjonEventService")
|
||||
private MjonEventService mjonEventService;
|
||||
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 환불요청 목록 페이지
|
||||
@ -566,15 +564,6 @@ public class RefundController {
|
||||
mjonPayVO.setMemo("환불처리 " + refundVO.getRefundPoint() + "포인트");
|
||||
mjonPayService.insertPoint(mjonPayVO);
|
||||
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(refundVO.getMberId());
|
||||
mberGrdVO.setAmt("0");
|
||||
mberGrdVO.setMoid("");
|
||||
mberGrdService.mberGrdSaveByUserNoHist(mberGrdVO);
|
||||
// End
|
||||
|
||||
//modelAndView.addObject("status", "success");
|
||||
s_status = "success";
|
||||
|
||||
@ -754,15 +743,6 @@ public class RefundController {
|
||||
}
|
||||
}
|
||||
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(refundVO.getMberId());
|
||||
mberGrdVO.setAmt("0");
|
||||
mberGrdVO.setMoid("");
|
||||
mberGrdService.mberGrdSaveByUserNoHist(mberGrdVO);
|
||||
// End
|
||||
|
||||
}else if(afterStatus.equals("4")) {// 처리불가로 변경 시
|
||||
|
||||
if(beforeStatus.equals("3")) {
|
||||
|
||||
@ -8,11 +8,6 @@ import java.math.RoundingMode;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.ResultSetMetaData;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
@ -105,7 +100,6 @@ import itn.let.mjo.spammsg.web.ComGetSpamStringParser;
|
||||
import itn.let.mjo.symbol.service.MjonSymbolService;
|
||||
import itn.let.schdlr.service.SchdlrManageService;
|
||||
import itn.let.sym.ccm.cde.service.EgovCcmCmmnDetailCodeManageService;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.sym.site.service.TermsVO;
|
||||
@ -233,10 +227,6 @@ public class TestController {
|
||||
private EgovFileMngService fileMngService;
|
||||
*/
|
||||
|
||||
/** 등급제 관리 서비스 */
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
/** 후불제 자동 충전 서비스 */
|
||||
@Resource (name = "userManageService")
|
||||
private EgovUserManageService egovUserManageService;
|
||||
@ -1383,8 +1373,6 @@ public class TestController {
|
||||
//1.시스템 기본 단가 정보 불러오기
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
|
||||
@ -31,9 +31,6 @@ public interface SchdlrManageService {
|
||||
// 환경설정 상세 조회
|
||||
public SchdlrVO selectSchConfigDetail(SchdlrVO schdlrVO) throws Exception;
|
||||
|
||||
// 일정 알림 메일 전송
|
||||
public void schMailSend(String bgnDateTime) throws Exception;
|
||||
|
||||
// 메인화면 > 전체일정
|
||||
public List<SchdlrVO> selectMainSchList(SchdlrVO schdlrVO) throws Exception;
|
||||
|
||||
|
||||
@ -208,22 +208,6 @@ public class SchdlrManageServiceImpl extends EgovAbstractServiceImpl implements
|
||||
return result;
|
||||
}
|
||||
|
||||
// 일정 알림 메일 전송
|
||||
public void schMailSend(String bgnDateTime) throws Exception {
|
||||
List<SchdlrVO> mailList = schdlrManageDAO.selectMailSendList(bgnDateTime);
|
||||
|
||||
for (SchdlrVO vo : mailList) {
|
||||
if (("").equals(vo.getEmailAdres()))
|
||||
continue;
|
||||
|
||||
boolean result = sendMail(vo);
|
||||
LOGGER.debug("send succ update:", result);
|
||||
|
||||
if (result)
|
||||
schdlrManageDAO.updateMailSend(vo);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 일정 알림 메일 전송
|
||||
*
|
||||
|
||||
@ -1,76 +0,0 @@
|
||||
package itn.let.schdlr.service.web;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import itn.let.schdlr.service.SchdlrManageService;
|
||||
|
||||
/**
|
||||
* 시스템 로그 요약을 위한 스케쥴링 클래스
|
||||
* @author 공통서비스개발팀 이삼섭
|
||||
* @since 2009.03.11
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.11 이삼섭 최초 생성
|
||||
* 2011.07.01 이기하 패키지 분리(sym.log -> sym.log.lgm)
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Service("egovSchMailSendScheduling")
|
||||
public class SchMailSendScheduling extends EgovAbstractServiceImpl {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(SchMailSendScheduling.class);
|
||||
|
||||
@Resource(name = "SchdlrManageService")
|
||||
private SchdlrManageService schdlrManageService;
|
||||
|
||||
/**
|
||||
* 스케줄러 일정 알림 메일을 송신한다.
|
||||
*
|
||||
* @param
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public void schMailSend() throws Exception {
|
||||
// LOGGER.debug("@@ yu3145 egov 스케줄링 테스트1");
|
||||
|
||||
Calendar now = Calendar.getInstance();
|
||||
int year = now.get(Calendar.YEAR);
|
||||
int month = now.get(Calendar.MONTH) + 1; // Note: zero based!
|
||||
int day = now.get(Calendar.DAY_OF_MONTH);
|
||||
int hour = now.get(Calendar.HOUR_OF_DAY);
|
||||
int minute = now.get(Calendar.MINUTE);
|
||||
now.add(Calendar.MINUTE, 1);
|
||||
int minute2 = now.get(Calendar.MINUTE);
|
||||
// int second = now.get(Calendar.SECOND);
|
||||
// int millis = now.get(Calendar.MILLISECOND);
|
||||
|
||||
String strMonth = "" + (month < 10 ? "0" + month : month);
|
||||
String strDay = "" + (day < 10 ? "0" + day : day);
|
||||
String strHour = "" + (hour < 10 ? "0" + hour : hour);
|
||||
String strMinute = "" + (minute < 10 ? "0" + minute : minute);
|
||||
String strMinute2 = "" + (minute2 < 10 ? "0" + minute2 : minute2);
|
||||
|
||||
String bgnDateTime = year + "-" + strMonth + "-" + strDay + " " + strHour + ":" + strMinute;
|
||||
String endDateTime = year + "-" + strMonth + "-" + strDay + " " + strHour + ":" + strMinute2;
|
||||
//LOGGER.debug("@@ 시작:" + bgnDateTime + " 종료:" + endDateTime);
|
||||
|
||||
// bgnDateTime = "2019-11-04 22:19";
|
||||
|
||||
schdlrManageService.schMailSend(bgnDateTime);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,83 +0,0 @@
|
||||
package itn.let.sym.ccm.zip.service;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 우편번호에 관한 서비스 인터페이스 클래스를 정의한다
|
||||
* @author 공통서비스 개발팀 이중호
|
||||
* @since 2009.04.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.04.01 이중호 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public interface EgovCcmZipManageService {
|
||||
|
||||
/**
|
||||
* 우편번호를 삭제한다.
|
||||
* @param zip
|
||||
* @throws Exception
|
||||
*/
|
||||
void deleteZip(Zip zip) throws Exception;
|
||||
|
||||
/**
|
||||
* 우편번호 전체를 삭제한다.
|
||||
* @throws Exception
|
||||
*/
|
||||
void deleteAllZip() throws Exception;
|
||||
|
||||
/**
|
||||
* 우편번호를 등록한다.
|
||||
* @param zip
|
||||
* @throws Exception
|
||||
*/
|
||||
void insertZip(Zip zip) throws Exception;
|
||||
|
||||
/**
|
||||
* 우편번호 엑셀파일을 등록한다.
|
||||
* @param zip
|
||||
* @throws Exception
|
||||
*/
|
||||
void insertExcelZip(InputStream file) throws Exception;
|
||||
|
||||
/**
|
||||
* 우편번호 상세항목을 조회한다.
|
||||
* @param zip
|
||||
* @return Zip(우편번호)
|
||||
* @throws Exception
|
||||
*/
|
||||
Zip selectZipDetail(Zip zip) throws Exception;
|
||||
|
||||
/**
|
||||
* 우편번호 목록을 조회한다.
|
||||
* @param searchVO
|
||||
* @return List(우편번호 목록)
|
||||
* @throws Exception
|
||||
*/
|
||||
List<?> selectZipList(ZipVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 우편번호 총 갯수를 조회한다.
|
||||
* @param searchVO
|
||||
* @return int(우편번호 총 갯수)
|
||||
*/
|
||||
int selectZipListTotCnt(ZipVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 우편번호를 수정한다.
|
||||
* @param zip
|
||||
* @throws Exception
|
||||
*/
|
||||
void updateZip(Zip zip) throws Exception;
|
||||
|
||||
}
|
||||
@ -1,226 +0,0 @@
|
||||
package itn.let.sym.ccm.zip.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
|
||||
/**
|
||||
* 우편번호 모델 클래스
|
||||
* @author 공통서비스 개발팀 이중호
|
||||
* @since 2009.04.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.04.01 이중호 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class Zip implements Serializable {
|
||||
|
||||
/**
|
||||
* serialVersionUID
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/*
|
||||
* 우편번호
|
||||
*/
|
||||
private String zip = "";
|
||||
|
||||
/*
|
||||
* 일련번호
|
||||
*/
|
||||
private int sn = 0;
|
||||
|
||||
/*
|
||||
* 시도명
|
||||
*/
|
||||
private String ctprvnNm = "";
|
||||
|
||||
/*
|
||||
* 시군구명
|
||||
*/
|
||||
private String signguNm = "";
|
||||
|
||||
/*
|
||||
* 읍면동명
|
||||
*/
|
||||
private String emdNm = "";
|
||||
|
||||
/*
|
||||
* 리건물명
|
||||
*/
|
||||
private String liBuldNm = "";
|
||||
|
||||
/*
|
||||
* 번지동호
|
||||
*/
|
||||
private String lnbrDongHo = "";
|
||||
|
||||
/*
|
||||
* 최초등록자ID
|
||||
*/
|
||||
private String frstRegisterId = "";
|
||||
|
||||
/*
|
||||
* 최종수정자ID
|
||||
*/
|
||||
private String lastUpdusrId = "";
|
||||
|
||||
/**
|
||||
* zip attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getZip() {
|
||||
return zip;
|
||||
}
|
||||
|
||||
/**
|
||||
* zip attribute 값을 설정한다.
|
||||
* @param zip String
|
||||
*/
|
||||
public void setZip(String zip) {
|
||||
this.zip = zip;
|
||||
}
|
||||
|
||||
/**
|
||||
* sn attribute 를 리턴한다.
|
||||
* @return int
|
||||
*/
|
||||
public int getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
/**
|
||||
* sn attribute 값을 설정한다.
|
||||
* @param sn int
|
||||
*/
|
||||
public void setSn(int sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
/**
|
||||
* ctprvnNm attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getCtprvnNm() {
|
||||
return ctprvnNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* ctprvnNm attribute 값을 설정한다.
|
||||
* @param ctprvnNm String
|
||||
*/
|
||||
public void setCtprvnNm(String ctprvnNm) {
|
||||
this.ctprvnNm = ctprvnNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* signguNm attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getSignguNm() {
|
||||
return signguNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* signguNm attribute 값을 설정한다.
|
||||
* @param signguNm String
|
||||
*/
|
||||
public void setSignguNm(String signguNm) {
|
||||
this.signguNm = signguNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* emdNm attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getEmdNm() {
|
||||
return emdNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* emdNm attribute 값을 설정한다.
|
||||
* @param emdNm String
|
||||
*/
|
||||
public void setEmdNm(String emdNm) {
|
||||
this.emdNm = emdNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* liBuldNm attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getLiBuldNm() {
|
||||
return liBuldNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* liBuldNm attribute 값을 설정한다.
|
||||
* @param liBuldNm String
|
||||
*/
|
||||
public void setLiBuldNm(String liBuldNm) {
|
||||
this.liBuldNm = liBuldNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lnbrDongHo attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getLnbrDongHo() {
|
||||
return lnbrDongHo;
|
||||
}
|
||||
|
||||
/**
|
||||
* lnbrDongHo attribute 값을 설정한다.
|
||||
* @param lnbrDongHo String
|
||||
*/
|
||||
public void setLnbrDongHo(String lnbrDongHo) {
|
||||
this.lnbrDongHo = lnbrDongHo;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getFrstRegisterId() {
|
||||
return frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 값을 설정한다.
|
||||
* @param frstRegisterId String
|
||||
*/
|
||||
public void setFrstRegisterId(String frstRegisterId) {
|
||||
this.frstRegisterId = frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getLastUpdusrId() {
|
||||
return lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 값을 설정한다.
|
||||
* @param lastUpdusrId String
|
||||
*/
|
||||
public void setLastUpdusrId(String lastUpdusrId) {
|
||||
this.lastUpdusrId = lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* toString 메소드를 대치한다.
|
||||
*/
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
@ -1,202 +0,0 @@
|
||||
package itn.let.sym.ccm.zip.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* 우편번호 VO 클래스
|
||||
* @author 공통서비스 개발팀 이중호
|
||||
* @since 2009.04.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.04.01 이중호 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class ZipVO extends Zip implements Serializable {
|
||||
|
||||
/**
|
||||
* serialVersionUID
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 검색조건 */
|
||||
private String searchCondition = "";
|
||||
|
||||
/** 검색Keyword */
|
||||
private String searchKeyword = "";
|
||||
|
||||
/** 검색사용여부 */
|
||||
private String searchUseYn = "";
|
||||
|
||||
/** 현재페이지 */
|
||||
private int pageIndex = 1;
|
||||
|
||||
/** 페이지갯수 */
|
||||
private int pageUnit = 10;
|
||||
|
||||
/** 페이지사이즈 */
|
||||
private int pageSize = 10;
|
||||
|
||||
/** firstIndex */
|
||||
private int firstIndex = 1;
|
||||
|
||||
/** lastIndex */
|
||||
private int lastIndex = 1;
|
||||
|
||||
/** recordCountPerPage */
|
||||
private int recordCountPerPage = 10;
|
||||
|
||||
/**
|
||||
* searchCondition attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getSearchCondition() {
|
||||
return searchCondition;
|
||||
}
|
||||
|
||||
/**
|
||||
* searchCondition attribute 값을 설정한다.
|
||||
* @param searchCondition String
|
||||
*/
|
||||
public void setSearchCondition(String searchCondition) {
|
||||
this.searchCondition = searchCondition;
|
||||
}
|
||||
|
||||
/**
|
||||
* searchKeyword attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getSearchKeyword() {
|
||||
return searchKeyword;
|
||||
}
|
||||
|
||||
/**
|
||||
* searchKeyword attribute 값을 설정한다.
|
||||
* @param searchKeyword String
|
||||
*/
|
||||
public void setSearchKeyword(String searchKeyword) {
|
||||
this.searchKeyword = searchKeyword;
|
||||
}
|
||||
|
||||
/**
|
||||
* searchUseYn attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getSearchUseYn() {
|
||||
return searchUseYn;
|
||||
}
|
||||
|
||||
/**
|
||||
* searchUseYn attribute 값을 설정한다.
|
||||
* @param searchUseYn String
|
||||
*/
|
||||
public void setSearchUseYn(String searchUseYn) {
|
||||
this.searchUseYn = searchUseYn;
|
||||
}
|
||||
|
||||
/**
|
||||
* pageIndex attribute 를 리턴한다.
|
||||
* @return int
|
||||
*/
|
||||
public int getPageIndex() {
|
||||
return pageIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* pageIndex attribute 값을 설정한다.
|
||||
* @param pageIndex int
|
||||
*/
|
||||
public void setPageIndex(int pageIndex) {
|
||||
this.pageIndex = pageIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* pageUnit attribute 를 리턴한다.
|
||||
* @return int
|
||||
*/
|
||||
public int getPageUnit() {
|
||||
return pageUnit;
|
||||
}
|
||||
|
||||
/**
|
||||
* pageUnit attribute 값을 설정한다.
|
||||
* @param pageUnit int
|
||||
*/
|
||||
public void setPageUnit(int pageUnit) {
|
||||
this.pageUnit = pageUnit;
|
||||
}
|
||||
|
||||
/**
|
||||
* pageSize attribute 를 리턴한다.
|
||||
* @return int
|
||||
*/
|
||||
public int getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* pageSize attribute 값을 설정한다.
|
||||
* @param pageSize int
|
||||
*/
|
||||
public void setPageSize(int pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* firstIndex attribute 를 리턴한다.
|
||||
* @return int
|
||||
*/
|
||||
public int getFirstIndex() {
|
||||
return firstIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* firstIndex attribute 값을 설정한다.
|
||||
* @param firstIndex int
|
||||
*/
|
||||
public void setFirstIndex(int firstIndex) {
|
||||
this.firstIndex = firstIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastIndex attribute 를 리턴한다.
|
||||
* @return int
|
||||
*/
|
||||
public int getLastIndex() {
|
||||
return lastIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastIndex attribute 값을 설정한다.
|
||||
* @param lastIndex int
|
||||
*/
|
||||
public void setLastIndex(int lastIndex) {
|
||||
this.lastIndex = lastIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* recordCountPerPage attribute 를 리턴한다.
|
||||
* @return int
|
||||
*/
|
||||
public int getRecordCountPerPage() {
|
||||
return recordCountPerPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* recordCountPerPage attribute 값을 설정한다.
|
||||
* @param recordCountPerPage int
|
||||
*/
|
||||
public void setRecordCountPerPage(int recordCountPerPage) {
|
||||
this.recordCountPerPage = recordCountPerPage;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1,58 +0,0 @@
|
||||
package itn.let.sym.ccm.zip.service.impl;
|
||||
|
||||
import egovframework.rte.fdl.excel.EgovExcelMapping;
|
||||
import egovframework.rte.fdl.excel.util.EgovExcelUtil;
|
||||
import itn.let.sym.ccm.zip.service.Zip;
|
||||
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
|
||||
/**
|
||||
*
|
||||
* Excel 우편번호 매핑 클래스
|
||||
* @author 공통서비스 개발팀 이중호
|
||||
* @since 2009.04.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.04.01 이중호 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class EgovCcmExcelZipMapping extends EgovExcelMapping {
|
||||
|
||||
/**
|
||||
* 우편번호 엑셀파일 맵핑
|
||||
*/
|
||||
@Override
|
||||
public Object mappingColumn(Row row) {
|
||||
Cell cell0 = row.getCell((short) 0);
|
||||
Cell cell1 = row.getCell((short) 1);
|
||||
Cell cell2 = row.getCell((short) 2);
|
||||
Cell cell3 = row.getCell((short) 3);
|
||||
Cell cell4 = row.getCell((short) 4);
|
||||
Cell cell5 = row.getCell((short) 5);
|
||||
Cell cell6 = row.getCell((short) 6);
|
||||
Cell cell7 = row.getCell((short) 7);
|
||||
|
||||
Zip vo = new Zip();
|
||||
|
||||
vo.setZip (EgovExcelUtil.getValue(cell0));
|
||||
vo.setSn (Integer.parseInt(EgovExcelUtil.getValue(cell1)));
|
||||
vo.setCtprvnNm (EgovExcelUtil.getValue(cell2));
|
||||
vo.setSignguNm (EgovExcelUtil.getValue(cell3));
|
||||
vo.setEmdNm (EgovExcelUtil.getValue(cell4));
|
||||
vo.setFrstRegisterId (EgovExcelUtil.getValue(cell7));
|
||||
|
||||
if (cell5 != null) {vo.setLiBuldNm (EgovExcelUtil.getValue(cell5));}
|
||||
if (cell6 != null) {vo.setLnbrDongHo (EgovExcelUtil.getValue(cell6));}
|
||||
|
||||
|
||||
return vo;
|
||||
}
|
||||
}
|
||||
@ -1,116 +0,0 @@
|
||||
package itn.let.sym.ccm.zip.service.impl;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.excel.EgovExcelService;
|
||||
import itn.let.sym.ccm.zip.service.EgovCcmZipManageService;
|
||||
import itn.let.sym.ccm.zip.service.Zip;
|
||||
import itn.let.sym.ccm.zip.service.ZipVO;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
//import egovframework.rte.fdl.excel.EgovExcelService;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* 우편번호에 대한 서비스 구현클래스를 정의한다
|
||||
* @author 공통서비스 개발팀 이중호.
|
||||
* @since 2009.04.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.04.01 이중호 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Service("ZipManageService")
|
||||
public class EgovCcmZipManageServiceImpl extends EgovAbstractServiceImpl implements EgovCcmZipManageService {
|
||||
|
||||
@Resource(name="ZipManageDAO")
|
||||
private ZipManageDAO zipManageDAO;
|
||||
|
||||
@Resource(name = "excelZipService")
|
||||
private EgovExcelService excelZipService;
|
||||
|
||||
/**
|
||||
* 우편번호를 삭제한다.
|
||||
*/
|
||||
@Override
|
||||
public void deleteZip(Zip zip) throws Exception {
|
||||
zipManageDAO.deleteZip(zip);
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 전체를 삭제한다.
|
||||
*/
|
||||
@Override
|
||||
public void deleteAllZip() throws Exception {
|
||||
zipManageDAO.deleteAllZip();
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호를 등록한다.
|
||||
*/
|
||||
@Override
|
||||
public void insertZip(Zip zip) throws Exception {
|
||||
zipManageDAO.insertZip(zip);
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 엑셀파일을 등록한다.
|
||||
* @param zip
|
||||
* @throws Exception
|
||||
*/
|
||||
|
||||
@Override
|
||||
public void insertExcelZip(InputStream file) throws Exception {
|
||||
zipManageDAO.insertExcelZip();
|
||||
excelZipService.uploadExcel("ZipManageDAO.insertExcelZip", file, 2, 5000);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 우편번호 상세항목을 조회한다.
|
||||
*/
|
||||
@Override
|
||||
public Zip selectZipDetail(Zip zip) throws Exception {
|
||||
Zip ret = zipManageDAO.selectZipDetail(zip);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 목록을 조회한다.
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectZipList(ZipVO searchVO) throws Exception {
|
||||
return zipManageDAO.selectZipList(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 총 갯수를 조회한다.
|
||||
*/
|
||||
@Override
|
||||
public int selectZipListTotCnt(ZipVO searchVO) throws Exception {
|
||||
return zipManageDAO.selectZipListTotCnt(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호를 수정한다.
|
||||
*/
|
||||
@Override
|
||||
public void updateZip(Zip zip) throws Exception {
|
||||
zipManageDAO.updateZip(zip);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,106 +0,0 @@
|
||||
package itn.let.sym.ccm.zip.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
|
||||
import itn.let.sym.ccm.zip.service.Zip;
|
||||
import itn.let.sym.ccm.zip.service.ZipVO;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
*
|
||||
* 우편번호에 대한 데이터 접근 클래스를 정의한다
|
||||
* @author 공통서비스 개발팀 이중호
|
||||
* @since 2009.04.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.04.01 이중호 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Repository("ZipManageDAO")
|
||||
public class ZipManageDAO extends EgovAbstractDAO {
|
||||
|
||||
/**
|
||||
* 우편번호를 삭제한다.
|
||||
* @param zip
|
||||
* @throws Exception
|
||||
*/
|
||||
public void deleteZip(Zip zip) throws Exception {
|
||||
delete("ZipManageDAO.deleteZip", zip);
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 전체를 삭제한다.
|
||||
* @throws Exception
|
||||
*/
|
||||
public void deleteAllZip() throws Exception {
|
||||
delete("ZipManageDAO.deleteAllZip", new Object());
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호를 등록한다.
|
||||
* @param zip
|
||||
* @throws Exception
|
||||
*/
|
||||
public void insertZip(Zip zip) throws Exception {
|
||||
insert("ZipManageDAO.insertZip", zip);
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 엑셀파일을 등록한다.
|
||||
* @param zip
|
||||
* @throws Exception
|
||||
*/
|
||||
public void insertExcelZip() throws Exception {
|
||||
delete("ZipManageDAO.deleteAllZip", new Object());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 우편번호 상세항목을 조회한다.
|
||||
* @param zip
|
||||
* @return Zip(우편번호)
|
||||
*/
|
||||
public Zip selectZipDetail(Zip zip) throws Exception {
|
||||
return (Zip) select("ZipManageDAO.selectZipDetail", zip);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 우편번호 목록을 조회한다.
|
||||
* @param searchVO
|
||||
* @return List(우편번호 목록)
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectZipList(ZipVO searchVO) throws Exception {
|
||||
return list("ZipManageDAO.selectZipList", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 총 갯수를 조회한다.
|
||||
* @param searchVO
|
||||
* @return int(우편번호 총 갯수)
|
||||
*/
|
||||
public int selectZipListTotCnt(ZipVO searchVO) throws Exception {
|
||||
return (Integer)select("ZipManageDAO.selectZipListTotCnt", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호를 수정한다.
|
||||
* @param zip
|
||||
* @throws Exception
|
||||
*/
|
||||
public void updateZip(Zip zip) throws Exception {
|
||||
update("ZipManageDAO.updateZip", zip);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,290 +0,0 @@
|
||||
package itn.let.sym.ccm.zip.web;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.let.sym.ccm.zip.service.EgovCcmZipManageService;
|
||||
import itn.let.sym.ccm.zip.service.Zip;
|
||||
import itn.let.sym.ccm.zip.service.ZipVO;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springmodules.validation.commons.DefaultBeanValidator;
|
||||
|
||||
/**
|
||||
*
|
||||
* 우편번호에 관한 요청을 받아 서비스 클래스로 요청을 전달하고 서비스클래스에서 처리한 결과를 웹 화면으로 전달을 위한 Controller를 정의한다
|
||||
* @author 공통서비스 개발팀 이중호
|
||||
* @since 2009.04.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.04.01 이중호 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Controller
|
||||
public class EgovCcmZipManageController {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(EgovCcmZipManageController.class);
|
||||
|
||||
@Resource(name = "ZipManageService")
|
||||
private EgovCcmZipManageService zipManageService;
|
||||
|
||||
/** EgovPropertyService */
|
||||
@Resource(name = "propertiesService")
|
||||
protected EgovPropertyService propertiesService;
|
||||
|
||||
@Autowired
|
||||
private DefaultBeanValidator beanValidator;
|
||||
|
||||
/**
|
||||
* 우편번호 찾기 팝업 메인창을 호출한다.
|
||||
* @param model
|
||||
* @return "/cmm/sym/zip/EgovCcmZipSearchPopup"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/sym/cmm/EgovCcmZipSearchPopup.do")
|
||||
public String callNormalCalPopup(ModelMap model) throws Exception {
|
||||
return "/cmm/sym/zip/EgovCcmZipSearchPopup";
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 찾기 목록을 조회한다.
|
||||
* @param searchVO
|
||||
* @param model
|
||||
* @return "/cmm/sym/zip/EgovCcmZipSearchList"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/sym/cmm/EgovCcmZipSearchList.do")
|
||||
public String selectZipSearchList(@ModelAttribute("searchVO") ZipVO searchVO, ModelMap model) throws Exception {
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
model.addAttribute("resultList", zipManageService.selectZipList(searchVO));
|
||||
|
||||
int totCnt = zipManageService.selectZipListTotCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
return "/cmm/sym/zip/EgovCcmZipSearchList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호를 삭제한다.
|
||||
* @param loginVO
|
||||
* @param zip
|
||||
* @param model
|
||||
* @return "forward:/sym/ccm/zip/EgovCcmZipList.do"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/sym/ccm/zip/EgovCcmZipRemove.do")
|
||||
public String deleteZip(@ModelAttribute("loginVO") LoginVO loginVO, Zip zip, ModelMap model) throws Exception {
|
||||
zipManageService.deleteZip(zip);
|
||||
return "forward:/sym/ccm/zip/EgovCcmZipList.do";
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호를 등록한다.
|
||||
* @param loginVO
|
||||
* @param zip
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/cmm/sym/zip/EgovCcmZipRegist"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/sym/ccm/zip/EgovCcmZipRegist.do")
|
||||
public String insertZip(@ModelAttribute("loginVO") LoginVO loginVO, @ModelAttribute("zip") Zip zip, BindingResult bindingResult, ModelMap model) throws Exception {
|
||||
if (zip.getZip() == null || zip.getZip().equals("")) {
|
||||
|
||||
return "/cmm/sym/zip/EgovCcmZipRegist";
|
||||
}
|
||||
|
||||
beanValidator.validate(zip, bindingResult);
|
||||
if (bindingResult.hasErrors()) {
|
||||
return "/cmm/sym/zip/EgovCcmZipRegist";
|
||||
}
|
||||
|
||||
zip.setFrstRegisterId(loginVO.getUniqId());
|
||||
zipManageService.insertZip(zip);
|
||||
return "forward:/sym/ccm/zip/EgovCcmZipList.do";
|
||||
}
|
||||
|
||||
/**
|
||||
* 엑셀파일을 업로드하여 우편번호를 등록한다.
|
||||
* @param loginVO
|
||||
* @param request
|
||||
* @param commandMap
|
||||
* @param model
|
||||
* @return "/cmm/sym/zip/EgovCcmExcelZipRegist"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/sym/ccm/zip/EgovCcmExcelZipRegist.do")
|
||||
public String insertExcelZip(@ModelAttribute("loginVO") LoginVO loginVO, final HttpServletRequest request, @RequestParam Map<String, Object> commandMap, Model model)
|
||||
throws Exception {
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
if (sCmd.equals("")) {
|
||||
return "/cmm/sym/zip/EgovCcmExcelZipRegist";
|
||||
}
|
||||
|
||||
final MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest) request;
|
||||
final Map<String, MultipartFile> files = multiRequest.getFileMap();
|
||||
|
||||
Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator();
|
||||
MultipartFile file = null;
|
||||
InputStream fis = null;
|
||||
while (itr.hasNext()) {
|
||||
Entry<String, MultipartFile> entry = itr.next();
|
||||
try {
|
||||
|
||||
file = entry.getValue();
|
||||
fis = file.getInputStream();
|
||||
if (!"".equals(file.getOriginalFilename())) {
|
||||
// 2011.10.07 업로드 파일에 대한 확장자를 체크
|
||||
if (file.getOriginalFilename().toLowerCase().endsWith(".xls") || file.getOriginalFilename().toLowerCase().endsWith(".xlsx")) {
|
||||
|
||||
//zipManageService.deleteAllZip();
|
||||
//excelZipService.uploadExcel("ZipManageDAO.insertExcelZip", file.getInputStream(), 2);
|
||||
zipManageService.insertExcelZip(fis);
|
||||
|
||||
} else {
|
||||
//log.info("xls, xlsx 파일 타입만 등록이 가능합니다.");
|
||||
return "egovframework/com/sym/ccm/zip/EgovCcmExcelZipRegist";
|
||||
}
|
||||
// *********** 끝 ***********
|
||||
}
|
||||
|
||||
} finally {
|
||||
try {
|
||||
if (fis != null) {
|
||||
fis.close();
|
||||
}
|
||||
} catch (IOException ee) {
|
||||
LOGGER.debug("{}", ee);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return "forward:/sym/ccm/zip/EgovCcmZipList.do";
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 상세항목을 조회한다.
|
||||
* @param loginVO
|
||||
* @param zip
|
||||
* @param model
|
||||
* @return "/cmm/sym/zip/EgovCcmZipDetail"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/sym/ccm/zip/EgovCcmZipDetail.do")
|
||||
public String selectZipDetail(@ModelAttribute("loginVO") LoginVO loginVO, Zip zip, ModelMap model) throws Exception {
|
||||
Zip vo = zipManageService.selectZipDetail(zip);
|
||||
model.addAttribute("result", vo);
|
||||
|
||||
return "/cmm/sym/zip/EgovCcmZipDetail";
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 목록을 조회한다.
|
||||
* @param loginVO
|
||||
* @param searchVO
|
||||
* @param model
|
||||
* @return "/cmm/sym/zip/EgovCcmZipList"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/sym/ccm/zip/EgovCcmZipList.do")
|
||||
public String selectZipList(@ModelAttribute("loginVO") LoginVO loginVO, @ModelAttribute("searchVO") ZipVO searchVO, ModelMap model) throws Exception {
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
model.addAttribute("resultList", zipManageService.selectZipList(searchVO));
|
||||
|
||||
int totCnt = zipManageService.selectZipListTotCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
return "/cmm/sym/zip/EgovCcmZipList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호를 수정한다.
|
||||
* @param loginVO
|
||||
* @param zip
|
||||
* @param bindingResult
|
||||
* @param commandMap
|
||||
* @param model
|
||||
* @return "/cmm/sym/zip/EgovCcmZipModify"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/sym/ccm/zip/EgovCcmZipModify.do")
|
||||
public String updateZip(@ModelAttribute("loginVO") LoginVO loginVO, @ModelAttribute("zip") Zip zip, BindingResult bindingResult, @RequestParam Map<String, Object> commandMap,
|
||||
ModelMap model) throws Exception {
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
if (sCmd.equals("")) {
|
||||
Zip vo = zipManageService.selectZipDetail(zip);
|
||||
model.addAttribute("zip", vo);
|
||||
|
||||
return "/cmm/sym/zip/EgovCcmZipModify";
|
||||
} else if (sCmd.equals("Modify")) {
|
||||
beanValidator.validate(zip, bindingResult);
|
||||
if (bindingResult.hasErrors()) {
|
||||
return "/cmm/sym/zip/EgovCcmZipModify";
|
||||
}
|
||||
|
||||
zip.setLastUpdusrId(loginVO.getUniqId());
|
||||
zipManageService.updateZip(zip);
|
||||
|
||||
return "forward:/sym/ccm/zip/EgovCcmZipList.do";
|
||||
} else {
|
||||
return "forward:/sym/ccm/zip/EgovCcmZipList.do";
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,133 +0,0 @@
|
||||
package itn.let.sym.grd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
|
||||
public interface MberGrdService {
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
public JoinSettingVO selectMberGrdDefaultInfo(JoinSettingVO sysJoinSetVO, String mberId) throws Exception;
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용 Last
|
||||
public JoinSettingVO selectMberGrdDefaultInfoLast(JoinSettingVO sysJoinSetVO, String mberId) throws Exception;
|
||||
|
||||
// 등급제 설정 일괄변경
|
||||
public int updateMberSetting(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원 등급제 온/오프 히스토리
|
||||
public void insertMberSettingHist(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 등급제 시행여부 상세
|
||||
public MberGrdVO selectMberSettingDetail(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
|
||||
// 등급제 설정 목록
|
||||
List<MberGrdVO> selectMberGrdSettingList(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 설정 상세
|
||||
public MberGrdVO selectMberGrdSettingDetail(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 설정 상세(White)
|
||||
public MberGrdVO selectMberGrdSettingDetailWhite(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 등급제 설정 일괄변경
|
||||
public int updateGrdSettingList(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 등급제 등급 목록
|
||||
List<MberGrdVO> selectMberGrdList(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 상세
|
||||
public MberGrdVO selectMberGrdDetail(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원 등급제 대상여부 정보(사용자화면용)
|
||||
public MberGrdVO selectMberGrdInfo(String mberId) throws Exception;
|
||||
|
||||
// 회원 등급 예외 정보
|
||||
public MberGrdVO selectMberEtcInfo(String mberId) throws Exception;
|
||||
|
||||
// 회원별 등급 누적결제액 상세
|
||||
public MberGrdVO selectMberGrdAmtDetail(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 등록
|
||||
public void insertMberGrd(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 수정
|
||||
public void updateMberGrdOk(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 등록 All => 기존대상자 제외
|
||||
public void insertMberGrdAllByExist(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 등록 By MberId
|
||||
public void insertMberGrdByMberId(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 히스토리 등록 All
|
||||
public void insertMberGrdHistAll(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 일괄변경
|
||||
public int updateMberGrdAll(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원 등급 변경(환불후) => 기존등급 상관없이 업데이트
|
||||
public int updateMberGrdAfterRefund(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 초기화 By Temp
|
||||
public int updateMberGrdWhiteByTemp(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 초기화 All
|
||||
public int updateMberGrdWhiteAll(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 문자할인, B선라인 대상자 종료
|
||||
public int updateMberGrdEndBySale(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 전체회원 TEMP_YN 업데이트
|
||||
public int updateMberGrdTempYn(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 전체회원 등급 전체종료
|
||||
public int updateMberGrdEndAll(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원 등급제 종료
|
||||
public int updateMberGrdEndByUser(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원 등급제 복원
|
||||
public int updateMberGrdRestoreByUser(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 적용
|
||||
public void mberGrdSaveByUser(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 적용 Last
|
||||
public void mberGrdSaveByUserLast(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 적용(로그인시 사용 => 히스토리 저장 제외)
|
||||
public void mberGrdSaveByUserNoHist(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 적용(로그인시 사용 => 히스토리 저장 제외) Last
|
||||
public void mberGrdSaveByUserNoHistLast(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급제 대상여부
|
||||
int selectMberGrdCnt(String mberId) throws Exception;
|
||||
|
||||
// 회원별 등급 진행여부
|
||||
int selectMberGrdPrgCnt(String mberId) throws Exception;
|
||||
|
||||
// 회원별 이벤트 진행여부
|
||||
int selectMberEventPrgCnt(String mberId) throws Exception;
|
||||
|
||||
// 회원별 등급 저장여부
|
||||
int selectMberGrdSaveCnt(String mberId) throws Exception;
|
||||
|
||||
// 회원별 등급제 기간내, 최종결제이후 환불총금액
|
||||
int selectMberGrdRefundSumAfterLastPay(String mberId) throws Exception;
|
||||
|
||||
// 회원별 등급제 기간내, 최종결제이전 환불총금액
|
||||
int selectMberGrdRefundSumBeforeLastPay(String mberId) throws Exception;
|
||||
|
||||
// 회원별 등급 히스토리 등록
|
||||
public void insertMberGrdHist(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 히스토리 목록 => 등급제 시행일이후 목록(사용자화면용)
|
||||
List<MberGrdVO> selectMberGrdHistByGrdDateList(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
// 회원별 등급 히스토리 목록
|
||||
List<MberGrdVO> selectMberGrdHistList(MberGrdVO mberGrdVO) throws Exception;
|
||||
|
||||
}
|
||||
@ -1,333 +0,0 @@
|
||||
package itn.let.sym.grd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import itn.let.uss.umt.service.UserDefaultVO;
|
||||
|
||||
public class MberGrdVO extends UserDefaultVO {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private int grdSetNo; // 등급설정번호
|
||||
private String grdSetNm; // 등급명
|
||||
private String grdSetIcon; // 등급아이콘
|
||||
private long stdAmt; // 기준결제액
|
||||
private String stdAmtComma; // 기준결제액(콤마)
|
||||
private long totAmt; // 누적결제액
|
||||
private long amtSumOrigin;
|
||||
private long refundSum;
|
||||
private float shortPrice; // 단문 단가
|
||||
private float longPrice; //장문 단가
|
||||
private float picturePrice; // 그림 단가
|
||||
private float picture2Price; // 그림 2장단가
|
||||
private float picture3Price; // 그림 3장단가
|
||||
private String regId; // 최초등록자 아이디
|
||||
private String regDate; // 최초등록 일자
|
||||
private String editId; // 수정등록자 아이디
|
||||
private String editDate; // 수정등록 일자
|
||||
private String grdSetHistId;
|
||||
|
||||
private List<String> grdSetNos;
|
||||
private List<String> stdAmts;
|
||||
private List<String> shortPrices;
|
||||
private List<String> longPrices;
|
||||
private List<String> picturePrices;
|
||||
private List<String> picture2Prices;
|
||||
private List<String> picture3Prices;
|
||||
|
||||
private String mberId;
|
||||
private String mberNm;
|
||||
private String amt;
|
||||
private String grdStartDate;
|
||||
private String grdEndDate;
|
||||
private String grdStatus;
|
||||
private String grdStatusNm;
|
||||
private int mberGrdHistNo;
|
||||
|
||||
private String grdNoti; // 회원등급제 시행 여부
|
||||
private String grdDate; // 회원등급제 시작일자
|
||||
private String grdPeriodDate; // 오늘날짜 - 누적결제 계산기간 = 계산기간 시작일자
|
||||
private String grdNewDate; // 시작일자, 계산기간 시작일자 중 최근날짜
|
||||
private String grdDatePrgYn; // 회원등급제 시작일자 진행여부(오늘보다 이전날짜이면 Y, 이후이면 N)
|
||||
private String grdPeriod; // 회원등급제 누적결제 계산기간
|
||||
private String tempYn;
|
||||
private String moid; // 결제번호
|
||||
private String isSalePrice; // 협의회원
|
||||
private String blineCode; // B선회원
|
||||
private String spamYn; // 스팸회원
|
||||
|
||||
// 검색필터
|
||||
private String searchGrdStatus;
|
||||
|
||||
public int getGrdSetNo() {
|
||||
return grdSetNo;
|
||||
}
|
||||
public void setGrdSetNo(int grdSetNo) {
|
||||
this.grdSetNo = grdSetNo;
|
||||
}
|
||||
public String getGrdSetNm() {
|
||||
return grdSetNm;
|
||||
}
|
||||
public void setGrdSetNm(String grdSetNm) {
|
||||
this.grdSetNm = grdSetNm;
|
||||
}
|
||||
public String getGrdSetIcon() {
|
||||
return grdSetIcon;
|
||||
}
|
||||
public void setGrdSetIcon(String grdSetIcon) {
|
||||
this.grdSetIcon = grdSetIcon;
|
||||
}
|
||||
public long getStdAmt() {
|
||||
return stdAmt;
|
||||
}
|
||||
public void setStdAmt(long stdAmt) {
|
||||
this.stdAmt = stdAmt;
|
||||
}
|
||||
public String getStdAmtComma() {
|
||||
return stdAmtComma;
|
||||
}
|
||||
public void setStdAmtComma(String totAmtComma) {
|
||||
this.stdAmtComma = totAmtComma;
|
||||
}
|
||||
public long getTotAmt() {
|
||||
return totAmt;
|
||||
}
|
||||
public void setTotAmt(long totAmt) {
|
||||
this.totAmt = totAmt;
|
||||
}
|
||||
public long getAmtSumOrigin() {
|
||||
return amtSumOrigin;
|
||||
}
|
||||
public void setAmtSumOrigin(long amtSumOrigin) {
|
||||
this.amtSumOrigin = amtSumOrigin;
|
||||
}
|
||||
public long getRefundSum() {
|
||||
return refundSum;
|
||||
}
|
||||
public void setRefundSum(long refundSum) {
|
||||
this.refundSum = refundSum;
|
||||
}
|
||||
public float getShortPrice() {
|
||||
return shortPrice;
|
||||
}
|
||||
public void setShortPrice(float shortPrice) {
|
||||
this.shortPrice = shortPrice;
|
||||
}
|
||||
public float getLongPrice() {
|
||||
return longPrice;
|
||||
}
|
||||
public void setLongPrice(float longPrice) {
|
||||
this.longPrice = longPrice;
|
||||
}
|
||||
public float getPicturePrice() {
|
||||
return picturePrice;
|
||||
}
|
||||
public void setPicturePrice(float picturePrice) {
|
||||
this.picturePrice = picturePrice;
|
||||
}
|
||||
public float getPicture2Price() {
|
||||
return picture2Price;
|
||||
}
|
||||
public void setPicture2Price(float picture2Price) {
|
||||
this.picture2Price = picture2Price;
|
||||
}
|
||||
public float getPicture3Price() {
|
||||
return picture3Price;
|
||||
}
|
||||
public void setPicture3Price(float picture3Price) {
|
||||
this.picture3Price = picture3Price;
|
||||
}
|
||||
public String getRegId() {
|
||||
return regId;
|
||||
}
|
||||
public void setRegId(String regId) {
|
||||
this.regId = regId;
|
||||
}
|
||||
public String getRegDate() {
|
||||
return regDate;
|
||||
}
|
||||
public void setRegDate(String regDate) {
|
||||
this.regDate = regDate;
|
||||
}
|
||||
public String getEditId() {
|
||||
return editId;
|
||||
}
|
||||
public void setEditId(String editId) {
|
||||
this.editId = editId;
|
||||
}
|
||||
public String getEditDate() {
|
||||
return editDate;
|
||||
}
|
||||
public void setEditDate(String editDate) {
|
||||
this.editDate = editDate;
|
||||
}
|
||||
public String getGrdSetHistId() {
|
||||
return grdSetHistId;
|
||||
}
|
||||
public void setGrdSetHistId(String grdSetHistId) {
|
||||
this.grdSetHistId = grdSetHistId;
|
||||
}
|
||||
|
||||
public List<String> getGrdSetNos() {
|
||||
return grdSetNos;
|
||||
}
|
||||
public void setGrdSetNos(List<String> grdSetNos) {
|
||||
this.grdSetNos = grdSetNos;
|
||||
}
|
||||
public List<String> getStdAmts() {
|
||||
return stdAmts;
|
||||
}
|
||||
public void setStdAmts(List<String> totAmts) {
|
||||
this.stdAmts = totAmts;
|
||||
}
|
||||
public List<String> getShortPrices() {
|
||||
return shortPrices;
|
||||
}
|
||||
public void setShortPrices(List<String> shortPrices) {
|
||||
this.shortPrices = shortPrices;
|
||||
}
|
||||
public List<String> getLongPrices() {
|
||||
return longPrices;
|
||||
}
|
||||
public void setLongPrices(List<String> longPrices) {
|
||||
this.longPrices = longPrices;
|
||||
}
|
||||
public List<String> getPicturePrices() {
|
||||
return picturePrices;
|
||||
}
|
||||
public void setPicturePrices(List<String> picturePrices) {
|
||||
this.picturePrices = picturePrices;
|
||||
}
|
||||
public List<String> getPicture2Prices() {
|
||||
return picture2Prices;
|
||||
}
|
||||
public void setPicture2Prices(List<String> picture2Prices) {
|
||||
this.picture2Prices = picture2Prices;
|
||||
}
|
||||
public List<String> getPicture3Prices() {
|
||||
return picture3Prices;
|
||||
}
|
||||
public void setPicture3Prices(List<String> picture3Prices) {
|
||||
this.picture3Prices = picture3Prices;
|
||||
}
|
||||
|
||||
public String getMberId() {
|
||||
return mberId;
|
||||
}
|
||||
public void setMberId(String mberId) {
|
||||
this.mberId = mberId;
|
||||
}
|
||||
public String getMberNm() {
|
||||
return mberNm;
|
||||
}
|
||||
public void setMberNm(String mberNm) {
|
||||
this.mberNm = mberNm;
|
||||
}
|
||||
public String getAmt() {
|
||||
return amt;
|
||||
}
|
||||
public void setAmt(String amt) {
|
||||
this.amt = amt;
|
||||
}
|
||||
public String getGrdStartDate() {
|
||||
return grdStartDate;
|
||||
}
|
||||
public void setGrdStartDate(String grdStartDate) {
|
||||
this.grdStartDate = grdStartDate;
|
||||
}
|
||||
public String getGrdEndDate() {
|
||||
return grdEndDate;
|
||||
}
|
||||
public void setGrdEndDate(String grd_endDate) {
|
||||
this.grdEndDate = grd_endDate;
|
||||
}
|
||||
public String getGrdStatus() {
|
||||
return grdStatus;
|
||||
}
|
||||
public void setGrdStatus(String grdStatus) {
|
||||
this.grdStatus = grdStatus;
|
||||
}
|
||||
public String getGrdStatusNm() {
|
||||
return grdStatusNm;
|
||||
}
|
||||
public void setGrdStatusNm(String grdStatusNm) {
|
||||
this.grdStatusNm = grdStatusNm;
|
||||
}
|
||||
public int getMberGrdHistNo() {
|
||||
return mberGrdHistNo;
|
||||
}
|
||||
public void setMberGrdHistNo(int mberGrdHistNo) {
|
||||
this.mberGrdHistNo = mberGrdHistNo;
|
||||
}
|
||||
public String getGrdNoti() {
|
||||
return grdNoti;
|
||||
}
|
||||
public void setGrdNoti(String grdNoti) {
|
||||
this.grdNoti = grdNoti;
|
||||
}
|
||||
public String getGrdDate() {
|
||||
return grdDate;
|
||||
}
|
||||
public void setGrdDate(String grdDate) {
|
||||
this.grdDate = grdDate;
|
||||
}
|
||||
public String getGrdPeriodDate() {
|
||||
return grdPeriodDate;
|
||||
}
|
||||
public void setGrdPeriodDate(String grdPeriodDate) {
|
||||
this.grdPeriodDate = grdPeriodDate;
|
||||
}
|
||||
public String getGrdNewDate() {
|
||||
return grdNewDate;
|
||||
}
|
||||
public void setGrdNewDate(String grdNewDate) {
|
||||
this.grdNewDate = grdNewDate;
|
||||
}
|
||||
public String getGrdDatePrgYn() {
|
||||
return grdDatePrgYn;
|
||||
}
|
||||
public void setGrdDatePrgYn(String grdDatePrgYn) {
|
||||
this.grdDatePrgYn = grdDatePrgYn;
|
||||
}
|
||||
public String getGrdPeriod() {
|
||||
return grdPeriod;
|
||||
}
|
||||
public void setGrdPeriod(String grdPeriod) {
|
||||
this.grdPeriod = grdPeriod;
|
||||
}
|
||||
public String getTempYn() {
|
||||
return tempYn;
|
||||
}
|
||||
public void setTempYn(String tempYn) {
|
||||
this.tempYn = tempYn;
|
||||
}
|
||||
public String getMoid() {
|
||||
return moid;
|
||||
}
|
||||
public void setMoid(String moid) {
|
||||
this.moid = moid;
|
||||
}
|
||||
public String getSearchGrdStatus() {
|
||||
return searchGrdStatus;
|
||||
}
|
||||
public void setSearchGrdStatus(String searchGrdStatus) {
|
||||
this.searchGrdStatus = searchGrdStatus;
|
||||
}
|
||||
public String getIsSalePrice() {
|
||||
return isSalePrice;
|
||||
}
|
||||
public void setIsSalePrice(String isSalePrice) {
|
||||
this.isSalePrice = isSalePrice;
|
||||
}
|
||||
public String getBlineCode() {
|
||||
return blineCode;
|
||||
}
|
||||
public void setBlineCode(String blineCode) {
|
||||
this.blineCode = blineCode;
|
||||
}
|
||||
public String getSpamYn() {
|
||||
return spamYn;
|
||||
}
|
||||
public void setSpamYn(String spamYn) {
|
||||
this.spamYn = spamYn;
|
||||
}
|
||||
}
|
||||
@ -1,198 +0,0 @@
|
||||
package itn.let.sym.grd.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
|
||||
import itn.let.sym.grd.service.MberGrdVO;
|
||||
|
||||
@Repository("mberGrdDAO")
|
||||
public class MberGrdDAO extends EgovAbstractDAO {
|
||||
|
||||
// 등급제 시행여부 변경
|
||||
public int updateMberSetting(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateMberSetting", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원 등급제 온/오프 히스토리
|
||||
public void insertMberSettingHist(MberGrdVO mberGrdVO) throws Exception{
|
||||
insert("mberGrdDAO.insertMberSettingHist", mberGrdVO);
|
||||
}
|
||||
|
||||
// 등급제 시행여부 상세
|
||||
public MberGrdVO selectMberSettingDetail(MberGrdVO mberGrdVO) throws Exception{
|
||||
return (MberGrdVO) select("mberGrdDAO.selectMberSettingDetail", mberGrdVO);
|
||||
}
|
||||
|
||||
|
||||
// 등급제 설정 목록
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<MberGrdVO> selectMberGrdSettingList(MberGrdVO mberGrdVO) throws Exception{
|
||||
return (List<MberGrdVO>)list("mberGrdDAO.selectMberGrdSettingList", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 설정 상세
|
||||
public MberGrdVO selectMberGrdSettingDetail(MberGrdVO mberGrdVO) throws Exception{
|
||||
return (MberGrdVO) select("mberGrdDAO.selectMberGrdSettingDetail", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 설정 상세(White)
|
||||
public MberGrdVO selectMberGrdSettingDetailWhite(MberGrdVO mberGrdVO) throws Exception{
|
||||
return (MberGrdVO) select("mberGrdDAO.selectMberGrdSettingDetailWhite", mberGrdVO);
|
||||
}
|
||||
|
||||
// 등급제 설정 일괄변경
|
||||
public int updateGrdSetting(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateGrdSetting", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원등급 설정정보 히스토리
|
||||
public void insertGrdSettingHist(MberGrdVO mberGrdVO) throws Exception{
|
||||
insert("mberGrdDAO.insertGrdSettingHist", mberGrdVO);
|
||||
}
|
||||
|
||||
// 등급제 등급 목록
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<MberGrdVO> selectMberGrdList(MberGrdVO mberGrdVO) throws Exception{
|
||||
return (List<MberGrdVO>)list("mberGrdDAO.selectMberGrdList", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 상세
|
||||
public MberGrdVO selectMberGrdDetail(MberGrdVO mberGrdVO) throws Exception{
|
||||
return (MberGrdVO) select("mberGrdDAO.selectMberGrdDetail", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원 등급제 대상여부 정보(사용자화면용)
|
||||
public MberGrdVO selectMberGrdInfo(String mberId) throws Exception{
|
||||
return (MberGrdVO) select("mberGrdDAO.selectMberGrdInfo", mberId);
|
||||
}
|
||||
|
||||
// 회원 등급 예외 정보
|
||||
public MberGrdVO selectMberEtcInfo(String mberId) throws Exception{
|
||||
return (MberGrdVO) select("mberGrdDAO.selectMberEtcInfo", mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급 누적결제액 상세
|
||||
public MberGrdVO selectMberGrdAmtDetail(MberGrdVO mberGrdVO) throws Exception{
|
||||
return (MberGrdVO) select("mberGrdDAO.selectMberGrdAmtDetail", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 등록
|
||||
public void insertMberGrd(MberGrdVO mberGrdVO) throws Exception{
|
||||
insert("mberGrdDAO.insertMberGrd", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 수정
|
||||
public void updateMberGrdOk(MberGrdVO mberGrdVO) throws Exception{
|
||||
update("mberGrdDAO.updateMberGrdOk", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 등록 All => 기존대상자 제외
|
||||
public void insertMberGrdAllByExist(MberGrdVO mberGrdVO) throws Exception{
|
||||
insert("mberGrdDAO.insertMberGrdAllByExist", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 등록 By MberId
|
||||
public void insertMberGrdByMberId(MberGrdVO mberGrdVO) throws Exception{
|
||||
insert("mberGrdDAO.insertMberGrdByMberId", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 히스토리 등록 All
|
||||
public void insertMberGrdHistAll(MberGrdVO mberGrdVO) throws Exception{
|
||||
insert("mberGrdDAO.insertMberGrdHistAll", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 일괄변경
|
||||
public int updateMberGrdAll(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateMberGrdAll", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원 등급 변경(환불후) => 기존등급 상관없이 업데이트
|
||||
public int updateMberGrdAfterRefund(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateMberGrdAfterRefund", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 초기화 By Temp
|
||||
public int updateMberGrdWhiteByTemp(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateMberGrdWhiteByTemp", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 초기화 All
|
||||
public int updateMberGrdWhiteAll(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateMberGrdWhiteAll", mberGrdVO);
|
||||
}
|
||||
|
||||
// 문자할인, B선라인 대상자 종료
|
||||
public int updateMberGrdEndBySale(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateMberGrdEndBySale", mberGrdVO);
|
||||
}
|
||||
|
||||
// 전체회원 TEMP_YN 업데이트
|
||||
public int updateMberGrdTempYn(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateMberGrdTempYn", mberGrdVO);
|
||||
}
|
||||
|
||||
// 전체회원 등급 전체종료
|
||||
public int updateMberGrdEndAll(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateMberGrdEndAll", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원 등급제 종료
|
||||
public int updateMberGrdEndByUser(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateMberGrdEndByUser", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원 등급제 복원
|
||||
public int updateMberGrdRestoreByUser(MberGrdVO mberGrdVO) throws Exception {
|
||||
return update("mberGrdDAO.updateMberGrdRestoreByUser", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급제 대상여부
|
||||
public int selectMberGrdCnt(String mberId) throws Exception{
|
||||
return (int) select("mberGrdDAO.selectMberGrdCnt", mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급 진행여부
|
||||
public int selectMberGrdPrgCnt(String mberId) throws Exception{
|
||||
return (int) select("mberGrdDAO.selectMberGrdPrgCnt", mberId);
|
||||
}
|
||||
|
||||
// 회원별 이벤트 진행여부
|
||||
public int selectMberEventPrgCnt(String mberId) throws Exception{
|
||||
return (int) select("mberGrdDAO.selectMberEventPrgCnt", mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급 저장여부
|
||||
public int selectMberGrdSaveCnt(String mberId) throws Exception{
|
||||
return (int) select("mberGrdDAO.selectMberGrdSaveCnt", mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급제 기간내, 최종결제이후 환불총금액
|
||||
public int selectMberGrdRefundSumAfterLastPay(String mberId) throws Exception{
|
||||
return (int) select("mberGrdDAO.selectMberGrdRefundSumAfterLastPay", mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급제 기간내, 최종결제이전 환불총금액
|
||||
public int selectMberGrdRefundSumBeforeLastPay(String mberId) throws Exception{
|
||||
return (int) select("mberGrdDAO.selectMberGrdRefundSumBeforeLastPay", mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급 히스토리 등록
|
||||
public void insertMberGrdHist(MberGrdVO mberGrdVO) throws Exception{
|
||||
insert("mberGrdDAO.insertMberGrdHist", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 히스토리 목록 => 등급제 시행일이후 목록(사용자화면용)
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<MberGrdVO> selectMberGrdHistByGrdDateList(MberGrdVO mberGrdVO) throws Exception{
|
||||
return (List<MberGrdVO>)list("mberGrdDAO.selectMberGrdHistByGrdDateList", mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 히스토리 목록
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<MberGrdVO> selectMberGrdHistList(MberGrdVO mberGrdVO) throws Exception{
|
||||
return (List<MberGrdVO>)list("mberGrdDAO.selectMberGrdHistList", mberGrdVO);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,659 +0,0 @@
|
||||
package itn.let.sym.grd.service.impl;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import itn.let.mjo.mjocommon.MjonCommon;
|
||||
import itn.let.mjo.pay.service.MjonPayService;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.grd.service.MberGrdVO;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.uss.umt.service.EgovMberManageService;
|
||||
|
||||
@Service("mberGrdService")
|
||||
public class MberGrdServiceImpl extends EgovAbstractServiceImpl implements MberGrdService {
|
||||
|
||||
@Resource(name="mberGrdDAO")
|
||||
MberGrdDAO mberGrdDAO;
|
||||
|
||||
@Resource(name = "mjonPayService")
|
||||
private MjonPayService mjonPayService;
|
||||
|
||||
/** mberManageService */
|
||||
@Resource(name = "mberManageService")
|
||||
private EgovMberManageService mberManageService;
|
||||
|
||||
@Resource(name="MjonCommon")
|
||||
private MjonCommon mjonCommon;
|
||||
|
||||
/** 등급제 설정 히스토리 idgen */
|
||||
@Resource(name="egovGrdSettingHistIdGnrService")
|
||||
private EgovIdGnrService gshidgenService;
|
||||
|
||||
// 등급제 시행여부 변경
|
||||
@Override
|
||||
public int updateMberSetting(MberGrdVO mberGrdVO) throws Exception {
|
||||
// Step 1. 등급제 시행여부 수정
|
||||
int updateCnt = mberGrdDAO.updateMberSetting(mberGrdVO);
|
||||
|
||||
// Step 2. 회원 등급제 온/오프 히스토리
|
||||
insertMberSettingHist(mberGrdVO);
|
||||
|
||||
return updateCnt;
|
||||
}
|
||||
|
||||
// 회원 등급제 온/오프 히스토리
|
||||
@Override
|
||||
public void insertMberSettingHist(MberGrdVO mberGrdVO) throws Exception {
|
||||
mberGrdDAO.insertMberSettingHist(mberGrdVO);
|
||||
}
|
||||
|
||||
// 등급제 시행여부 상세
|
||||
@Override
|
||||
public MberGrdVO selectMberSettingDetail(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.selectMberSettingDetail(mberGrdVO);
|
||||
}
|
||||
|
||||
|
||||
// 등급제 설정 목록
|
||||
@Override
|
||||
public List<MberGrdVO> selectMberGrdSettingList(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.selectMberGrdSettingList(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 설정 상세
|
||||
@Override
|
||||
public MberGrdVO selectMberGrdSettingDetail(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.selectMberGrdSettingDetail(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 설정 상세(White)
|
||||
@Override
|
||||
public MberGrdVO selectMberGrdSettingDetailWhite(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.selectMberGrdSettingDetailWhite(mberGrdVO);
|
||||
}
|
||||
|
||||
// 등급제 설정 일괄변경
|
||||
@Override
|
||||
public int updateGrdSettingList(MberGrdVO mberGrdVO) throws Exception {
|
||||
int updateCnt = 0;
|
||||
for(int i = 0; i < mberGrdVO.getGrdSetNos().size(); i++){
|
||||
System.out.println("getGrdSetNos : " + mberGrdVO.getGrdSetNos().get(i));
|
||||
|
||||
mberGrdVO.setGrdSetNo(Integer.parseInt(mberGrdVO.getGrdSetNos().get(i)));
|
||||
mberGrdVO.setStdAmt(Long.parseLong(mberGrdVO.getStdAmts().get(i)));
|
||||
mberGrdVO.setShortPrice(Float.parseFloat(mberGrdVO.getShortPrices().get(i)));
|
||||
mberGrdVO.setLongPrice(Float.parseFloat(mberGrdVO.getLongPrices().get(i)));
|
||||
mberGrdVO.setPicturePrice(Float.parseFloat(mberGrdVO.getPicturePrices().get(i)));
|
||||
mberGrdVO.setPicture2Price(Float.parseFloat(mberGrdVO.getPicture2Prices().get(i)));
|
||||
mberGrdVO.setPicture3Price(Float.parseFloat(mberGrdVO.getPicture3Prices().get(i)));
|
||||
mberGrdDAO.updateGrdSetting(mberGrdVO);
|
||||
|
||||
updateCnt++;
|
||||
}
|
||||
|
||||
// Step 2. 등급제 설정 히스토리 저장
|
||||
mberGrdVO.setGrdSetHistId(gshidgenService.getNextStringId());
|
||||
mberGrdDAO.insertGrdSettingHist(mberGrdVO);
|
||||
|
||||
return updateCnt;
|
||||
}
|
||||
|
||||
|
||||
// 등급제 등급 목록
|
||||
@Override
|
||||
public List<MberGrdVO> selectMberGrdList(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.selectMberGrdList(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 상세
|
||||
@Override
|
||||
public MberGrdVO selectMberGrdDetail(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.selectMberGrdDetail(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원 등급제 대상여부 정보(사용자화면용)
|
||||
@Override
|
||||
public MberGrdVO selectMberGrdInfo(String mberId) throws Exception {
|
||||
// 공백제거
|
||||
mberId = mberId.trim();
|
||||
|
||||
return mberGrdDAO.selectMberGrdInfo(mberId);
|
||||
}
|
||||
|
||||
// 회원 등급 예외 정보
|
||||
@Override
|
||||
public MberGrdVO selectMberEtcInfo(String mberId) throws Exception {
|
||||
// 공백제거
|
||||
mberId = mberId.trim();
|
||||
|
||||
return mberGrdDAO.selectMberEtcInfo(mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급 누적결제액 상세
|
||||
@Override
|
||||
public MberGrdVO selectMberGrdAmtDetail(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.selectMberGrdAmtDetail(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 등록
|
||||
@Override
|
||||
public void insertMberGrd(MberGrdVO mberGrdVO) throws Exception {
|
||||
mberGrdDAO.insertMberGrd(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 수정
|
||||
@Override
|
||||
public void updateMberGrdOk(MberGrdVO mberGrdVO) throws Exception {
|
||||
mberGrdDAO.updateMberGrdOk(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 등록 All => 기존대상자 제외
|
||||
@Override
|
||||
public void insertMberGrdAllByExist(MberGrdVO mberGrdVO) throws Exception {
|
||||
mberGrdDAO.insertMberGrdAllByExist(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 등록 By MberId
|
||||
@Override
|
||||
public void insertMberGrdByMberId(MberGrdVO mberGrdVO) throws Exception {
|
||||
mberGrdDAO.insertMberGrdByMberId(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 히스토리 등록 All
|
||||
@Override
|
||||
public void insertMberGrdHistAll(MberGrdVO mberGrdVO) throws Exception {
|
||||
mberGrdDAO.insertMberGrdHistAll(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 일괄변경
|
||||
@Override
|
||||
public int updateMberGrdAll(MberGrdVO mberGrdVO) throws Exception {
|
||||
int updateCnt = 0;
|
||||
int updateCnt2 = 0;
|
||||
int updateCnt3 = 0;
|
||||
|
||||
// Step 1. 등급제 시행 ON 일경우
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = selectMberSettingDetail(mberGrdVO);
|
||||
if (StringUtils.isNotEmpty(mberGrdVO1.getGrdNewDate())) {
|
||||
mberGrdVO.setGrdNewDate(mberGrdVO1.getGrdNewDate());
|
||||
|
||||
// Step1. 대상자 추가
|
||||
insertMberGrdAllByExist(mberGrdVO);
|
||||
|
||||
// Step2. TEMP_YN 업데이트(N)
|
||||
mberGrdVO.setTempYn("N");
|
||||
updateMberGrdTempYn(mberGrdVO);
|
||||
|
||||
// Step3. 문자할인, B선라인, 스팸회원 대상자 종료
|
||||
updateCnt = updateMberGrdEndBySale(mberGrdVO);
|
||||
|
||||
// Step4. 회원별 등급 일괄변경
|
||||
updateCnt2 = mberGrdDAO.updateMberGrdAll(mberGrdVO);
|
||||
|
||||
// Step5. 등급제 정상대상자 초기화(화이트등급)
|
||||
updateCnt3 = updateMberGrdWhiteByTemp(mberGrdVO);
|
||||
|
||||
// Step6. 회원별 등급 히스토리 등록
|
||||
insertMberGrdHistAll(mberGrdVO);
|
||||
|
||||
}
|
||||
|
||||
return updateCnt + updateCnt2 + updateCnt3;
|
||||
}
|
||||
|
||||
// 회원 등급 변경(환불후) => 기존등급 상관없이 업데이트
|
||||
@Override
|
||||
public int updateMberGrdAfterRefund(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.updateMberGrdAfterRefund(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 초기화 By Temp
|
||||
@Override
|
||||
public int updateMberGrdWhiteByTemp(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.updateMberGrdWhiteByTemp(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 초기화 All
|
||||
@Override
|
||||
public int updateMberGrdWhiteAll(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.updateMberGrdWhiteAll(mberGrdVO);
|
||||
}
|
||||
|
||||
// 문자할인, B선라인 대상자 종료
|
||||
@Override
|
||||
public int updateMberGrdEndBySale(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.updateMberGrdEndBySale(mberGrdVO);
|
||||
}
|
||||
|
||||
// 전체회원 TEMP_YN 업데이트
|
||||
@Override
|
||||
public int updateMberGrdTempYn(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.updateMberGrdTempYn(mberGrdVO);
|
||||
}
|
||||
|
||||
// 전체회원 등급 전체종료
|
||||
@Override
|
||||
public int updateMberGrdEndAll(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.updateMberGrdEndAll(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원 등급제 종료
|
||||
@Override
|
||||
public int updateMberGrdEndByUser(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.updateMberGrdEndByUser(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원 등급제 복원
|
||||
@Override
|
||||
public int updateMberGrdRestoreByUser(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.updateMberGrdRestoreByUser(mberGrdVO);
|
||||
}
|
||||
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
@Override
|
||||
public JoinSettingVO selectMberGrdDefaultInfo(JoinSettingVO sysJoinSetVO, String mberId) throws Exception {
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용 Last
|
||||
//sysJoinSetVO = selectMberGrdDefaultInfoLast(sysJoinSetVO, mberId);
|
||||
|
||||
return sysJoinSetVO;
|
||||
}
|
||||
|
||||
// 회원별 등급 적용
|
||||
@Override
|
||||
public void mberGrdSaveByUser(MberGrdVO mberGrdVO) throws Exception {
|
||||
// 회원별 등급 적용 Last
|
||||
//mberGrdSaveByUserLast(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 적용(로그인, 환불시 사용 => 히스토리 저장 제외)
|
||||
@Override
|
||||
public void mberGrdSaveByUserNoHist(MberGrdVO mberGrdVO) throws Exception {
|
||||
// 회원별 등급 적용(로그인, 환불시 사용 => 히스토리 저장 제외)
|
||||
//mberGrdSaveByUserNoHistLast(mberGrdVO);
|
||||
}
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용 Last
|
||||
@Override
|
||||
public JoinSettingVO selectMberGrdDefaultInfoLast(JoinSettingVO sysJoinSetVO, String mberId) throws Exception {
|
||||
System.out.println("START 등급제 단가 추출 => 시스템 단가에 적용");
|
||||
|
||||
// 공백제거
|
||||
mberId = mberId.trim();
|
||||
|
||||
if (StringUtils.isNotEmpty(mberId)) {
|
||||
System.out.println("아이디 : " + mberId);
|
||||
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
// Step 1. 등급제 시행 ON 일경우
|
||||
System.out.println("Step 1. 등급제 시행 ON 일경우");
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = selectMberSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO1.getGrdNoti().equals("Y")) {
|
||||
mberGrdVO = new MberGrdVO();
|
||||
|
||||
// Step 2. 등급 정보 조회
|
||||
System.out.println("Step 2. 등급 정보 조회");
|
||||
mberGrdVO = selectMberGrdInfo(mberId);
|
||||
if (mberGrdVO != null) {
|
||||
if(mberGrdVO.getShortPrice() > 1 && mberGrdVO.getLongPrice() > 1 && mberGrdVO.getPicturePrice() > 1 && mberGrdVO.getPicture2Price() > 1 && mberGrdVO.getPicture3Price() > 1) {
|
||||
sysJoinSetVO.setShortPrice(mberGrdVO.getShortPrice());
|
||||
sysJoinSetVO.setLongPrice(mberGrdVO.getLongPrice());
|
||||
sysJoinSetVO.setPicturePrice(mberGrdVO.getPicturePrice());
|
||||
sysJoinSetVO.setPicture2Price(mberGrdVO.getPicture2Price());
|
||||
sysJoinSetVO.setPicture3Price(mberGrdVO.getPicture3Price());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
System.out.println("END 등급제 단가 추출 => 시스템 단가에 적용");
|
||||
|
||||
return sysJoinSetVO;
|
||||
}
|
||||
|
||||
// 회원별 등급 적용 Last
|
||||
@Override
|
||||
public void mberGrdSaveByUserLast(MberGrdVO mberGrdVO) throws Exception {
|
||||
try {
|
||||
System.out.println("START 회원별 등급 적용");
|
||||
|
||||
if (StringUtils.isNotEmpty(mberGrdVO.getMberId())) {
|
||||
System.out.println("아이디 : " + mberGrdVO.getMberId());
|
||||
|
||||
// 현재 날짜 구하기
|
||||
LocalDate now = LocalDate.now();
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); // 포맷 정의
|
||||
String nowDate = now.format(formatter); // 포맷 적용
|
||||
|
||||
mberGrdVO.setRegId(mberGrdVO.getMberId());
|
||||
mberGrdVO.setEditId(mberGrdVO.getMberId());
|
||||
|
||||
// Step 1. 등급제 시행 ON 일경우(시행일자 진행여부 Y일경우)
|
||||
System.out.println("Step 1. 등급제 시행 ON 일경우(시행일자 진행여부 Y일경우)");
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = selectMberSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO1.getGrdNoti().equals("Y")) {
|
||||
mberGrdVO.setGrdNewDate(mberGrdVO1.getGrdNewDate());
|
||||
|
||||
// Step 2. 문자할인, B선라인, 스팸회원 대상자 제외
|
||||
System.out.println("Step 2. 문자할인, B선라인, 스팸회원 대상자 제외");
|
||||
int isMberGrd = selectMberGrdCnt(mberGrdVO.getMberId()); // 등급제 대상여부(1: 대상, 0: 미대상)
|
||||
if(isMberGrd == 1) {
|
||||
// Step 3. 누적결제금액(이벤트금액 제외) 추출 및 등급 조회
|
||||
System.out.println("Step 3. 누적결제금액(이벤트금액 제외) 추출 및 등급 조회");
|
||||
MberGrdVO mberGrdVO3 = new MberGrdVO();
|
||||
mberGrdVO3 = selectMberGrdAmtDetail(mberGrdVO);
|
||||
if (mberGrdVO3 != null) {
|
||||
mberGrdVO.setTotAmt(mberGrdVO3.getTotAmt());
|
||||
mberGrdVO.setGrdSetNo(mberGrdVO3.getGrdSetNo());
|
||||
|
||||
// Step 4. 등급제 설정값 조회
|
||||
System.out.println("Step 4. 등급제 설정값 조회");
|
||||
MberGrdVO mberGrdVO4 = new MberGrdVO();
|
||||
mberGrdVO4 = selectMberGrdSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO4 != null) {
|
||||
mberGrdVO.setAmt(mberGrdVO.getAmt());
|
||||
mberGrdVO.setTotAmt(mberGrdVO.getTotAmt());
|
||||
mberGrdVO.setShortPrice(mberGrdVO4.getShortPrice());
|
||||
mberGrdVO.setLongPrice(mberGrdVO4.getLongPrice());
|
||||
mberGrdVO.setPicturePrice(mberGrdVO4.getPicturePrice());
|
||||
mberGrdVO.setPicture2Price(mberGrdVO4.getPicture2Price());
|
||||
mberGrdVO.setPicture3Price(mberGrdVO4.getPicture3Price());
|
||||
mberGrdVO.setGrdDate(mberGrdVO.getGrdDate());
|
||||
mberGrdVO.setGrdStartDate(nowDate + " 00:00:00");
|
||||
mberGrdVO.setGrdEndDate("9999:12:31 23:59:59");
|
||||
mberGrdVO.setGrdStatus("Y");
|
||||
|
||||
// Step 5. 인서트 Or 업데이트
|
||||
System.out.println("Step 5. 인서트 Or 업데이트");
|
||||
MberGrdVO mberGrdVO5 = new MberGrdVO();
|
||||
mberGrdVO5 = selectMberGrdDetail(mberGrdVO);
|
||||
if (mberGrdVO5 != null) {
|
||||
// 업데이트
|
||||
updateMberGrdOk(mberGrdVO);
|
||||
|
||||
// 회원별 등급 히스토리 인서트
|
||||
insertMberGrdHist(mberGrdVO);
|
||||
}
|
||||
else {
|
||||
// 인서트
|
||||
insertMberGrd(mberGrdVO);
|
||||
|
||||
// 회원별 등급 히스토리 인서트
|
||||
insertMberGrdHist(mberGrdVO);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println("Step 3. ELSE => 화이트등급 인서트");
|
||||
|
||||
// Step 4. 등급제 설정값 조회
|
||||
System.out.println("Step 4. 등급제 설정값 조회");
|
||||
MberGrdVO mberGrdVO4 = new MberGrdVO();
|
||||
mberGrdVO4 = selectMberGrdSettingDetailWhite(mberGrdVO);
|
||||
if (mberGrdVO4 != null) {
|
||||
mberGrdVO.setAmt("0");
|
||||
mberGrdVO.setTotAmt(0);
|
||||
mberGrdVO.setGrdSetNo(mberGrdVO4.getGrdSetNo());
|
||||
mberGrdVO.setShortPrice(mberGrdVO4.getShortPrice());
|
||||
mberGrdVO.setLongPrice(mberGrdVO4.getLongPrice());
|
||||
mberGrdVO.setPicturePrice(mberGrdVO4.getPicturePrice());
|
||||
mberGrdVO.setPicture2Price(mberGrdVO4.getPicture2Price());
|
||||
mberGrdVO.setPicture3Price(mberGrdVO4.getPicture3Price());
|
||||
mberGrdVO.setGrdDate(mberGrdVO.getGrdDate());
|
||||
mberGrdVO.setGrdStartDate(nowDate + " 00:00:00");
|
||||
mberGrdVO.setGrdEndDate("9999:12:31 23:59:59");
|
||||
mberGrdVO.setGrdStatus("Y");
|
||||
|
||||
// Step 5. 인서트 Or 업데이트
|
||||
System.out.println("Step 5. 인서트 Or 업데이트");
|
||||
MberGrdVO mberGrdVO5 = new MberGrdVO();
|
||||
mberGrdVO5 = selectMberGrdDetail(mberGrdVO);
|
||||
if (mberGrdVO5 != null) {
|
||||
// 업데이트
|
||||
updateMberGrdOk(mberGrdVO);
|
||||
|
||||
// 회원별 등급 히스토리 인서트
|
||||
insertMberGrdHist(mberGrdVO);
|
||||
}
|
||||
else {
|
||||
// 인서트
|
||||
insertMberGrd(mberGrdVO);
|
||||
|
||||
// 회원별 등급 히스토리 인서트
|
||||
insertMberGrdHist(mberGrdVO);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println("Step 2. ELSE 등급제 종료");
|
||||
updateMberGrdEndByUser(mberGrdVO);
|
||||
}
|
||||
}
|
||||
}
|
||||
System.out.println("END 회원별 등급 적용");
|
||||
}
|
||||
catch (Exception e) {
|
||||
// Slack 메시지 발송(단순본문)
|
||||
String msg = "[문자온] " + mberGrdVO.getMberId() + "님 결제중 회원등급 저장 오류 알림 => 개발팀에게 문의해주세요.";
|
||||
mjonCommon.sendSimpleSlackMsg(msg);
|
||||
|
||||
System.out.println("#############################################################");
|
||||
System.out.println(mberGrdVO.getMberId() + "님 결제중 회원등급 저장 오류");
|
||||
}
|
||||
}
|
||||
|
||||
// 회원별 등급 적용(로그인, 환불시 사용 => 히스토리 저장 제외)
|
||||
@Override
|
||||
public void mberGrdSaveByUserNoHistLast(MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
try {
|
||||
System.out.println("START 회원별 등급 적용(로그인, 환불시 사용 => 히스토리 저장 제외)");
|
||||
|
||||
if (StringUtils.isNotEmpty(mberGrdVO.getMberId())) {
|
||||
System.out.println("아이디 : " + mberGrdVO.getMberId());
|
||||
|
||||
// 현재 날짜 구하기
|
||||
LocalDate now = LocalDate.now();
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); // 포맷 정의
|
||||
String nowDate = now.format(formatter); // 포맷 적용
|
||||
|
||||
mberGrdVO.setRegId(mberGrdVO.getMberId());
|
||||
mberGrdVO.setEditId(mberGrdVO.getMberId());
|
||||
|
||||
// Step 1. 등급제 시행 ON 일경우(시행일자 진행여부 Y일경우)
|
||||
System.out.println("Step 1. 등급제 시행 ON 일경우(시행일자 진행여부 Y일경우)");
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = selectMberSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO1.getGrdNoti().equals("Y")) {
|
||||
mberGrdVO.setGrdNewDate(mberGrdVO1.getGrdNewDate());
|
||||
|
||||
// Step 2. 문자할인, B선라인, 스팸회원 대상자 제외
|
||||
System.out.println("Step 2. 문자할인, B선라인, 스팸회원 대상자 제외");
|
||||
int isMberGrd = selectMberGrdCnt(mberGrdVO.getMberId()); // 등급제 대상여부(1: 대상, 0: 미대상)
|
||||
if(isMberGrd == 1) {
|
||||
// Step 3. 누적결제금액(이벤트금액 제외) 추출 및 등급 조회
|
||||
System.out.println("Step 3. 누적결제금액(이벤트금액 제외) 추출 및 등급 조회");
|
||||
MberGrdVO mberGrdVO3 = new MberGrdVO();
|
||||
mberGrdVO3 = selectMberGrdAmtDetail(mberGrdVO);
|
||||
if (mberGrdVO3 != null) {
|
||||
mberGrdVO.setTotAmt(mberGrdVO3.getTotAmt());
|
||||
mberGrdVO.setGrdSetNo(mberGrdVO3.getGrdSetNo());
|
||||
|
||||
// Step 4. 등급제 설정값 조회
|
||||
System.out.println("Step 4. 누적결제금액(이벤트금액 제외) 추출 및 등급 조회");
|
||||
MberGrdVO mberGrdVO4 = new MberGrdVO();
|
||||
mberGrdVO4 = selectMberGrdSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO4 != null) {
|
||||
mberGrdVO.setAmt(mberGrdVO.getAmt());
|
||||
mberGrdVO.setTotAmt(mberGrdVO.getTotAmt());
|
||||
mberGrdVO.setShortPrice(mberGrdVO4.getShortPrice());
|
||||
mberGrdVO.setLongPrice(mberGrdVO4.getLongPrice());
|
||||
mberGrdVO.setPicturePrice(mberGrdVO4.getPicturePrice());
|
||||
mberGrdVO.setPicture2Price(mberGrdVO4.getPicture2Price());
|
||||
mberGrdVO.setPicture3Price(mberGrdVO4.getPicture3Price());
|
||||
mberGrdVO.setGrdDate(mberGrdVO.getGrdDate());
|
||||
mberGrdVO.setGrdStartDate(nowDate + " 00:00:00");
|
||||
mberGrdVO.setGrdEndDate("9999:12:31 23:59:59");
|
||||
mberGrdVO.setGrdStatus("Y");
|
||||
|
||||
// Step 5. 인서트 Or 업데이트
|
||||
System.out.println("Step 5. 인서트 Or 업데이트");
|
||||
MberGrdVO mberGrdVO5 = new MberGrdVO();
|
||||
mberGrdVO5 = selectMberGrdDetail(mberGrdVO);
|
||||
if (mberGrdVO5 != null) {
|
||||
// 업데이트
|
||||
updateMberGrdOk(mberGrdVO);
|
||||
}
|
||||
else {
|
||||
// 인서트
|
||||
insertMberGrd(mberGrdVO);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println("Step 3. ELSE => 화이트등급 인서트");
|
||||
|
||||
// Step 4. 등급제 설정값 조회
|
||||
System.out.println("Step 4. 등급제 설정값 조회");
|
||||
MberGrdVO mberGrdVO4 = new MberGrdVO();
|
||||
mberGrdVO4 = selectMberGrdSettingDetailWhite(mberGrdVO);
|
||||
if (mberGrdVO4 != null) {
|
||||
mberGrdVO.setAmt("0");
|
||||
mberGrdVO.setTotAmt(0);
|
||||
mberGrdVO.setGrdSetNo(mberGrdVO4.getGrdSetNo());
|
||||
mberGrdVO.setShortPrice(mberGrdVO4.getShortPrice());
|
||||
mberGrdVO.setLongPrice(mberGrdVO4.getLongPrice());
|
||||
mberGrdVO.setPicturePrice(mberGrdVO4.getPicturePrice());
|
||||
mberGrdVO.setPicture2Price(mberGrdVO4.getPicture2Price());
|
||||
mberGrdVO.setPicture3Price(mberGrdVO4.getPicture3Price());
|
||||
mberGrdVO.setGrdDate(mberGrdVO.getGrdDate());
|
||||
mberGrdVO.setGrdStartDate(nowDate + " 00:00:00");
|
||||
mberGrdVO.setGrdEndDate("9999:12:31 23:59:59");
|
||||
mberGrdVO.setGrdStatus("Y");
|
||||
|
||||
// Step 5. 인서트 Or 업데이트
|
||||
System.out.println("Step 5. 인서트 Or 업데이트");
|
||||
MberGrdVO mberGrdVO5 = new MberGrdVO();
|
||||
mberGrdVO5 = selectMberGrdDetail(mberGrdVO);
|
||||
if (mberGrdVO5 != null) {
|
||||
// 업데이트
|
||||
updateMberGrdOk(mberGrdVO);
|
||||
|
||||
// 회원별 등급 히스토리 인서트
|
||||
insertMberGrdHist(mberGrdVO);
|
||||
}
|
||||
else {
|
||||
// 인서트
|
||||
insertMberGrd(mberGrdVO);
|
||||
|
||||
// 회원별 등급 히스토리 인서트
|
||||
insertMberGrdHist(mberGrdVO);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println("Step 2. ELSE 등급제 종료");
|
||||
updateMberGrdEndByUser(mberGrdVO);
|
||||
}
|
||||
}
|
||||
}
|
||||
System.out.println("END 회원별 등급 적용(로그인, 환불시 사용 => 히스토리 저장 제외)");
|
||||
}
|
||||
catch (Exception e) {
|
||||
// Slack 메시지 발송(단순본문)
|
||||
String msg = "[문자온] " + mberGrdVO.getMberId() + "님 로그인중 회원등급 저장 오류 알림 => 개발팀에게 문의해주세요.";
|
||||
mjonCommon.sendSimpleSlackMsg(msg);
|
||||
|
||||
System.out.println("#############################################################");
|
||||
System.out.println(mberGrdVO.getMberId() + "님 로그인중 회원등급 저장 오류");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 회원별 등급제 대상여부
|
||||
@Override
|
||||
public int selectMberGrdCnt(String mberId) throws Exception{
|
||||
// 공백제거
|
||||
mberId = mberId.trim();
|
||||
|
||||
return mberGrdDAO.selectMberGrdCnt(mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급 진행여부
|
||||
@Override
|
||||
public int selectMberGrdPrgCnt(String mberId) throws Exception{
|
||||
// 공백제거
|
||||
mberId = mberId.trim();
|
||||
|
||||
return mberGrdDAO.selectMberGrdPrgCnt(mberId);
|
||||
}
|
||||
|
||||
// 회원별 이벤트 진행여부
|
||||
@Override
|
||||
public int selectMberEventPrgCnt(String mberId) throws Exception{
|
||||
// 공백제거
|
||||
mberId = mberId.trim();
|
||||
|
||||
return mberGrdDAO.selectMberEventPrgCnt(mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급 저장여부
|
||||
@Override
|
||||
public int selectMberGrdSaveCnt(String mberId) throws Exception{
|
||||
// 공백제거
|
||||
mberId = mberId.trim();
|
||||
|
||||
return mberGrdDAO.selectMberGrdSaveCnt(mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급제 기간내, 최종결제이후 환불총금액
|
||||
@Override
|
||||
public int selectMberGrdRefundSumAfterLastPay(String mberId) throws Exception{
|
||||
// 공백제거
|
||||
mberId = mberId.trim();
|
||||
|
||||
return mberGrdDAO.selectMberGrdRefundSumAfterLastPay(mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급제 기간내, 최종결제이전 환불총금액
|
||||
@Override
|
||||
public int selectMberGrdRefundSumBeforeLastPay(String mberId) throws Exception{
|
||||
// 공백제거
|
||||
mberId = mberId.trim();
|
||||
|
||||
return mberGrdDAO.selectMberGrdRefundSumBeforeLastPay(mberId);
|
||||
}
|
||||
|
||||
// 회원별 등급 히스토리 등록
|
||||
@Override
|
||||
public void insertMberGrdHist(MberGrdVO mberGrdVO) throws Exception {
|
||||
mberGrdDAO.insertMberGrdHist(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 히스토리 목록 => 등급제 시행일이후 목록(사용자화면용)
|
||||
@Override
|
||||
public List<MberGrdVO> selectMberGrdHistByGrdDateList(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.selectMberGrdHistByGrdDateList(mberGrdVO);
|
||||
}
|
||||
|
||||
// 회원별 등급 히스토리 목록
|
||||
@Override
|
||||
public List<MberGrdVO> selectMberGrdHistList(MberGrdVO mberGrdVO) throws Exception {
|
||||
return mberGrdDAO.selectMberGrdHistList(mberGrdVO);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,223 +0,0 @@
|
||||
package itn.let.sym.grd.web;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.com.utl.fcc.service.EgovStringUtil;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.grd.service.MberGrdVO;
|
||||
|
||||
@Controller
|
||||
public class MberGrdController {
|
||||
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
/**
|
||||
* ########################################
|
||||
* 등급제 사용자 화면
|
||||
* ########################################
|
||||
*/
|
||||
|
||||
/**
|
||||
* 마이페이지 등급제 누적결제액 세부내역
|
||||
* @param mjonMsgVO
|
||||
* @param model
|
||||
* @return "/web/member/grd/MberGrdHistListAjax.do"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value= {"/web/member/grd/mberGrdHistListAjax.do"})
|
||||
public String mberGrdHistListAjax(@ModelAttribute("searchVO") MberGrdVO mberGrdVO,
|
||||
HttpServletRequest request,
|
||||
ModelMap model) throws Exception{
|
||||
|
||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
||||
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
||||
mberGrdVO.setMberId(userId);
|
||||
|
||||
if(mberGrdVO.getPageUnit() != 10) {
|
||||
mberGrdVO.setPageUnit(mberGrdVO.getPageUnit());
|
||||
}
|
||||
|
||||
/** pageing */
|
||||
mberGrdVO.setPageUnit(3);
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(mberGrdVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(mberGrdVO.getPageUnit());
|
||||
paginationInfo.setPageSize(mberGrdVO.getPageSize());
|
||||
|
||||
mberGrdVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
mberGrdVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
mberGrdVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
if("".equals(mberGrdVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
||||
|
||||
}
|
||||
|
||||
// 회원별 등급제 기간내, 최종결제이후 환불총금액
|
||||
int refundSumAfterLastPay = mberGrdService.selectMberGrdRefundSumAfterLastPay(mberGrdVO.getMberId());
|
||||
|
||||
// 회원별 등급제 기간내, 최종결제이전 환불총금액
|
||||
int refundSumBeforeLastPay = mberGrdService.selectMberGrdRefundSumBeforeLastPay(mberGrdVO.getMberId());
|
||||
|
||||
List<MberGrdVO> mberGrdHistList = mberGrdService.selectMberGrdHistByGrdDateList(mberGrdVO);
|
||||
|
||||
paginationInfo.setTotalRecordCount(mberGrdHistList.size()> 0 ? mberGrdHistList.get(0).getTotCnt() : 0);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
model.addAttribute("mberGrdHistList", mberGrdHistList);
|
||||
|
||||
model.addAttribute("grdSetNm", mberGrdVO.getGrdSetNm());
|
||||
model.addAttribute("totAmt", mberGrdVO.getTotAmt());
|
||||
model.addAttribute("refundSumAfterLastPay", refundSumAfterLastPay);
|
||||
model.addAttribute("refundSumBeforeLastPay", refundSumBeforeLastPay);
|
||||
|
||||
return "/web/grd/MberGrdHistListAjax";
|
||||
}
|
||||
|
||||
// 등급제 시행 ON/OFF 체크(로그인 상태에서만 조회)
|
||||
@RequestMapping(value = "/web/grd/mberSettDetailAjax.do")
|
||||
public ModelAndView mberSettingDetailAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = false;
|
||||
String msg = "";
|
||||
|
||||
try{
|
||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
||||
if (null != loginVO) {
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = mberGrdService.selectMberSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO1.getGrdNoti().equals("Y")) {
|
||||
isSuccess = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 등급제 시행 ON/OFF 체크(비로그인 상태에서 조회)
|
||||
@RequestMapping(value = "/web/grd/mberSettDetailByNotLoginAjax.do")
|
||||
public ModelAndView mberSettDetailByNotLoginAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = false;
|
||||
String msg = "";
|
||||
MberGrdVO rtnMberGrdVO = new MberGrdVO();
|
||||
|
||||
try{
|
||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
||||
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
||||
if (null != loginVO) {
|
||||
mberGrdVO.setMberId(userId);
|
||||
|
||||
// Step 1. 등급제 시행 ON 일경우(시행일자 진행여부 Y일경우)
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = mberGrdService.selectMberSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO1.getGrdNoti().equals("Y")) {
|
||||
// Step 2. 회원별 이벤트 진행여부
|
||||
int mberEventPrgCnt = mberGrdService.selectMberEventPrgCnt(mberGrdVO.getMberId());
|
||||
if (mberEventPrgCnt == 0) {
|
||||
rtnMberGrdVO = mberGrdService.selectMberGrdInfo(mberGrdVO.getMberId());
|
||||
if (null != rtnMberGrdVO) {
|
||||
isSuccess = true;
|
||||
}
|
||||
else {
|
||||
msg = "종료";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = mberGrdService.selectMberSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO1.getGrdNoti().equals("Y")) {
|
||||
isSuccess = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 등급제 적용여부 체크
|
||||
@RequestMapping(value = "/web/grd/mberGrdChkAjax.do")
|
||||
public ModelAndView mberGrdChkAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
||||
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
||||
|
||||
|
||||
boolean isSuccess = false;
|
||||
String msg = "";
|
||||
MberGrdVO rtnMberGrdVO = new MberGrdVO();
|
||||
|
||||
try{
|
||||
if (StringUtils.isNotEmpty(userId)) {
|
||||
mberGrdVO.setMberId(userId);
|
||||
|
||||
// Step 1. 등급제 시행 ON 일경우(시행일자 진행여부 Y일경우)
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = mberGrdService.selectMberSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO1.getGrdNoti().equals("Y")) {
|
||||
// Step 2. 회원별 이벤트 진행여부
|
||||
int mberEventPrgCnt = mberGrdService.selectMberEventPrgCnt(mberGrdVO.getMberId());
|
||||
if (mberEventPrgCnt == 0) {
|
||||
rtnMberGrdVO = mberGrdService.selectMberGrdInfo(mberGrdVO.getMberId());
|
||||
if (null != rtnMberGrdVO) {
|
||||
isSuccess = true;
|
||||
}
|
||||
else {
|
||||
msg = "종료";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("rtnMberGrdVO", rtnMberGrdVO);
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,551 +0,0 @@
|
||||
package itn.let.sym.grd.web;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.com.utl.fcc.service.EgovStringUtil;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.grd.service.MberGrdVO;
|
||||
|
||||
@Controller
|
||||
public class MberGrdMngController {
|
||||
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
/**
|
||||
* 등급제 관리자 화면
|
||||
*
|
||||
* @param mberGrdVO
|
||||
* @param model
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping("/sym/grd/selectMberGrdSetting.do")
|
||||
public String selectJoinSetting(MberGrdVO mberGrdVO,
|
||||
HttpServletRequest request,
|
||||
ModelMap model) throws Exception {
|
||||
|
||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
||||
String id = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
||||
if(id == "") {
|
||||
return "redirect:/uat/uia/EgovLoginUsr.do";
|
||||
}
|
||||
|
||||
List<MberGrdVO> mberGrdSettingList = mberGrdService.selectMberGrdSettingList(mberGrdVO);
|
||||
|
||||
mberGrdVO = mberGrdService.selectMberSettingDetail(mberGrdVO);
|
||||
|
||||
model.addAttribute("grdNoti", mberGrdVO.getGrdNoti());
|
||||
model.addAttribute("grdDate", mberGrdVO.getGrdDate());
|
||||
model.addAttribute("grdPeriod", mberGrdVO.getGrdPeriod());
|
||||
model.addAttribute("mberGrdSettingList", mberGrdSettingList);
|
||||
|
||||
return "/sym/grd/mberGrdSetting";
|
||||
}
|
||||
|
||||
// 등급제 단가 정보
|
||||
@RequestMapping(value = "/sym/grd/mberGrdSettingListAjax.do")
|
||||
public ModelAndView mberGrdSettingListAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
List<MberGrdVO> mberGrdSettingList = null;
|
||||
|
||||
try{
|
||||
// 등급별 단가 정보
|
||||
mberGrdSettingList = mberGrdService.selectMberGrdSettingList(mberGrdVO);
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
modelAndView.addObject("mberGrdSettingList", mberGrdSettingList);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 등급제 설정 저장
|
||||
@RequestMapping(value = "/sym/grd/mberGrdSettingUpdateAjax.do")
|
||||
public ModelAndView mberGrdSettingUpdateAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
int updateMberCnt = 0;
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String frstRegisterId = loginVO == null ? "" : loginVO.getId();
|
||||
mberGrdVO.setRegId(frstRegisterId); // 최초등록자ID
|
||||
mberGrdVO.setEditId(frstRegisterId); // 최초등록자ID
|
||||
|
||||
try{
|
||||
// Step1. 등급제 시행여부 변경
|
||||
int updateCnt1 = mberGrdService.updateMberSetting(mberGrdVO);
|
||||
if (updateCnt1 == 0) {
|
||||
isSuccess = false;
|
||||
msg = "등급제 시행여부 변경에 실패했습니다.";
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
modelAndView.addObject("updateMberCnt", updateMberCnt);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 등급제 일괄 저장
|
||||
@RequestMapping(value = "/sym/grd/mberGrdSettingMassUpdateAjax.do")
|
||||
public ModelAndView mberGrdSettingMassUpdateAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
int updateMberCnt = 0;
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String frstRegisterId = loginVO == null ? "" : loginVO.getId();
|
||||
mberGrdVO.setRegId(frstRegisterId); // 최초등록자ID
|
||||
mberGrdVO.setEditId(frstRegisterId); // 최초등록자ID
|
||||
|
||||
try{
|
||||
// Step1. 등급제 시행여부 변경
|
||||
//int updateCnt1 = mberGrdService.updateMberSetting(mberGrdVO);
|
||||
//if (updateCnt1 == 0) {
|
||||
// isSuccess = false;
|
||||
// msg = "등급제 시행여부 변경에 실패했습니다.";
|
||||
//}
|
||||
//else {
|
||||
// Step2. 등급제 단가 업데이트
|
||||
int updateCnt2 = mberGrdService.updateGrdSettingList(mberGrdVO);
|
||||
if (updateCnt2 == 0) {
|
||||
isSuccess = false;
|
||||
msg = "등급제 단가 변경에 실패했습니다.";
|
||||
}
|
||||
else {
|
||||
// Step3. 회원 등급 일괄변경
|
||||
updateMberCnt = mberGrdService.updateMberGrdAll(mberGrdVO);
|
||||
}
|
||||
//}
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
modelAndView.addObject("updateMberCnt", updateMberCnt);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 회원별 등급 초기화
|
||||
@RequestMapping(value = "/sym/grd/mberGrdResetMassUpdateAjax.do")
|
||||
public ModelAndView mberGrdResetMassUpdateAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
int updateMberCnt = 0;
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String frstRegisterId = loginVO == null ? "" : loginVO.getId();
|
||||
mberGrdVO.setEditId(frstRegisterId); // 최초등록자ID
|
||||
|
||||
try{
|
||||
// Step 1. 등급제 시행 ON 일경우
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = mberGrdService.selectMberSettingDetail(mberGrdVO);
|
||||
if (StringUtils.isNotEmpty(mberGrdVO1.getGrdNewDate())) {
|
||||
mberGrdVO.setGrdNewDate(mberGrdVO1.getGrdNewDate());
|
||||
|
||||
// 회원별 등급 초기화
|
||||
updateMberCnt = mberGrdService.updateMberGrdWhiteAll(mberGrdVO);
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
modelAndView.addObject("updateMberCnt", updateMberCnt);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 회원별 등급제 전체종료
|
||||
@RequestMapping(value = "/sym/grd/mberGrdEndMassUpdateAjax.do")
|
||||
public ModelAndView mberGrdEndMassUpdateAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
int updateMberCnt = 0;
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String frstRegisterId = loginVO == null ? "" : loginVO.getId();
|
||||
mberGrdVO.setEditId(frstRegisterId); // 최초등록자ID
|
||||
|
||||
try{
|
||||
|
||||
// 회원별 등급 전체종료
|
||||
updateMberCnt = mberGrdService.updateMberGrdEndAll(mberGrdVO);
|
||||
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
modelAndView.addObject("updateMberCnt", updateMberCnt);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 회원별 등급 적용 테스트
|
||||
@RequestMapping(value = "/sym/grd/mberGrdSaveAjax.do")
|
||||
public ModelAndView mberGrdSaveAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String frstRegisterId = loginVO == null ? "" : loginVO.getId();
|
||||
mberGrdVO.setEditId(frstRegisterId); // 최초등록자ID
|
||||
|
||||
try{
|
||||
|
||||
// 회원별 등급 적용
|
||||
mberGrdVO.setAmt("0");
|
||||
mberGrdService.mberGrdSaveByUser(mberGrdVO);
|
||||
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
/**
|
||||
* 회원별 등급제 목록 화면
|
||||
*
|
||||
* @param mberGrdVO
|
||||
* @param model
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping("/sym/grd/selectMberGrdList.do")
|
||||
public String selectMetaTagList(@ModelAttribute("searchVO") MberGrdVO mberGrdVO, ModelMap model) throws Exception{
|
||||
|
||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
||||
String id = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
||||
if(id == "") {
|
||||
return "redirect:/uat/uia/EgovLoginUsr.do";
|
||||
}
|
||||
|
||||
/** paging */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(mberGrdVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(mberGrdVO.getPageUnit());
|
||||
paginationInfo.setPageSize(mberGrdVO.getPageSize());
|
||||
|
||||
mberGrdVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
mberGrdVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
mberGrdVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
if("".equals(mberGrdVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
||||
mberGrdVO.setSearchSortCnd("regDate");
|
||||
mberGrdVO.setSearchSortOrd("desc");
|
||||
}
|
||||
|
||||
List<MberGrdVO> resultList = mberGrdService.selectMberGrdList(mberGrdVO);
|
||||
model.addAttribute("resultList", resultList);
|
||||
paginationInfo.setTotalRecordCount( resultList.size()> 0 ? resultList.get(0).getTotCnt() : 0);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
return "/sym/grd/mberGrdList";
|
||||
}
|
||||
|
||||
// 등급제 적용여부 체크
|
||||
@RequestMapping(value = "/sym/grd/mberGrdChkAjax.do")
|
||||
public ModelAndView mberGrdChkAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = false;
|
||||
String msg = "";
|
||||
MberGrdVO rtnMberGrdVO = new MberGrdVO();
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String frstRegisterId = loginVO == null ? "" : loginVO.getId();
|
||||
mberGrdVO.setEditId(frstRegisterId); // 최초등록자ID
|
||||
|
||||
try{
|
||||
if (StringUtils.isNotEmpty(mberGrdVO.getMberId())) {
|
||||
// Step 1. 등급제 시행 ON 일경우(시행일자 진행여부 Y일경우)
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = mberGrdService.selectMberSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO1.getGrdNoti().equals("Y")) {
|
||||
// Step 2. 회원별 이벤트 진행여부
|
||||
int mberEventPrgCnt = mberGrdService.selectMberEventPrgCnt(mberGrdVO.getMberId());
|
||||
if (mberEventPrgCnt == 0) {
|
||||
rtnMberGrdVO = mberGrdService.selectMberGrdInfo(mberGrdVO.getMberId());
|
||||
if (null != rtnMberGrdVO) {
|
||||
isSuccess = true;
|
||||
}
|
||||
else {
|
||||
msg = "종료";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
System.out.println("rtnMberGrdVO :: "+ rtnMberGrdVO.getGrdSetNm());
|
||||
modelAndView.addObject("rtnMberGrdVO", rtnMberGrdVO);
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 회원 등급 예외 정보
|
||||
@RequestMapping(value = "/sym/grd/mberGrdEtcChkAjax.do")
|
||||
public ModelAndView mberGrdEtcChkAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
boolean isEvent = false;
|
||||
String msg = "";
|
||||
MberGrdVO rtnMberGrdVO = new MberGrdVO();
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String frstRegisterId = loginVO == null ? "" : loginVO.getId();
|
||||
mberGrdVO.setEditId(frstRegisterId); // 최초등록자ID
|
||||
|
||||
try{
|
||||
if (StringUtils.isNotEmpty(mberGrdVO.getMberId())) {
|
||||
|
||||
// Step 2. 회원별 이벤트 진행여부
|
||||
int mberEventPrgCnt = mberGrdService.selectMberEventPrgCnt(mberGrdVO.getMberId());
|
||||
if (mberEventPrgCnt == 0) {
|
||||
rtnMberGrdVO = mberGrdService.selectMberEtcInfo(mberGrdVO.getMberId());
|
||||
if (null != rtnMberGrdVO) {
|
||||
|
||||
}
|
||||
else {
|
||||
msg = "종료";
|
||||
}
|
||||
}
|
||||
else {
|
||||
isEvent = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("rtnMberGrdVO", rtnMberGrdVO);
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("isEvent", isEvent);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 회원 등급제 종료
|
||||
@RequestMapping(value = "/sym/grd/mberGrdEndByUserAjax.do")
|
||||
public ModelAndView mberGrdEndByUserAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String frstRegisterId = loginVO == null ? "" : loginVO.getId();
|
||||
mberGrdVO.setEditId(frstRegisterId); // 최초등록자ID
|
||||
|
||||
try{
|
||||
|
||||
// 회원 등급제 종료
|
||||
mberGrdService.updateMberGrdEndByUser(mberGrdVO);
|
||||
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 회원 등급제 복원
|
||||
@RequestMapping(value = "/sym/grd/mberGrdRestoreByUserAjax.do")
|
||||
public ModelAndView mberGrdRestoreByUserAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String frstRegisterId = loginVO == null ? "" : loginVO.getId();
|
||||
mberGrdVO.setRegId(frstRegisterId);
|
||||
mberGrdVO.setEditId(frstRegisterId);
|
||||
|
||||
try{
|
||||
|
||||
// Step 1. 등급제 시행 ON 일경우(시행일자 진행여부 Y일경우)
|
||||
System.out.println("Step 1. 등급제 시행 ON 일경우(시행일자 진행여부 Y일경우)");
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = mberGrdService.selectMberSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO1.getGrdNoti().equals("Y")) {
|
||||
mberGrdVO.setGrdNewDate(mberGrdVO1.getGrdNewDate());
|
||||
|
||||
// Step 2. 문자할인, B선라인, 스팸회원 대상자 제외
|
||||
System.out.println("Step 2. 문자할인, B선라인, 스팸회원 대상자 제외");
|
||||
int isMberGrd = mberGrdService.selectMberGrdCnt(mberGrdVO.getMberId()); // 등급제 대상여부(1: 대상, 0: 미대상)
|
||||
if(isMberGrd == 1) {
|
||||
// 회원 등급제 복원
|
||||
mberGrdService.updateMberGrdRestoreByUser(mberGrdVO);
|
||||
|
||||
// 회원 등급 변경(환불후) => 기존등급 상관없이 업데이트
|
||||
mberGrdService.updateMberGrdAfterRefund(mberGrdVO);
|
||||
}
|
||||
else {
|
||||
isSuccess = false;
|
||||
msg = "문자할인, B선라인, 스팸회원 대상자는 등급제 대상자가 아닙니다.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
isSuccess = false;
|
||||
msg = "등급제 시행 OFF 일경우 복원이 불가합니다.";
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
// 회원 등급제 갱신
|
||||
@RequestMapping(value = "/sym/grd/mberGrdUpdateByUserAjax.do")
|
||||
public ModelAndView mberGrdUpdateByUserAjax(
|
||||
@ModelAttribute("mberGrdVO") MberGrdVO mberGrdVO) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
|
||||
// 로그인VO에서 사용자 정보 가져오기
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String frstRegisterId = loginVO == null ? "" : loginVO.getId();
|
||||
mberGrdVO.setEditId(frstRegisterId); // 최초등록자ID
|
||||
|
||||
try{
|
||||
// Step 1. 등급제 시행 ON 일경우
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
mberGrdVO1 = mberGrdService.selectMberSettingDetail(mberGrdVO);
|
||||
if (mberGrdVO1.getGrdNoti().equals("Y")) {
|
||||
mberGrdVO.setGrdNewDate(mberGrdVO1.getGrdNewDate());
|
||||
|
||||
// 회원 등급 변경(환불후) => 기존등급 상관없이 업데이트
|
||||
mberGrdService.updateMberGrdAfterRefund(mberGrdVO);
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
}
|
||||
@ -134,22 +134,6 @@ public interface EgovMenuManageService {
|
||||
*/
|
||||
String selectLastMenuURL(int iMenuNo, String sUniqId) throws Exception;
|
||||
|
||||
/* 일괄처리 프로세스 */
|
||||
|
||||
/**
|
||||
* 메뉴일괄초기화 프로세스 메뉴목록테이블, 프로그램 목록테이블 전체 삭제
|
||||
* @return boolean
|
||||
*/
|
||||
boolean menuBndeAllDelete() throws Exception;
|
||||
|
||||
/**
|
||||
* 메뉴일괄등록 프로세스
|
||||
* @param vo MenuManageVO
|
||||
* @param inputStream InputStream
|
||||
* @exception Exception
|
||||
*/
|
||||
String menuBndeRegist(MenuManageVO vo, InputStream inputStream) throws Exception;
|
||||
|
||||
List<MenuManageVO> selectUpperMenuNoByPkList(MenuManageVO menuManageVO) throws Exception;
|
||||
|
||||
List<MenuManageVO> selectEquiLevelList(String equiLevel) throws Exception;
|
||||
|
||||
@ -51,8 +51,6 @@ public class EgovMenuManageServiceImpl extends EgovAbstractServiceImpl implement
|
||||
private MenuManageDAO menuManageDAO;
|
||||
@Resource(name = "progrmManageDAO")
|
||||
private ProgrmManageDAO progrmManageDAO;
|
||||
@Resource(name = "excelZipService")
|
||||
private EgovExcelService excelZipService;
|
||||
|
||||
@Resource(name = "multipartResolver")
|
||||
CommonsMultipartResolver mailmultipartResolver;
|
||||
@ -251,333 +249,6 @@ public class EgovMenuManageServiceImpl extends EgovAbstractServiceImpl implement
|
||||
return chkMenuNo;
|
||||
}
|
||||
|
||||
/*### 일괄처리 프로세스 ###*/
|
||||
/**
|
||||
* 메뉴일괄초기화 프로세스 메뉴목록테이블, 프로그램 목록테이블 전체 삭제
|
||||
* @return boolean
|
||||
* @exception Exception
|
||||
*/
|
||||
public boolean menuBndeAllDelete() throws Exception {
|
||||
//if(!deleteAllProgrmDtls()){return false;} // 프로그램변경요청 테이블
|
||||
if (!deleteAllMenuList()) {
|
||||
return false;
|
||||
} // 메뉴정보 테이블
|
||||
if (!deleteAllProgrm()) {
|
||||
return false;
|
||||
} // 프로그램목록 테이블
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴일괄등록 프로세스
|
||||
* @param vo MenuManageVO
|
||||
* @param inputStream InputStream
|
||||
* @exception Exception
|
||||
*/
|
||||
public String menuBndeRegist(MenuManageVO vo, InputStream inputStream) throws Exception {
|
||||
|
||||
String message = bndeRegist(inputStream);
|
||||
String sMessage = null;
|
||||
|
||||
switch (Integer.parseInt(message)) {
|
||||
case 99:
|
||||
LOGGER.debug("프로그램목록/메뉴정보테이블 데이타 존재오류 - 초기화 하신 후 다시 처리하세요.");
|
||||
sMessage = "프로그램목록/메뉴정보테이블 데이타 존재오류 - 초기화 하신 후 다시 처리하세요.";
|
||||
break;
|
||||
case 90:
|
||||
LOGGER.debug("파일존재하지 않음.");
|
||||
sMessage = "파일존재하지 않음.";
|
||||
break;
|
||||
case 91:
|
||||
LOGGER.debug("프로그램시트의 cell 갯수 오류.");
|
||||
sMessage = "프로그램시트의 cell 갯수 오류.";
|
||||
break;
|
||||
case 92:
|
||||
LOGGER.debug("메뉴정보시트의 cell 갯수 오류.");
|
||||
sMessage = "메뉴정보시트의 cell 갯수 오류.";
|
||||
break;
|
||||
case 93:
|
||||
LOGGER.debug("엑셀 시트갯수 오류.");
|
||||
sMessage = "엑셀 시트갯수 오류.";
|
||||
break;
|
||||
case 95:
|
||||
LOGGER.debug("메뉴정보 입력시 에러.");
|
||||
sMessage = "메뉴정보 입력시 에러.";
|
||||
break;
|
||||
case 96:
|
||||
LOGGER.debug("프로그램목록입력시 에러.");
|
||||
sMessage = "프로그램목록입력시 에러.";
|
||||
break;
|
||||
default:
|
||||
LOGGER.debug("일괄배치처리 완료.");
|
||||
sMessage = "일괄배치처리 완료.";
|
||||
break;
|
||||
}
|
||||
LOGGER.debug(message);
|
||||
return sMessage;
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴목록_프로그램목록 일괄생성
|
||||
* @param inputStream InputStream
|
||||
* @return String
|
||||
* @exception Exception
|
||||
*/
|
||||
private String bndeRegist(InputStream inputStream) throws Exception {
|
||||
boolean success = false;
|
||||
String requestValue = null;
|
||||
//char FILE_SEPARATOR = File.separatorChar;
|
||||
int progrmSheetRowCnt = 0;
|
||||
int menuSheetRowCnt = 0;
|
||||
//String xlsFile = null;
|
||||
try {
|
||||
/*
|
||||
오류 메세지 정보
|
||||
message = "99"; //프로그램목록테이블 데이타 존재오류.
|
||||
message = "99"; //메뉴정보테이블 데이타 존재오류.
|
||||
message = "90"; //파일존재하지 않음.
|
||||
message = "91"; //프로그램시트의 cell 갯수 오류
|
||||
message = "92"; //메뉴정보시트의 cell 갯수 오류
|
||||
message = "93"; //엑셀 시트갯수 오류
|
||||
message = "95"; //메뉴정보 입력시 에러
|
||||
message = "96"; //프로그램목록입력시 에러
|
||||
message = "0"; //일괄배치처리 완료
|
||||
*/
|
||||
|
||||
if (progrmManageDAO.selectProgrmListTotCnt() > 1) {
|
||||
return requestValue = "99";
|
||||
} //프로그램목록테이블 데이타 존재오류.
|
||||
if (menuManageDAO.selectMenuListTotCnt() > 1) {
|
||||
return requestValue = "99";
|
||||
} //메뉴정보테이블 데이타 존재오류.
|
||||
Workbook hssfWB = excelZipService.loadWorkbook(inputStream);
|
||||
//log.debug("hssfWB:::::"+hssfWB);
|
||||
// 엑셀 파일 시트 갯수 확인 sheet = 2 첫번째시트 = 프로그램목록 두번째시트 = 메뉴목록
|
||||
if (hssfWB.getNumberOfSheets() == 2) {
|
||||
Sheet progrmSheet = hssfWB.getSheetAt(0); //프로그램목록 시트 가져오기
|
||||
Sheet menuSheet = hssfWB.getSheetAt(1); //메뉴정보 시트 가져오기
|
||||
Row progrmRow = progrmSheet.getRow(1); //프로그램 row 가져오기
|
||||
Row menuRow = menuSheet.getRow(1); //메뉴정보 row 가져오기
|
||||
progrmSheetRowCnt = progrmRow.getPhysicalNumberOfCells(); //프로그램 cell Cnt
|
||||
menuSheetRowCnt = menuRow.getPhysicalNumberOfCells(); //메뉴정보 cell Cnt
|
||||
|
||||
// 프로그램 시트 파일 데이타 검증 cell = 5개
|
||||
if (progrmSheetRowCnt != 5) {
|
||||
return requestValue = "91"; //프로그램시트의 cell 갯수 오류
|
||||
}
|
||||
|
||||
// 메뉴목록 시트 파일 데이타 검증 cell = 8개
|
||||
if (menuSheetRowCnt != 8) {
|
||||
return requestValue = "92"; //메뉴정보시트의 cell 갯수 오류
|
||||
}
|
||||
|
||||
/* sheet1번 = 프로그램목록 , sheet2번 = 메뉴정보 */
|
||||
success = progrmRegist(progrmSheet);
|
||||
if (success) {
|
||||
success = menuRegist(menuSheet);
|
||||
if (success) {
|
||||
return requestValue = "0"; // 일괄배치처리 완료
|
||||
} else {
|
||||
deleteAllProgrmDtls();
|
||||
deleteAllProgrm();
|
||||
deleteAllMenuList();
|
||||
return requestValue = "95"; // 메뉴정보 입력시 에러
|
||||
}
|
||||
} else {
|
||||
deleteAllProgrmDtls();
|
||||
deleteAllProgrm();
|
||||
return requestValue = "96"; // 프로그램목록입력시 에러
|
||||
}
|
||||
} else {
|
||||
return requestValue = "93"; // 엑셀 시트갯수 오류
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
LOGGER.debug("{}", e);
|
||||
|
||||
requestValue = "99";
|
||||
}
|
||||
return requestValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* 프로그램목록 일괄등록
|
||||
* @param progrmSheet HSSFSheet
|
||||
* @return boolean
|
||||
* @exception Exception
|
||||
*/
|
||||
private boolean progrmRegist(Sheet progrmSheet) throws Exception {
|
||||
int count = 0;
|
||||
boolean success = false;
|
||||
try {
|
||||
int rows = progrmSheet.getPhysicalNumberOfRows(); //행 갯수 가져오기
|
||||
for (int j = 1; j < rows; j++) { //row 루프
|
||||
ProgrmManageVO vo = new ProgrmManageVO();
|
||||
Row row = progrmSheet.getRow(j); //row 가져오기
|
||||
if (row != null) {
|
||||
//int cells=row.getPhysicalNumberOfCells(); //cell 갯수 가져오기
|
||||
|
||||
Cell cell = null;
|
||||
cell = row.getCell(0); //프로그램명
|
||||
if (cell != null) {
|
||||
vo.setProgrmFileNm("" + cell.getStringCellValue());
|
||||
}
|
||||
cell = row.getCell(1); //프로그램한글명
|
||||
if (cell != null) {
|
||||
vo.setProgrmKoreanNm("" + cell.getStringCellValue());
|
||||
}
|
||||
cell = row.getCell(2); //프로그램저장경로
|
||||
if (cell != null) {
|
||||
vo.setProgrmStrePath("" + cell.getStringCellValue());
|
||||
}
|
||||
cell = row.getCell(3); //프로그램 URL
|
||||
if (cell != null) {
|
||||
vo.setURL("" + cell.getStringCellValue());
|
||||
}
|
||||
cell = row.getCell(4); //프로그램설명
|
||||
if (cell != null) {
|
||||
vo.setProgrmDc("" + cell.getStringCellValue());
|
||||
}
|
||||
}
|
||||
if (insertProgrm(vo)) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
if (count == rows - 1) {
|
||||
success = true;
|
||||
} else {
|
||||
success = false;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LOGGER.debug("{}", e);
|
||||
|
||||
success = false;
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴정보 일괄등록
|
||||
* @param menuSheet HSSFSheet
|
||||
* @return boolean
|
||||
* @exception Exception
|
||||
*/
|
||||
private boolean menuRegist(Sheet menuSheet) throws Exception {
|
||||
boolean success = false;
|
||||
int count = 0;
|
||||
try {
|
||||
int rows = menuSheet.getPhysicalNumberOfRows(); //행 갯수 가져오기
|
||||
for (int j = 1; j < rows; j++) { //row 루프
|
||||
MenuManageVO vo = new MenuManageVO();
|
||||
Row row = menuSheet.getRow(j); //row 가져오기
|
||||
if (row != null) {
|
||||
//int cells=row.getPhysicalNumberOfCells(); //cell 갯수 가져오기
|
||||
Cell cell = null;
|
||||
cell = row.getCell(0); //메뉴번호
|
||||
if (cell != null) {
|
||||
Double doubleCell = new Double(cell.getNumericCellValue());
|
||||
vo.setMenuNo(Integer.parseInt("" + doubleCell.longValue()));
|
||||
}
|
||||
cell = row.getCell(1); //메뉴순서
|
||||
if (cell != null) {
|
||||
Double doubleCell = new Double(cell.getNumericCellValue());
|
||||
vo.setMenuOrdr(Integer.parseInt("" + doubleCell.longValue()));
|
||||
}
|
||||
cell = row.getCell(2); //메뉴명
|
||||
if (cell != null) {
|
||||
vo.setMenuNm("" + cell.getStringCellValue());
|
||||
}
|
||||
cell = row.getCell(3); //상위메뉴번호
|
||||
if (cell != null) {
|
||||
Double doubleCell = new Double(cell.getNumericCellValue());
|
||||
vo.setUpperMenuId(Integer.parseInt("" + doubleCell.longValue()));
|
||||
}
|
||||
cell = row.getCell(4); //메뉴설명
|
||||
if (cell != null) {
|
||||
vo.setMenuDc("" + cell.getStringCellValue());
|
||||
}
|
||||
cell = row.getCell(5); //관련이미지경로
|
||||
if (cell != null) {
|
||||
vo.setRelateImagePath("" + cell.getStringCellValue());
|
||||
}
|
||||
cell = row.getCell(6); //관련이미지명
|
||||
if (cell != null) {
|
||||
vo.setRelateImageNm("" + cell.getStringCellValue());
|
||||
}
|
||||
cell = row.getCell(7); //프로그램파일명
|
||||
if (cell != null) {
|
||||
vo.setProgrmFileNm("" + cell.getStringCellValue());
|
||||
}
|
||||
}
|
||||
if (insertMenuManageBind(vo)) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
if (count == rows - 1) {
|
||||
success = true;
|
||||
} else {
|
||||
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LOGGER.debug("{}", e);
|
||||
|
||||
success = false;
|
||||
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴정보 전체데이타 초기화
|
||||
* @return boolean
|
||||
* @exception Exception
|
||||
*/
|
||||
private boolean deleteAllMenuList() throws Exception {
|
||||
return menuManageDAO.deleteAllMenuList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 프로그램 정보를 등록
|
||||
* @param vo ProgrmManageVO
|
||||
* @return boolean
|
||||
* @exception Exception
|
||||
*/
|
||||
private boolean insertProgrm(ProgrmManageVO vo) throws Exception {
|
||||
progrmManageDAO.insertProgrm(vo);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴정보를 일괄 등록
|
||||
* @param vo MenuManageVO
|
||||
* @return boolean
|
||||
* @exception Exception
|
||||
*/
|
||||
private boolean insertMenuManageBind(MenuManageVO vo) throws Exception {
|
||||
menuManageDAO.insertMenuManage(vo);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 프로그램 정보 전체데이타 초기화
|
||||
* @return boolean
|
||||
* @exception Exception
|
||||
*/
|
||||
private boolean deleteAllProgrm() throws Exception {
|
||||
progrmManageDAO.deleteAllProgrm();
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 프로그램변경내역 정보 전체데이타 초기화
|
||||
* @return boolean
|
||||
* @exception Exception
|
||||
*/
|
||||
private boolean deleteAllProgrmDtls() throws Exception {
|
||||
progrmManageDAO.deleteAllProgrmDtls();
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MenuManageVO> selectUpperMenuNoByPkList(MenuManageVO menuManageVO) throws Exception {
|
||||
return menuManageDAO.selectUpperMenuNoByPkList(menuManageVO);
|
||||
|
||||
@ -320,102 +320,4 @@ public class EgovMenuManageController {
|
||||
//return "forward:/sym/mnu/mpm/EgovMenuManageSelect.do";
|
||||
}
|
||||
|
||||
/*### 일괄처리 프로세스 ###*/
|
||||
|
||||
/**
|
||||
* 메뉴생성 일괄삭제프로세스
|
||||
* @param menuManageVO MenuManageVO
|
||||
* @return 출력페이지정보 "sym/mnu/mpm/EgovMenuBndeRegist"
|
||||
* @exception Exception
|
||||
*/
|
||||
@RequestMapping(value = "/sym/mnu/mpm/EgovMenuBndeAllDelete.do")
|
||||
public String menuBndeAllDelete(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO, ModelMap model) throws Exception {
|
||||
String resultMsg = "";
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if (isAuthenticated == null || !isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
menuManageService.menuBndeAllDelete();
|
||||
resultMsg = egovMessageSource.getMessage("success.common.delete");
|
||||
model.addAttribute("message", resultMsg);
|
||||
|
||||
return "sym/mnu/mpm/EgovMenuBndeRegist";
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴일괄등록화면 호출 및 메뉴일괄등록처리 프로세스
|
||||
* @param commandMap Map
|
||||
* @param menuManageVO MenuManageVO
|
||||
* @param request HttpServletRequest
|
||||
* @return 출력페이지정보 "sym/mnu/mpm/EgovMenuBndeRegist"
|
||||
* @exception Exception
|
||||
*/
|
||||
@RequestMapping(value = "/sym/mnu/mpm/EgovMenuBndeRegist.do")
|
||||
public String menuBndeRegist(@RequestParam Map<String, Object> commandMap, final HttpServletRequest request, @ModelAttribute("menuManageVO") MenuManageVO menuManageVO,
|
||||
ModelMap model) throws Exception {
|
||||
String sLocationUrl = null;
|
||||
String resultMsg = "";
|
||||
String sMessage = "";
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if (isAuthenticated == null || !isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
if (sCmd.equals("bndeInsert")) {
|
||||
final MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest) request;
|
||||
final Map<String, MultipartFile> files = multiRequest.getFileMap();
|
||||
Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator();
|
||||
MultipartFile file = null;
|
||||
InputStream fis = null;
|
||||
while (itr.hasNext()) {
|
||||
Entry<String, MultipartFile> entry = itr.next();
|
||||
try {
|
||||
file = entry.getValue();
|
||||
fis = file.getInputStream();
|
||||
if (!"".equals(file.getOriginalFilename())) {
|
||||
// 2011.10.07 업로드 파일에 대한 확장자를 체크
|
||||
if (file.getOriginalFilename().toLowerCase().endsWith(".xls") || file.getOriginalFilename().toLowerCase().endsWith(".xlsx")) {
|
||||
if (menuManageService.menuBndeAllDelete()) {
|
||||
sMessage = menuManageService.menuBndeRegist(menuManageVO, fis);
|
||||
resultMsg = sMessage;
|
||||
} else {
|
||||
resultMsg = egovMessageSource.getMessage("fail.common.msg");
|
||||
menuManageVO.setTmp_Cmd("EgovMenuBndeRegist Error!!");
|
||||
model.addAttribute("resultVO", menuManageVO);
|
||||
}
|
||||
} else {
|
||||
//log.info("xls, xlsx 파일 타입만 등록이 가능합니다.");
|
||||
resultMsg = egovMessageSource.getMessage("fail.common.msg");
|
||||
model.addAttribute("message", resultMsg);
|
||||
return "egovframework/com/sym/mnu/mpm/EgovMenuBndeRegist";
|
||||
}
|
||||
// *********** 끝 ***********
|
||||
|
||||
} else {
|
||||
resultMsg = egovMessageSource.getMessage("fail.common.msg");
|
||||
}
|
||||
|
||||
} finally {
|
||||
try {
|
||||
if (fis != null) {
|
||||
fis.close();
|
||||
}
|
||||
} catch (IOException ee) {
|
||||
LOGGER.debug("{}", ee);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
sLocationUrl = "sym/mnu/mpm/EgovMenuBndeRegist";
|
||||
model.addAttribute("message", resultMsg);
|
||||
} else {
|
||||
sLocationUrl = "sym/mnu/mpm/EgovMenuBndeRegist";
|
||||
}
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -49,7 +49,6 @@ public class EgovSessionMapping extends EgovUsersByUsernameMapping {
|
||||
*/
|
||||
@Override
|
||||
protected EgovUserDetails mapRow(ResultSet rs, int rownum) throws SQLException {
|
||||
logger.debug("## EgovUsersByUsernameMapping mapRow ##");
|
||||
|
||||
String strUserId = rs.getString("user_id");
|
||||
String strPassWord = rs.getString("password");
|
||||
|
||||
@ -101,8 +101,6 @@ import itn.let.mjo.msgsent.service.MjonMsgSentService;
|
||||
import itn.let.mjo.msgsent.service.MjonMsgSentVO;
|
||||
import itn.let.mjo.pay.service.KmcVO;
|
||||
import itn.let.mjo.pay.service.MjonPayService;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.grd.service.MberGrdVO;
|
||||
import itn.let.sym.log.clg.service.EgovLoginLogService;
|
||||
import itn.let.sym.log.clg.service.LoginLog;
|
||||
import itn.let.sym.mnu.mpm.service.MenuManageJTreeVO;
|
||||
@ -239,9 +237,6 @@ public class EgovLoginController {
|
||||
@Resource(name = "mjonPayService")
|
||||
private MjonPayService mjonPayService;
|
||||
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
@Resource(name = "CertPhoneService")
|
||||
private CertPhoneService certPhoneService;
|
||||
|
||||
@ -1487,324 +1482,6 @@ public class EgovLoginController {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* (사용자) 일반(스프링 시큐리티) 로그인을 처리한다
|
||||
*
|
||||
* @param vo
|
||||
* - 아이디, 비밀번호가 담긴 LoginVO
|
||||
* @param request
|
||||
* - 세션처리를 위한 HttpServletRequest
|
||||
* @return result - 로그인결과(세션정보)
|
||||
* @exception Exception
|
||||
*/
|
||||
@RequestMapping(value = "/web/user/login/actionSecurityLogin_bak_00.do")
|
||||
public String selectActionSecurityLoginWeb_bak(@ModelAttribute("loginVO") LoginVO loginVO, HttpServletResponse response,
|
||||
HttpServletRequest request, @RequestParam Map<String, Object> commandMap, ModelMap model,
|
||||
HttpSession session, RedirectAttributes redirectAttributes) throws Exception {
|
||||
|
||||
String userIp = EgovClntInfo.getClntIP(request);
|
||||
HackIpVO hackIpVO = new HackIpVO();
|
||||
hackIpVO.setAccessIp(userIp);
|
||||
hackIpVO.setBlockYn("Y");
|
||||
if (null != hackIpService.selectHackIpVO(hackIpVO)) {
|
||||
String message = "차단된 아이피입니다. 관리자에게 문의해 주십시요.";
|
||||
redirectAttributes.addFlashAttribute("message", message);
|
||||
return "redirect:/";
|
||||
}
|
||||
|
||||
/*ScriptEngineManager engine = new ScriptEngineManager();*/
|
||||
|
||||
loginVO.setUserSe("USR");
|
||||
// 로그인 정보 check
|
||||
|
||||
if (loginVO.getId() == null || loginVO.getPassword() == null) {
|
||||
// 회원가입 시 로그인 처리
|
||||
LoginVO pLoginVO = (LoginVO) request.getAttribute("pLoginVO");
|
||||
if (pLoginVO == null) {
|
||||
// RSA 키 생성
|
||||
initRsa(request);
|
||||
/* return "redirect:/web/user/login/login.do"; */
|
||||
return "redirect:/";
|
||||
} else {
|
||||
loginVO.setId(pLoginVO.getId());
|
||||
loginVO.setPassword(pLoginVO.getPassword());
|
||||
loginVO.setBeforeUrl(pLoginVO.getBeforeUrl());
|
||||
loginVO.setMessage(pLoginVO.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
// 1. 일반 로그인 처리
|
||||
PrivateKey privateKey = (PrivateKey) session.getAttribute(EgovLoginController.RSA_WEB_KEY);
|
||||
if (privateKey == null) {
|
||||
initRsa(request);
|
||||
/*return "web/site/login/EgovLoginGnrlUsr";*/
|
||||
String message = "아이디와 비밀번호를 확인해주세요.";
|
||||
redirectAttributes.addFlashAttribute("message", message);
|
||||
System.out.println("======================================================");
|
||||
System.out.println("= RSA privateKey is null =");
|
||||
System.out.println("======================================================");
|
||||
return "redirect:/web/main/mainPage.do";
|
||||
}
|
||||
|
||||
LoginVO resultVO;
|
||||
// 복호화
|
||||
String id = "";
|
||||
try {
|
||||
//아이디 복호화 후 소문자 변환
|
||||
id = decryptRsa(privateKey, loginVO.getId()).toLowerCase();
|
||||
} catch (Exception e) {
|
||||
initRsa(request);
|
||||
// return "redirect:/web/user/login/login.do";
|
||||
if (loginVO.getBeforeUrl().toString().contains("/web/user/login/login.do")) {
|
||||
redirectAttributes.addFlashAttribute("fail", true);
|
||||
return "redirect:/web/user/login/login.do";
|
||||
}
|
||||
return "redirect:/";
|
||||
|
||||
}
|
||||
String password = decryptRsa(privateKey, loginVO.getPassword());
|
||||
loginVO.setId(id);
|
||||
loginVO.setIp(EgovClntInfo.getClntIP(request));
|
||||
loginVO.setPassword(password);
|
||||
loginVO.setUserSe("GNR");
|
||||
loginVO.setStatusAll("Y"); // 신청대기중인 사용자까지 조회
|
||||
|
||||
//기업회원 가입중인지 체크 - 기존 로그인 select는 MBER_STTUS = 'Y'가 하드코딩이라 로그인 전 기업회원 가입중인지 선 체크
|
||||
//암호화 2번 방지를 위한 LoginVO 생성
|
||||
LoginVO loginCmpChkVO = new LoginVO();
|
||||
loginCmpChkVO.setId(id);
|
||||
loginCmpChkVO.setIp(EgovClntInfo.getClntIP(request));
|
||||
loginCmpChkVO.setPassword(password);
|
||||
loginCmpChkVO.setUserSe("GNR");
|
||||
loginCmpChkVO.setStatusAll("Y"); // 신청대기중인 사용자까지 조회
|
||||
loginCmpChkVO.setEmplyrSttusCode("A"); // 신청대기중인 사용자까지 조회
|
||||
LoginVO cmpHstResultVO = loginService.actionLoginCmpChk(loginCmpChkVO);
|
||||
if(null != cmpHstResultVO.getId()) {
|
||||
//기업회원 정보 마지막 내역 조회
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
mberManageVO.setMberId(loginVO.getId());
|
||||
MberManageVO cmpChangeManageVO = mberManageService.selectCmpUsrHst(mberManageVO);
|
||||
if(null != cmpChangeManageVO) {
|
||||
if("01".equals(cmpChangeManageVO.getHstType())) { //가장 마지막 내역이 기업회원 가입일 시
|
||||
if("01".equals(cmpChangeManageVO.getHstSttus()) || "03".equals(cmpChangeManageVO.getHstSttus()) ) { //가장 마지막 기업회원 가입이 신청 또는 반려 상태일 시
|
||||
redirectAttributes.addFlashAttribute("mberId", loginVO.getId());
|
||||
//addFlashAttribute 일회성으로 인하여 membershipAttachDocBefore.do 이동 후
|
||||
//membershipAttachDoc.do로 바로 submit하여 새로고침 시 정보 유지되게 끔 처리
|
||||
return "redirect:/web/user/login/membershipAttachDocBefore.do";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//스팸처리 회원인지 mj_spam_member_info 해당 ID의 최근 1개 데이터 조회
|
||||
LoginVO loginSmiChkVO = new LoginVO();
|
||||
loginSmiChkVO.setId(id);
|
||||
loginSmiChkVO.setIp(EgovClntInfo.getClntIP(request));
|
||||
loginSmiChkVO.setPassword(password);
|
||||
loginSmiChkVO.setUserSe("GNR");
|
||||
loginSmiChkVO.setStatusAll("Y"); // 신청대기중인 사용자까지 조회
|
||||
loginSmiChkVO.setEmplyrSttusCode("B"); // 신청대기중인 사용자까지 조회
|
||||
LoginVO smiResultVO = loginService.actionLoginCmpChk(loginSmiChkVO);
|
||||
if(null != smiResultVO.getId()) {
|
||||
MberManageVO spamMberManageVO = new MberManageVO();
|
||||
spamMberManageVO.setMberId(loginVO.getId());
|
||||
MberManageVO spamMemberInfoVO = mberManageService.selectSpamMemberInfo(spamMberManageVO);
|
||||
if(null != spamMemberInfoVO) {
|
||||
redirectAttributes.addFlashAttribute("mberId", loginVO.getId());
|
||||
return "redirect:/web/user/login/loginRestrictionUseBefore.do";
|
||||
}
|
||||
}
|
||||
resultVO = loginService.actionLogin(loginVO);
|
||||
LoginVO passMissVO = loginService.selectPassMiss(loginVO);
|
||||
|
||||
String alertMessage = "";
|
||||
if (!"admin".equals(loginVO.getId())) {
|
||||
//아이디가 존재
|
||||
if(passMissVO != null) {
|
||||
// 로그인 실패 (
|
||||
if (null == resultVO.getId() && passMissVO.getPassMiss() < 5 ) {
|
||||
loginService.updatePassMissPlus(loginVO);
|
||||
alertMessage = egovMessageSource.getMessage("fail.common.login");
|
||||
|
||||
// 로그인 실패시 해킹의심 IP 테이블에 등록_아이디는 있지만 비밀번호가 틀린상황
|
||||
/// HackIpVO hackIpVO = new HackIpVO();
|
||||
hackIpVO.setHackUserId(loginVO.getId());
|
||||
hackIpVO.setAccessIp( EgovClntInfo.getClntIP(request));
|
||||
hackIpService.insertHackIp(hackIpVO);
|
||||
if (loginVO.getBeforeUrl().toString().contains("/web/user/login/login.do")) {
|
||||
redirectAttributes.addFlashAttribute("fail", true);
|
||||
return "redirect:/web/user/login/login.do";
|
||||
}
|
||||
|
||||
return goUserLoginPage(redirectAttributes, loginVO, request, model, alertMessage);
|
||||
} else {
|
||||
if (passMissVO.getPassMiss() >= 5) {
|
||||
alertMessage = "패스워드가 5회 이상 틀려 로그인 할수 없습니다. 비밀번호를 재설정해주세요.";
|
||||
return goUserPassMissPage(redirectAttributes, loginVO, request, model, alertMessage);
|
||||
} /*
|
||||
* else if("A".equals(resultVO.getEmplyrSttusCode())){ //신청상태 alertMessage =
|
||||
* "신청하신 아이디가 현제 승인대기 상" + "태입니다."; return goUserLoginPage(redirectAttributes,
|
||||
* request, model, alertMessage); }else
|
||||
* if("B".equals(resultVO.getEmplyrSttusCode())){ //신청상태 alertMessage =
|
||||
* "아이디가 차단상태가 되어 사용할수 없습니다."; return goUserLoginPage(redirectAttributes,
|
||||
* request, model, alertMessage); }
|
||||
*/
|
||||
loginService.updatePassMissReset(loginVO);
|
||||
}
|
||||
}
|
||||
//아이디 미존재
|
||||
else {
|
||||
alertMessage = egovMessageSource.getMessage("fail.common.login");
|
||||
|
||||
// 로그인 실패시 해킹의심 IP 테이블에 등록_아이디없고 비밀번호도 틀린상황
|
||||
/// HackIpVO hackIpVO = new HackIpVO();
|
||||
hackIpVO.setHackUserId(loginVO.getId());
|
||||
hackIpVO.setAccessIp(EgovClntInfo.getClntIP(request));
|
||||
hackIpService.insertHackIp(hackIpVO);
|
||||
if (loginVO.getBeforeUrl().toString().contains("/web/user/login/login.do")) {
|
||||
redirectAttributes.addFlashAttribute("fail", true);
|
||||
return "redirect:/web/user/login/login.do";
|
||||
}
|
||||
|
||||
return goUserLoginPage(redirectAttributes, loginVO, request, model, alertMessage);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 일시 : 2023.07.26
|
||||
* 내용 : 로그인시 휴먼고객 redirect 기능 추가
|
||||
* 작업자 : 원영현 과장
|
||||
*/
|
||||
|
||||
if(resultVO.getDormantYn().equals("Y") || resultVO.getDormantYn() == "Y") {
|
||||
|
||||
return "redirect:/web/user/humanPage.do";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
boolean loginPolicyYn = true;
|
||||
|
||||
// 접속IP
|
||||
// userIp = EgovClntInfo.getClntIP(request);
|
||||
|
||||
// resultVO.siteId 의 각 로그인 ip를 조회함
|
||||
if (resultVO != null && resultVO.getId() != null && !resultVO.getId().equals("") && loginPolicyYn) {
|
||||
// 세션에다 ip 등록
|
||||
resultVO.setIp(userIp);
|
||||
// 2. spring security 연동
|
||||
request.getSession().setAttribute("LoginVO", resultVO);
|
||||
UsernamePasswordAuthenticationFilter springSecurity = null;
|
||||
ApplicationContext act = WebApplicationContextUtils.getRequiredWebApplicationContext(request.getSession().getServletContext());
|
||||
Map<String, UsernamePasswordAuthenticationFilter> beans = act.getBeansOfType(UsernamePasswordAuthenticationFilter.class);
|
||||
|
||||
if (beans.size() > 0) {
|
||||
springSecurity = (UsernamePasswordAuthenticationFilter) beans.values().toArray()[0];
|
||||
springSecurity.setUsernameParameter("egov_security_username");
|
||||
springSecurity.setPasswordParameter("egov_security_password");
|
||||
springSecurity.setRequiresAuthenticationRequestMatcher(new AntPathRequestMatcher(request.getServletContext().getContextPath() + "/egov_security_login", "POST"));
|
||||
} else {
|
||||
throw new IllegalStateException("No AuthenticationProcessingFilter");
|
||||
}
|
||||
|
||||
springSecurity.doFilter(new RequestWrapperForSecurity(request, resultVO.getUserSe() + resultVO.getId(), resultVO.getUniqId()), response, null);
|
||||
{ // 관리자 로그인 log 저장
|
||||
String uniqId = "";
|
||||
String ip = "";
|
||||
|
||||
/* Authenticated */
|
||||
LoginLog loginLog = new LoginLog();
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if (isAuthenticated.booleanValue()) {
|
||||
LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
uniqId = user.getUniqId();
|
||||
ip = EgovClntInfo.getClntIP(request);
|
||||
|
||||
HttpSession httpSession = request.getSession(true);
|
||||
{
|
||||
List<SiteManagerVO> siteManageList = new ArrayList<SiteManagerVO>();
|
||||
SiteManagerVO siteManagerVO = new SiteManagerVO();
|
||||
siteManagerVO.setFirstIndex(0);
|
||||
siteManagerVO.setRecordCountPerPage(100);
|
||||
siteManageList = egovSiteManagerService.selectSiteManagerList(siteManagerVO);
|
||||
httpSession.setAttribute("siteManageList", siteManageList);
|
||||
httpSession.setAttribute("loginId", user.getId()); // 자동완성 공통으로 쓰기위해
|
||||
httpSession.setAttribute("esntlId", user.getPassword());
|
||||
|
||||
// 최근검색어 조회 후 세션에 넣어줌
|
||||
/*
|
||||
* UserManageVO tempUserManageVO = new UserManageVO();
|
||||
* tempUserManageVO.setEmplyrId(user.getId()); tempUserManageVO =
|
||||
* userManageService.selectRecentSearchWord(tempUserManageVO);
|
||||
*
|
||||
* List<String> lisRecentSearch = new ArrayList<String>(); if(null !=
|
||||
* tempUserManageVO){ //ArrayList 로 세션 저장
|
||||
* Collections.addAll(lisRecentSearch,tempUserManageVO.getSearchWord().split(","
|
||||
* )) ; } httpSession.setAttribute("recentSearch", lisRecentSearch) ;
|
||||
*/
|
||||
}
|
||||
}
|
||||
/*
|
||||
* loginLog.setLoginId(uniqId); loginLog.setLoginIp(ip);
|
||||
* loginLog.setLoginMthd("I"); // 로그인:I, 로그아웃:O loginLog.setErrOccrrAt("N");
|
||||
* loginLog.setErrorCode(""); //로그인은 관리자, PC만 됨 loginLog.setUserAt("U"); //사용자
|
||||
* loginLog.setDeviceType("P"); //PC loginLog.setProgrmFileNm("adminLogin");
|
||||
* loginLog.setMenuNm("관리자로그인"); loginLogService.logInsertLoginLog(loginLog);
|
||||
*/
|
||||
|
||||
loginVO.getId();
|
||||
loginVO.getIp();
|
||||
loginVO.setMessage("로그인 성공되었습니다.");
|
||||
loginVO.setLoginYn("Y");
|
||||
loginService.insertActionLoginLog(loginVO);
|
||||
}
|
||||
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(loginVO.getId());
|
||||
mberGrdVO.setAmt("0");
|
||||
mberGrdVO.setMoid("");
|
||||
mberGrdService.mberGrdSaveByUserNoHist(mberGrdVO);
|
||||
// End
|
||||
|
||||
// 이벤트 결제 바로가기 로직 체크 Start
|
||||
String goEventPay = (String) commandMap.get("goEventPay");
|
||||
System.out.println("goEventPay : " + goEventPay);
|
||||
if (null != goEventPay && goEventPay.equals("Y")) {
|
||||
// 이벤트 결제 바로가기
|
||||
if (goEventPay(loginVO) == true) {
|
||||
loginVO.setBeforeUrl("/web/event/member/pay/PayView.do");
|
||||
}
|
||||
}
|
||||
// End
|
||||
|
||||
String beforeUrl = (String) commandMap.get("beforeUrl");
|
||||
|
||||
// 로그인 전 URL 호출 시
|
||||
if (loginVO.getBeforeUrl() != null && !("").equals(loginVO.getBeforeUrl())) {
|
||||
request.getSession().setAttribute("usrBeforeUrl", loginVO.getBeforeUrl());
|
||||
// 회원가입 시 메세지 처리
|
||||
if (loginVO.getMessage() != null && !("").equals(loginVO.getMessage())) {
|
||||
request.getSession().setAttribute("registMessage", loginVO.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
// 개인키 삭제
|
||||
// 성공시 웹페이지 분기로 인해 session에 페이지 타입을 넣어준다.
|
||||
request.getSession().setAttribute("pageType", "web");
|
||||
|
||||
return "blank"; // 성공 시 페이지.. (redirect 불가)
|
||||
|
||||
// uat/uia/actionMain.do 실제 성공시 무조건 좌측 메소드로 감.
|
||||
// return "forward:/web/main/mainPage.do";
|
||||
} else {
|
||||
String message = egovMessageSource.getMessage("fail.common.login");
|
||||
redirectAttributes.addFlashAttribute("beforeUrl", loginVO.getBeforeUrl());
|
||||
redirectAttributes.addFlashAttribute("message", message);
|
||||
return "redirect:/";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Method Name : selectUserSttusAjax
|
||||
@ -2124,314 +1801,6 @@ public class EgovLoginController {
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/web/user/login/actionSecurityLogin_ori_00.do")
|
||||
public String selectActionSecurityLoginWeb(@ModelAttribute("loginVO") LoginVO loginVO, HttpServletResponse response,
|
||||
HttpServletRequest request, @RequestParam Map<String, Object> commandMap, ModelMap model,
|
||||
HttpSession session, RedirectAttributes redirectAttributes) throws Exception {
|
||||
|
||||
String userIp = EgovClntInfo.getClntIP(request);
|
||||
HackIpVO hackIpVO = new HackIpVO();
|
||||
hackIpVO.setAccessIp(userIp);
|
||||
hackIpVO.setBlockYn("Y");
|
||||
if (null != hackIpService.selectHackIpVO(hackIpVO)) {
|
||||
String message = "차단된 아이피입니다. 관리자에게 문의해 주십시요.";
|
||||
redirectAttributes.addFlashAttribute("message", message);
|
||||
return "redirect:/";
|
||||
}
|
||||
|
||||
/*ScriptEngineManager engine = new ScriptEngineManager();*/
|
||||
|
||||
loginVO.setUserSe("USR");
|
||||
// 로그인 정보 check
|
||||
|
||||
if (loginVO.getId() == null || loginVO.getPassword() == null) {
|
||||
// 회원가입 시 로그인 처리
|
||||
LoginVO pLoginVO = (LoginVO) request.getAttribute("pLoginVO");
|
||||
if (pLoginVO == null) {
|
||||
// RSA 키 생성
|
||||
initRsa(request);
|
||||
/* return "redirect:/web/user/login/login.do"; */
|
||||
return "redirect:/";
|
||||
} else {
|
||||
loginVO.setId(pLoginVO.getId());
|
||||
loginVO.setPassword(pLoginVO.getPassword());
|
||||
loginVO.setBeforeUrl(pLoginVO.getBeforeUrl());
|
||||
loginVO.setMessage(pLoginVO.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
// 1. 일반 로그인 처리
|
||||
PrivateKey privateKey = (PrivateKey) session.getAttribute(EgovLoginController.RSA_WEB_KEY);
|
||||
if (privateKey == null) {
|
||||
initRsa(request);
|
||||
/*return "web/site/login/EgovLoginGnrlUsr";*/
|
||||
String message = "아이디와 비밀번호를 확인해주세요.";
|
||||
redirectAttributes.addFlashAttribute("message", message);
|
||||
System.out.println("======================================================");
|
||||
System.out.println("= RSA privateKey is null =");
|
||||
System.out.println("======================================================");
|
||||
return "redirect:/web/main/mainPage.do";
|
||||
}
|
||||
|
||||
LoginVO resultVO;
|
||||
// 복호화
|
||||
String id = "";
|
||||
try {
|
||||
//아이디 복호화 후 소문자 변환
|
||||
id = decryptRsa(privateKey, loginVO.getId()).toLowerCase();
|
||||
} catch (Exception e) {
|
||||
initRsa(request);
|
||||
// return "redirect:/web/user/login/login.do";
|
||||
if (loginVO.getBeforeUrl().toString().contains("/web/user/login/login.do")) {
|
||||
redirectAttributes.addFlashAttribute("fail", true);
|
||||
return "redirect:/web/user/login/login.do";
|
||||
}
|
||||
return "redirect:/";
|
||||
|
||||
}
|
||||
String password = decryptRsa(privateKey, loginVO.getPassword());
|
||||
loginVO.setId(id);
|
||||
loginVO.setIp(EgovClntInfo.getClntIP(request));
|
||||
loginVO.setPassword(password);
|
||||
loginVO.setUserSe("GNR");
|
||||
loginVO.setStatusAll("Y"); // 신청대기중인 사용자까지 조회
|
||||
|
||||
//기업회원 가입중인지 체크 - 기존 로그인 select는 MBER_STTUS = 'Y'가 하드코딩이라 로그인 전 기업회원 가입중인지 선 체크
|
||||
//암호화 2번 방지를 위한 LoginVO 생성
|
||||
LoginVO loginCmpChkVO = new LoginVO();
|
||||
loginCmpChkVO.setId(id);
|
||||
loginCmpChkVO.setIp(EgovClntInfo.getClntIP(request));
|
||||
loginCmpChkVO.setPassword(password);
|
||||
loginCmpChkVO.setUserSe("GNR");
|
||||
loginCmpChkVO.setStatusAll("Y"); // 신청대기중인 사용자까지 조회
|
||||
loginCmpChkVO.setEmplyrSttusCode("A"); // 신청대기중인 사용자까지 조회
|
||||
LoginVO cmpHstResultVO = loginService.actionLoginCmpChk(loginCmpChkVO);
|
||||
if(null != cmpHstResultVO.getId()) {
|
||||
//기업회원 정보 마지막 내역 조회
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
mberManageVO.setMberId(loginVO.getId());
|
||||
MberManageVO cmpChangeManageVO = mberManageService.selectCmpUsrHst(mberManageVO);
|
||||
if(null != cmpChangeManageVO) {
|
||||
if("01".equals(cmpChangeManageVO.getHstType())) { //가장 마지막 내역이 기업회원 가입일 시
|
||||
if("01".equals(cmpChangeManageVO.getHstSttus()) || "03".equals(cmpChangeManageVO.getHstSttus()) ) { //가장 마지막 기업회원 가입이 신청 또는 반려 상태일 시
|
||||
redirectAttributes.addFlashAttribute("mberId", loginVO.getId());
|
||||
//addFlashAttribute 일회성으로 인하여 membershipAttachDocBefore.do 이동 후
|
||||
//membershipAttachDoc.do로 바로 submit하여 새로고침 시 정보 유지되게 끔 처리
|
||||
return "redirect:/web/user/login/membershipAttachDocBefore.do";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//스팸처리 회원인지 mj_spam_member_info 해당 ID의 최근 1개 데이터 조회
|
||||
LoginVO loginSmiChkVO = new LoginVO();
|
||||
loginSmiChkVO.setId(id);
|
||||
loginSmiChkVO.setIp(EgovClntInfo.getClntIP(request));
|
||||
loginSmiChkVO.setPassword(password);
|
||||
loginSmiChkVO.setUserSe("GNR");
|
||||
loginSmiChkVO.setStatusAll("Y"); // 신청대기중인 사용자까지 조회
|
||||
loginSmiChkVO.setEmplyrSttusCode("B"); // 신청대기중인 사용자까지 조회
|
||||
LoginVO smiResultVO = loginService.actionLoginCmpChk(loginSmiChkVO);
|
||||
if(null != smiResultVO.getId()) {
|
||||
MberManageVO spamMberManageVO = new MberManageVO();
|
||||
spamMberManageVO.setMberId(loginVO.getId());
|
||||
MberManageVO spamMemberInfoVO = mberManageService.selectSpamMemberInfo(spamMberManageVO);
|
||||
if(null != spamMemberInfoVO) {
|
||||
redirectAttributes.addFlashAttribute("mberId", loginVO.getId());
|
||||
return "redirect:/web/user/login/loginRestrictionUseBefore.do";
|
||||
}
|
||||
}
|
||||
resultVO = loginService.actionLogin(loginVO);
|
||||
LoginVO passMissVO = loginService.selectPassMiss(loginVO);
|
||||
|
||||
String alertMessage = "";
|
||||
if (!"admin".equals(loginVO.getId())) {
|
||||
//아이디가 존재
|
||||
if(passMissVO != null) {
|
||||
// 로그인 실패 (
|
||||
if (null == resultVO.getId() && passMissVO.getPassMiss() < 5 ) {
|
||||
loginService.updatePassMissPlus(loginVO);
|
||||
alertMessage = egovMessageSource.getMessage("fail.common.login");
|
||||
|
||||
// 로그인 실패시 해킹의심 IP 테이블에 등록_아이디는 있지만 비밀번호가 틀린상황
|
||||
/// HackIpVO hackIpVO = new HackIpVO();
|
||||
hackIpVO.setHackUserId(loginVO.getId());
|
||||
hackIpVO.setAccessIp( EgovClntInfo.getClntIP(request));
|
||||
hackIpService.insertHackIp(hackIpVO);
|
||||
if (loginVO.getBeforeUrl().toString().contains("/web/user/login/login.do")) {
|
||||
redirectAttributes.addFlashAttribute("fail", true);
|
||||
return "redirect:/web/user/login/login.do";
|
||||
}
|
||||
|
||||
return goUserLoginPage(redirectAttributes, loginVO, request, model, alertMessage);
|
||||
} else {
|
||||
if (passMissVO.getPassMiss() >= 5) {
|
||||
alertMessage = "패스워드가 5회 이상 틀려 로그인 할수 없습니다. 비밀번호를 재설정해주세요.";
|
||||
return goUserPassMissPage(redirectAttributes, loginVO, request, model, alertMessage);
|
||||
} /*
|
||||
* else if("A".equals(resultVO.getEmplyrSttusCode())){ //신청상태 alertMessage =
|
||||
* "신청하신 아이디가 현제 승인대기 상" + "태입니다."; return goUserLoginPage(redirectAttributes,
|
||||
* request, model, alertMessage); }else
|
||||
* if("B".equals(resultVO.getEmplyrSttusCode())){ //신청상태 alertMessage =
|
||||
* "아이디가 차단상태가 되어 사용할수 없습니다."; return goUserLoginPage(redirectAttributes,
|
||||
* request, model, alertMessage); }
|
||||
*/
|
||||
loginService.updatePassMissReset(loginVO);
|
||||
}
|
||||
}
|
||||
//아이디 미존재
|
||||
else {
|
||||
alertMessage = egovMessageSource.getMessage("fail.common.login");
|
||||
|
||||
// 로그인 실패시 해킹의심 IP 테이블에 등록_아이디없고 비밀번호도 틀린상황
|
||||
/// HackIpVO hackIpVO = new HackIpVO();
|
||||
hackIpVO.setHackUserId(loginVO.getId());
|
||||
hackIpVO.setAccessIp(EgovClntInfo.getClntIP(request));
|
||||
hackIpService.insertHackIp(hackIpVO);
|
||||
if (loginVO.getBeforeUrl().toString().contains("/web/user/login/login.do")) {
|
||||
redirectAttributes.addFlashAttribute("fail", true);
|
||||
return "redirect:/web/user/login/login.do";
|
||||
}
|
||||
|
||||
return goUserLoginPage(redirectAttributes, loginVO, request, model, alertMessage);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 일시 : 2023.07.26
|
||||
* 내용 : 로그인시 휴먼고객 redirect 기능 추가
|
||||
* 작업자 : 원영현 과장
|
||||
*/
|
||||
|
||||
if(resultVO.getDormantYn().equals("Y") || resultVO.getDormantYn() == "Y") {
|
||||
|
||||
return "redirect:/web/user/humanPage.do";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
boolean loginPolicyYn = true;
|
||||
|
||||
// 접속IP
|
||||
// userIp = EgovClntInfo.getClntIP(request);
|
||||
|
||||
// resultVO.siteId 의 각 로그인 ip를 조회함
|
||||
if (resultVO != null && resultVO.getId() != null && !resultVO.getId().equals("") && loginPolicyYn) {
|
||||
// 세션에다 ip 등록
|
||||
resultVO.setIp(userIp);
|
||||
// 2. spring security 연동
|
||||
request.getSession().setAttribute("LoginVO", resultVO);
|
||||
UsernamePasswordAuthenticationFilter springSecurity = null;
|
||||
ApplicationContext act = WebApplicationContextUtils.getRequiredWebApplicationContext(request.getSession().getServletContext());
|
||||
Map<String, UsernamePasswordAuthenticationFilter> beans = act.getBeansOfType(UsernamePasswordAuthenticationFilter.class);
|
||||
|
||||
if (beans.size() > 0) {
|
||||
springSecurity = (UsernamePasswordAuthenticationFilter) beans.values().toArray()[0];
|
||||
springSecurity.setUsernameParameter("egov_security_username");
|
||||
springSecurity.setPasswordParameter("egov_security_password");
|
||||
springSecurity.setRequiresAuthenticationRequestMatcher(new AntPathRequestMatcher(request.getServletContext().getContextPath() + "/egov_security_login", "POST"));
|
||||
} else {
|
||||
throw new IllegalStateException("No AuthenticationProcessingFilter");
|
||||
}
|
||||
|
||||
springSecurity.doFilter(new RequestWrapperForSecurity(request, resultVO.getUserSe() + resultVO.getId(), resultVO.getUniqId()), response, null);
|
||||
{ // 관리자 로그인 log 저장
|
||||
String uniqId = "";
|
||||
String ip = "";
|
||||
|
||||
/* Authenticated */
|
||||
LoginLog loginLog = new LoginLog();
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if (isAuthenticated.booleanValue()) {
|
||||
LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
uniqId = user.getUniqId();
|
||||
ip = EgovClntInfo.getClntIP(request);
|
||||
|
||||
HttpSession httpSession = request.getSession(true);
|
||||
{
|
||||
List<SiteManagerVO> siteManageList = new ArrayList<SiteManagerVO>();
|
||||
SiteManagerVO siteManagerVO = new SiteManagerVO();
|
||||
siteManagerVO.setFirstIndex(0);
|
||||
siteManagerVO.setRecordCountPerPage(100);
|
||||
siteManageList = egovSiteManagerService.selectSiteManagerList(siteManagerVO);
|
||||
httpSession.setAttribute("siteManageList", siteManageList);
|
||||
httpSession.setAttribute("loginId", user.getId()); // 자동완성 공통으로 쓰기위해
|
||||
httpSession.setAttribute("esntlId", user.getPassword());
|
||||
|
||||
// 최근검색어 조회 후 세션에 넣어줌
|
||||
/*
|
||||
* UserManageVO tempUserManageVO = new UserManageVO();
|
||||
* tempUserManageVO.setEmplyrId(user.getId()); tempUserManageVO =
|
||||
* userManageService.selectRecentSearchWord(tempUserManageVO);
|
||||
*
|
||||
* List<String> lisRecentSearch = new ArrayList<String>(); if(null !=
|
||||
* tempUserManageVO){ //ArrayList 로 세션 저장
|
||||
* Collections.addAll(lisRecentSearch,tempUserManageVO.getSearchWord().split(","
|
||||
* )) ; } httpSession.setAttribute("recentSearch", lisRecentSearch) ;
|
||||
*/
|
||||
}
|
||||
}
|
||||
/*
|
||||
* loginLog.setLoginId(uniqId); loginLog.setLoginIp(ip);
|
||||
* loginLog.setLoginMthd("I"); // 로그인:I, 로그아웃:O loginLog.setErrOccrrAt("N");
|
||||
* loginLog.setErrorCode(""); //로그인은 관리자, PC만 됨 loginLog.setUserAt("U"); //사용자
|
||||
* loginLog.setDeviceType("P"); //PC loginLog.setProgrmFileNm("adminLogin");
|
||||
* loginLog.setMenuNm("관리자로그인"); loginLogService.logInsertLoginLog(loginLog);
|
||||
*/
|
||||
|
||||
loginVO.getId();
|
||||
loginVO.getIp();
|
||||
loginVO.setMessage("로그인 성공되었습니다.");
|
||||
loginVO.setLoginYn("Y");
|
||||
loginService.insertActionLoginLog(loginVO);
|
||||
}
|
||||
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(loginVO.getId());
|
||||
mberGrdVO.setAmt("0");
|
||||
mberGrdVO.setMoid("");
|
||||
mberGrdService.mberGrdSaveByUserNoHist(mberGrdVO);
|
||||
// End
|
||||
|
||||
// 이벤트 결제 바로가기 로직 체크 Start
|
||||
String goEventPay = (String) commandMap.get("goEventPay");
|
||||
System.out.println("goEventPay : " + goEventPay);
|
||||
if (null != goEventPay && goEventPay.equals("Y")) {
|
||||
// 이벤트 결제 바로가기
|
||||
if (goEventPay(loginVO) == true) {
|
||||
loginVO.setBeforeUrl("/web/event/member/pay/PayView.do");
|
||||
}
|
||||
}
|
||||
// End
|
||||
|
||||
String beforeUrl = (String) commandMap.get("beforeUrl");
|
||||
|
||||
// 로그인 전 URL 호출 시
|
||||
if (loginVO.getBeforeUrl() != null && !("").equals(loginVO.getBeforeUrl())) {
|
||||
request.getSession().setAttribute("usrBeforeUrl", loginVO.getBeforeUrl());
|
||||
// 회원가입 시 메세지 처리
|
||||
if (loginVO.getMessage() != null && !("").equals(loginVO.getMessage())) {
|
||||
request.getSession().setAttribute("registMessage", loginVO.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
// 개인키 삭제
|
||||
// 성공시 웹페이지 분기로 인해 session에 페이지 타입을 넣어준다.
|
||||
request.getSession().setAttribute("pageType", "web");
|
||||
|
||||
return "blank"; // 성공 시 페이지.. (redirect 불가)
|
||||
|
||||
// uat/uia/actionMain.do 실제 성공시 무조건 좌측 메소드로 감.
|
||||
// return "forward:/web/main/mainPage.do";
|
||||
} else {
|
||||
String message = egovMessageSource.getMessage("fail.common.login");
|
||||
redirectAttributes.addFlashAttribute("beforeUrl", loginVO.getBeforeUrl());
|
||||
redirectAttributes.addFlashAttribute("message", message);
|
||||
return "redirect:/";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -2739,15 +2108,6 @@ public class EgovLoginController {
|
||||
certLoginLogService.insertCertLoginLog(mberCertLoginLogVO, request);
|
||||
}
|
||||
|
||||
// 등급제 Start
|
||||
// 회원별 등급 적용
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setMberId(loginVO.getId());
|
||||
mberGrdVO.setAmt("0");
|
||||
mberGrdVO.setMoid("");
|
||||
mberGrdService.mberGrdSaveByUserNoHist(mberGrdVO);
|
||||
// End
|
||||
|
||||
// 이벤트 결제 바로가기 로직 체크 Start
|
||||
String goEventPay = (String) commandMap.get("goEventPay");
|
||||
System.out.println("goEventPay : " + goEventPay);
|
||||
|
||||
@ -68,7 +68,6 @@ import itn.let.mjo.msgsent.service.MjonMsgSentVO;
|
||||
import itn.let.mjo.pay.service.KmcVO;
|
||||
import itn.let.mjo.pay.service.MjonPayService;
|
||||
import itn.let.mjo.pay.service.MjonPayVO;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
import itn.let.sym.site.service.JoinSettingVO;
|
||||
import itn.let.uat.uia.service.AuthCertVO;
|
||||
@ -169,10 +168,6 @@ public class EgovMypageController {
|
||||
@Resource(name = "egovSiteManagerService")
|
||||
EgovSiteManagerService egovSiteManagerService;
|
||||
|
||||
/** 등급제 관리 서비스 */
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
// /* CertLoginLogService */
|
||||
@Resource(name = "CertLoginLogService")
|
||||
private CertLoginLogService certLoginLogService;
|
||||
@ -258,9 +253,6 @@ public class EgovMypageController {
|
||||
//1.시스템 기본 단가 정보 불러오기
|
||||
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo();
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
//2.사용자 개인 단가 정보 불러오기
|
||||
MberManageVO mberManageVO = new MberManageVO();
|
||||
if(!userId.equals("") && !author.equals("ROLE_ADMIN")) {
|
||||
|
||||
@ -1,83 +0,0 @@
|
||||
package itn.let.uss.olp.qim.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
/**
|
||||
* 설문항목관리를 처리하는 Service Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public interface EgovQustnrItemManageService {
|
||||
|
||||
/**
|
||||
* 설문템플릿(을)를 목록을 조회한다.
|
||||
* @param qustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrTmplatManageList(QustnrItemManageVO qustnrItemManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문항목 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrItemManageList(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 상세조회 한다.
|
||||
* @param qustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrItemManageDetail(QustnrItemManageVO qustnrItemManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrItemManageListCnt(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 등록한다.
|
||||
* @param qustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void insertQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 수정한다.
|
||||
* @param qustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void updateQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 삭제한다.
|
||||
* @param qustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void deleteQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception;
|
||||
|
||||
void insertItnQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception;
|
||||
|
||||
void deleteAllQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception;
|
||||
|
||||
|
||||
}
|
||||
@ -1,257 +0,0 @@
|
||||
package itn.let.uss.olp.qim.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 설문항목관리 VO Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class QustnrItemManageVO implements Serializable {
|
||||
|
||||
/**
|
||||
* serialVersionUID
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 설문문항 아이디 */
|
||||
private String qestnrQesitmId = "";
|
||||
|
||||
/** 설문지 아이디 */
|
||||
private String qestnrId = "";
|
||||
|
||||
/** 항목순번 */
|
||||
private String iemSn = "";
|
||||
|
||||
/** 항목내용 */
|
||||
private String qustnrIemId = "";
|
||||
|
||||
/** 설문항목아이디 */
|
||||
private String iemCn = "";
|
||||
|
||||
/** 키타답변여부 */
|
||||
private String etcAnswerAt = "";
|
||||
|
||||
/** 설문항목(을)를 아이디 */
|
||||
private String qestnrTmplatId = "";
|
||||
|
||||
/** 최초등록시점 */
|
||||
private String frstRegisterPnttm = "";
|
||||
|
||||
/** 최초등록아이디 */
|
||||
private String frstRegisterId = "";
|
||||
|
||||
/** 최종수정일 */
|
||||
private String lastUpdusrPnttm = "";
|
||||
|
||||
/** 최종수정자 아이디 */
|
||||
private String lastUpdusrId = "";
|
||||
|
||||
/** 컨트롤 명령어 */
|
||||
private String cmd = "";
|
||||
|
||||
/**
|
||||
* qestnrQesitmId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrQesitmId() {
|
||||
return qestnrQesitmId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrQesitmId attribute 값을 설정한다.
|
||||
* @return qestnrQesitmId String
|
||||
*/
|
||||
public void setQestnrQesitmId(String qestnrQesitmId) {
|
||||
this.qestnrQesitmId = qestnrQesitmId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrId() {
|
||||
return qestnrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrId attribute 값을 설정한다.
|
||||
* @return qestnrId String
|
||||
*/
|
||||
public void setQestnrId(String qestnrId) {
|
||||
this.qestnrId = qestnrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* iemSn attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getIemSn() {
|
||||
return iemSn;
|
||||
}
|
||||
|
||||
/**
|
||||
* iemSn attribute 값을 설정한다.
|
||||
* @return iemSn String
|
||||
*/
|
||||
public void setIemSn(String iemSn) {
|
||||
this.iemSn = iemSn;
|
||||
}
|
||||
|
||||
/**
|
||||
* qustnrIemId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQustnrIemId() {
|
||||
return qustnrIemId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qustnrIemId attribute 값을 설정한다.
|
||||
* @return qustnrIemId String
|
||||
*/
|
||||
public void setQustnrIemId(String qustnrIemId) {
|
||||
this.qustnrIemId = qustnrIemId;
|
||||
}
|
||||
|
||||
/**
|
||||
* iemCn attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getIemCn() {
|
||||
return iemCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* iemCn attribute 값을 설정한다.
|
||||
* @return iemCn String
|
||||
*/
|
||||
public void setIemCn(String iemCn) {
|
||||
this.iemCn = iemCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* etcAnswerAt attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getEtcAnswerAt() {
|
||||
return etcAnswerAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* etcAnswerAt attribute 값을 설정한다.
|
||||
* @return etcAnswerAt String
|
||||
*/
|
||||
public void setEtcAnswerAt(String etcAnswerAt) {
|
||||
this.etcAnswerAt = etcAnswerAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTmplatId() {
|
||||
return qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 값을 설정한다.
|
||||
* @return qestnrTmplatId String
|
||||
*/
|
||||
public void setQestnrTmplatId(String qestnrTmplatId) {
|
||||
this.qestnrTmplatId = qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterPnttm() {
|
||||
return frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 값을 설정한다.
|
||||
* @return frstRegisterPnttm String
|
||||
*/
|
||||
public void setFrstRegisterPnttm(String frstRegisterPnttm) {
|
||||
this.frstRegisterPnttm = frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterId() {
|
||||
return frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 값을 설정한다.
|
||||
* @return frstRegisterId String
|
||||
*/
|
||||
public void setFrstRegisterId(String frstRegisterId) {
|
||||
this.frstRegisterId = frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrPnttm() {
|
||||
return lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 값을 설정한다.
|
||||
* @return lastUpdusrPnttm String
|
||||
*/
|
||||
public void setLastUpdusrPnttm(String lastUpdusrPnttm) {
|
||||
this.lastUpdusrPnttm = lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrId() {
|
||||
return lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 값을 설정한다.
|
||||
* @return lastUpdusrId String
|
||||
*/
|
||||
public void setLastUpdusrId(String lastUpdusrId) {
|
||||
this.lastUpdusrId = lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* cmd attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getCmd() {
|
||||
return cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* cmd attribute 값을 설정한다.
|
||||
* @return cmd String
|
||||
*/
|
||||
public void setCmd(String cmd) {
|
||||
this.cmd = cmd;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1,134 +0,0 @@
|
||||
package itn.let.uss.olp.qim.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qim.service.EgovQustnrItemManageService;
|
||||
import itn.let.uss.olp.qim.service.QustnrItemManageVO;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
/**
|
||||
* 설문항목관리를 처리하는 ServiceImpl Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Service("egovQustnrItemManageService")
|
||||
public class EgovQustnrItemManageServiceImpl extends EgovAbstractServiceImpl implements EgovQustnrItemManageService{
|
||||
|
||||
@Resource(name="qustnrItemManageDao")
|
||||
private QustnrItemManageDao dao;
|
||||
|
||||
@Resource(name="egovQustnrItemManageIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
/**
|
||||
* 설문템플릿(을)를 목록을 조회한다.
|
||||
* @param qustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrTmplatManageList(QustnrItemManageVO qustnrItemManageVO) throws Exception{
|
||||
return dao.selectQustnrTmplatManageList(qustnrItemManageVO);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 설문항목 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrItemManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrItemManageList(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 상세조회 한다.
|
||||
* @param QustnrItemManage - 회정정보가 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrItemManageDetail(QustnrItemManageVO qustnrItemManageVO) throws Exception{
|
||||
return dao.selectQustnrItemManageDetail(qustnrItemManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public int selectQustnrItemManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrItemManageListCnt(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 등록한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void insertQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception {
|
||||
String sMakeId = idgenService.getNextStringId();
|
||||
|
||||
qustnrItemManageVO.setQustnrIemId(sMakeId);
|
||||
|
||||
dao.insertQustnrItemManage(qustnrItemManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 수정한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void updateQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception{
|
||||
dao.updateQustnrItemManage(qustnrItemManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 삭제한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void deleteQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception{
|
||||
dao.deleteQustnrItemManage(qustnrItemManageVO);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void insertItnQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception {
|
||||
String sMakeId = idgenService.getNextStringId();
|
||||
qustnrItemManageVO.setQustnrIemId(sMakeId);
|
||||
dao.insertItnQustnrItemManage(qustnrItemManageVO);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void deleteAllQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception {
|
||||
dao.deleteAllQustnrItemManage(qustnrItemManageVO);
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,114 +0,0 @@
|
||||
package itn.let.uss.olp.qim.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qim.service.QustnrItemManageVO;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
/**
|
||||
* 설문항목관리를 처리하는 Dao Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Repository("qustnrItemManageDao")
|
||||
public class QustnrItemManageDao extends EgovAbstractDAO {
|
||||
|
||||
|
||||
/**
|
||||
* 설문템플릿(을)를 목록을 조회한다.
|
||||
* @param qustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrTmplatManageList(QustnrItemManageVO qustnrItemManageVO) throws Exception{
|
||||
return list("QustnrItemManage.selectQustnrTmplatManage", qustnrItemManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrItemManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return list("QustnrItemManage.selectQustnrItemManage", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 상세조회 한다.
|
||||
* @param qustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrItemManageDetail(QustnrItemManageVO qustnrItemManageVO) throws Exception{
|
||||
return list("QustnrItemManage.selectQustnrItemManageDetail", qustnrItemManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrItemManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return (Integer)select("QustnrItemManage.selectQustnrItemManageCnt", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 등록한다.
|
||||
* @param qqustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void insertQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception{
|
||||
insert("QustnrItemManage.insertQustnrItemManage", qustnrItemManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 수정한다.
|
||||
* @param qustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void updateQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception{
|
||||
insert("QustnrItemManage.updateQustnrItemManage", qustnrItemManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를(을) 삭제한다.
|
||||
* @param qustnrItemManageVO - 설문항목 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void deleteQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) throws Exception{
|
||||
//설문조사(설문결과) 삭제
|
||||
delete("QustnrItemManage.deleteQustnrRespondInfo", qustnrItemManageVO);
|
||||
|
||||
//설문항목 삭제
|
||||
insert("QustnrItemManage.deleteQustnrItemManage", qustnrItemManageVO);
|
||||
|
||||
}
|
||||
|
||||
public void insertItnQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) {
|
||||
insert("QustnrItemManage.insertItnQustnrItemManage", qustnrItemManageVO);
|
||||
|
||||
}
|
||||
|
||||
public void deleteAllQustnrItemManage(QustnrItemManageVO qustnrItemManageVO) {
|
||||
//설문조사(설문결과) 삭제
|
||||
delete("QustnrItemManage.deleteAllQustnrRespondInfo", qustnrItemManageVO);
|
||||
//설문항목 삭제
|
||||
insert("QustnrItemManage.deleteAllQustnrItemManage", qustnrItemManageVO);
|
||||
}
|
||||
}
|
||||
@ -1,397 +0,0 @@
|
||||
package itn.let.uss.olp.qim.web;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||
import org.springmodules.validation.commons.DefaultBeanValidator;
|
||||
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.com.cmm.EgovMessageSource;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.com.cmm.util.RedirectUrlMaker;
|
||||
import itn.let.uss.olp.qim.service.EgovQustnrItemManageService;
|
||||
import itn.let.uss.olp.qim.service.QustnrItemManageVO;
|
||||
import itn.let.uss.olp.qqm.service.EgovQustnrQestnManageService;
|
||||
import itn.let.uss.olp.qqm.service.QustnrQestnManageVO;
|
||||
/**
|
||||
* 설문항목관리를 처리하는 Controller Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Controller
|
||||
public class EgovQustnrItemManageController {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(EgovQustnrItemManageController.class);
|
||||
|
||||
@Autowired
|
||||
private DefaultBeanValidator beanValidator;
|
||||
|
||||
/** EgovMessageSource */
|
||||
@Resource(name="egovMessageSource")
|
||||
EgovMessageSource egovMessageSource;
|
||||
|
||||
@Resource(name = "egovQustnrItemManageService")
|
||||
private EgovQustnrItemManageService egovQustnrItemManageService;
|
||||
|
||||
/** EgovPropertyService */
|
||||
@Resource(name = "propertiesService")
|
||||
protected EgovPropertyService propertiesService;
|
||||
|
||||
@Resource(name = "egovQustnrQestnManageService")
|
||||
private EgovQustnrQestnManageService egovQustnrQestnManageService;
|
||||
|
||||
/**
|
||||
* 설문항목 팝업 목록을 조회한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrItemManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qim/EgovQustnrItemManageListPopup"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qim/EgovQustnrItemManageListPopup.do")
|
||||
public String EgovQustnrItemManageListPopup(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
QustnrItemManageVO qustnrItemManageVO,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
if(sCmd.equals("del")){
|
||||
egovQustnrItemManageService.deleteQustnrItemManage(qustnrItemManageVO);
|
||||
}
|
||||
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
model.addAttribute("resultList", egovQustnrItemManageService.selectQustnrItemManageList(searchVO));
|
||||
|
||||
model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String)commandMap.get("searchKeyword"));
|
||||
model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String)commandMap.get("searchCondition"));
|
||||
|
||||
int totCnt = (Integer)egovQustnrItemManageService.selectQustnrItemManageListCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
return "/uss/olp/qim/EgovQustnrItemManageListPopup";
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목 목록을 조회한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrItemManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qim/EgovQustnrItemManageList"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qim/EgovQustnrItemManageList.do")
|
||||
public String EgovQustnrItemManageList(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
QustnrItemManageVO qustnrItemManageVO,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
|
||||
String sSearchMode = commandMap.get("searchMode") == null ? "" : (String)commandMap.get("searchMode");
|
||||
|
||||
//설문문항에 넘어온 건에 대해 조회
|
||||
if(sSearchMode.equals("Y")){
|
||||
searchVO.setSearchCondition("QUSTNR_QESITM_ID");//qestnrQesitmId
|
||||
searchVO.setSearchKeyword(qustnrItemManageVO.getQestnrQesitmId());
|
||||
}
|
||||
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
model.addAttribute("resultList", egovQustnrItemManageService.selectQustnrItemManageList(searchVO));
|
||||
|
||||
model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String)commandMap.get("searchKeyword"));
|
||||
model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String)commandMap.get("searchCondition"));
|
||||
|
||||
int totCnt = (Integer)egovQustnrItemManageService.selectQustnrItemManageListCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
return "/uss/olp/qim/EgovQustnrItemManageList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목 목록을 상세조회 조회한다.
|
||||
* @param searchVO
|
||||
* @param qustnrItemManageVO
|
||||
* @param commandMap
|
||||
* @param model
|
||||
* @return "/uss/olp/qim/EgovQustnrItemManageDetail"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qim/EgovQustnrItemManageDetail.do")
|
||||
public String EgovQustnrItemManageDetail(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
QustnrItemManageVO qustnrItemManageVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
|
||||
String sLocationUrl = "/uss/olp/qim/EgovQustnrItemManageDetail";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
|
||||
if(sCmd.equals("del")){
|
||||
egovQustnrItemManageService.deleteQustnrItemManage(qustnrItemManageVO);
|
||||
sLocationUrl = "redirect:/uss/olp/qim/EgovQustnrItemManageList.do";
|
||||
}else{
|
||||
model.addAttribute("resultList", egovQustnrItemManageService.selectQustnrItemManageDetail(qustnrItemManageVO));
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를 수정한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrItemManageVO
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/uss/olp/qim/EgovQustnrItemManageModify"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qim/EgovQustnrItemManageModify.do")
|
||||
public String QustnrItemManageModify(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
@ModelAttribute("qustnrItemManageVO") QustnrItemManageVO qustnrItemManageVO,
|
||||
BindingResult bindingResult,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if(!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
String sLocationUrl = "/uss/olp/qim/EgovQustnrItemManageModify";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
|
||||
if(sCmd.equals("save")){
|
||||
|
||||
//서버 validate 체크
|
||||
beanValidator.validate(qustnrItemManageVO, bindingResult);
|
||||
if(bindingResult.hasErrors()){
|
||||
//설문항목(을)를 정보 불러오기
|
||||
model.addAttribute("listQustnrTmplat", egovQustnrItemManageService.selectQustnrTmplatManageList(qustnrItemManageVO));
|
||||
//게시물 불러오기
|
||||
model.addAttribute("resultList", egovQustnrItemManageService.selectQustnrItemManageDetail(qustnrItemManageVO));
|
||||
|
||||
return "/uss/olp/qim/EgovQustnrItemManageModify";
|
||||
}
|
||||
|
||||
//아이디 설정
|
||||
qustnrItemManageVO.setFrstRegisterId((String)loginVO.getUniqId());
|
||||
qustnrItemManageVO.setLastUpdusrId((String)loginVO.getUniqId());
|
||||
|
||||
egovQustnrItemManageService.updateQustnrItemManage(qustnrItemManageVO);
|
||||
sLocationUrl = "redirect:/uss/olp/qim/EgovQustnrItemManageList.do";
|
||||
}else{
|
||||
model.addAttribute("resultList", egovQustnrItemManageService.selectQustnrItemManageDetail(qustnrItemManageVO));
|
||||
|
||||
//설문항목(을)를 정보 불러오기
|
||||
model.addAttribute("listQustnrTmplat", egovQustnrItemManageService.selectQustnrTmplatManageList(qustnrItemManageVO));
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문항목를 등록한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrItemManageVO
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/uss/olp/qim/EgovQustnrItemManageRegist"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qim/EgovQustnrItemManageRegist.do")
|
||||
public String insertQustnrItemManageRegist(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
@ModelAttribute("qustnrItemManageVO") QustnrItemManageVO qustnrItemManageVO,
|
||||
QustnrQestnManageVO qustnrQestnManageVO,
|
||||
BindingResult bindingResult,
|
||||
ModelMap model,
|
||||
RedirectAttributes redirectAttributes
|
||||
)
|
||||
throws Exception {
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if(!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
String sLocationUrl = "/uss/olp/qim/EgovQustnrItemManageRegist";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
LOGGER.info("cmd => {}", sCmd);
|
||||
//ITN수정
|
||||
|
||||
if(sCmd.equals("save")){
|
||||
|
||||
//서버 validate 체크
|
||||
beanValidator.validate(qustnrItemManageVO, bindingResult);
|
||||
if(bindingResult.hasErrors()){
|
||||
//설문항목(을)를 정보 불러오기
|
||||
model.addAttribute("listQustnrTmplat", egovQustnrItemManageService.selectQustnrTmplatManageList(qustnrItemManageVO));
|
||||
return "/uss/olp/qim/EgovQustnrItemManageRegist";
|
||||
}
|
||||
|
||||
//아이디 설정
|
||||
qustnrItemManageVO.setFrstRegisterId((String)loginVO.getUniqId());
|
||||
qustnrItemManageVO.setLastUpdusrId((String)loginVO.getUniqId());
|
||||
|
||||
egovQustnrItemManageService.insertQustnrItemManage(qustnrItemManageVO);
|
||||
sLocationUrl = "redirect:/uss/olp/qim/EgovQustnrItemManageList.do&cmd="+sCmd;
|
||||
}else if(sCmd.equals("regi")){ //최초저장
|
||||
//서버 validate 체크
|
||||
qustnrItemManageVO.setIemSn("1"); //validate temp
|
||||
beanValidator.validate(qustnrItemManageVO, bindingResult);
|
||||
if(bindingResult.hasErrors()){
|
||||
//설문항목(을)를 정보 불러오기
|
||||
model.addAttribute("listQustnrTmplat", egovQustnrItemManageService.selectQustnrTmplatManageList(qustnrItemManageVO));
|
||||
return "/uss/olp/qim/EgovQustnrItemManageRegist";
|
||||
}
|
||||
|
||||
//설문질문 저장
|
||||
qustnrQestnManageVO.setFrstRegisterId((String)loginVO.getUniqId());
|
||||
qustnrQestnManageVO.setLastUpdusrId((String)loginVO.getUniqId());
|
||||
if(qustnrItemManageVO.getQestnrQesitmId() == ""){ //설문최초 등록
|
||||
String qustnrQesitmId = egovQustnrQestnManageService.insertGetIdQustnrQestnManage(qustnrQestnManageVO);
|
||||
qustnrItemManageVO.setQestnrQesitmId(qustnrQesitmId);
|
||||
}else{
|
||||
egovQustnrQestnManageService.updateQustnrQestnManage(qustnrQestnManageVO);
|
||||
qustnrItemManageVO.setQestnrQesitmId(qustnrQestnManageVO.getQestnrQesitmId());
|
||||
}
|
||||
|
||||
//응답문항 저장
|
||||
qustnrItemManageVO.setFrstRegisterId((String)loginVO.getUniqId());
|
||||
qustnrItemManageVO.setLastUpdusrId((String)loginVO.getUniqId());
|
||||
|
||||
String[] itemCns = qustnrItemManageVO.getIemCn().split(",");
|
||||
int itemSn = 1;
|
||||
for (String itemCn : itemCns ){
|
||||
qustnrItemManageVO.setIemCn(itemCn);
|
||||
qustnrItemManageVO.setIemSn(itemSn+"");
|
||||
|
||||
egovQustnrItemManageService.insertItnQustnrItemManage(qustnrItemManageVO);
|
||||
itemSn ++;
|
||||
}
|
||||
sLocationUrl = "/uss/olp/qmc/EgovQustnrManageModify.do?qestnrId="+qustnrQestnManageVO.getQestnrId()+"&cmd="+sCmd;
|
||||
//QustnrManageVO qustnrManageVO = new QustnrManageVO();
|
||||
//qustnrManageVO.setQestnrId(qustnrQestnManageVO.getQestnrId());
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert"));
|
||||
//redirectAttributes.addFlashAttribute("qustnrManageVO", qustnrManageVO); //파라미터숨기기
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker(sLocationUrl);
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
}else if(sCmd.equals("upda")){ //수정
|
||||
//서버 validate 체크
|
||||
qustnrItemManageVO.setIemSn("1"); //validate temp
|
||||
beanValidator.validate(qustnrItemManageVO, bindingResult);
|
||||
if(bindingResult.hasErrors()){
|
||||
//설문항목(을)를 정보 불러오기
|
||||
model.addAttribute("listQustnrTmplat", egovQustnrItemManageService.selectQustnrTmplatManageList(qustnrItemManageVO));
|
||||
return "/uss/olp/qim/EgovQustnrItemManageRegist";
|
||||
}
|
||||
|
||||
//설문질문 업데이트
|
||||
qustnrQestnManageVO.setFrstRegisterId((String)loginVO.getUniqId());
|
||||
qustnrQestnManageVO.setLastUpdusrId((String)loginVO.getUniqId());
|
||||
egovQustnrQestnManageService.updateQustnrQestnManage(qustnrQestnManageVO);
|
||||
|
||||
//응답문항 업데이트
|
||||
egovQustnrItemManageService.deleteAllQustnrItemManage(qustnrItemManageVO);
|
||||
qustnrItemManageVO.setFrstRegisterId((String)loginVO.getUniqId());
|
||||
qustnrItemManageVO.setLastUpdusrId((String)loginVO.getUniqId());
|
||||
String[] itemCns = qustnrItemManageVO.getIemCn().split(",");
|
||||
int itemSn = 1;
|
||||
for (String itemCn : itemCns ){
|
||||
qustnrItemManageVO.setIemCn(itemCn);
|
||||
qustnrItemManageVO.setIemSn(itemSn+"");
|
||||
egovQustnrItemManageService.insertQustnrItemManage(qustnrItemManageVO);
|
||||
itemSn ++;
|
||||
}
|
||||
sLocationUrl = "/uss/olp/qmc/EgovQustnrManageModify.do?qestnrId="+qustnrQestnManageVO.getQestnrId()+"&cmd="+sCmd;
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update"));
|
||||
//QustnrManageVO qustnrManageVO = new QustnrManageVO();
|
||||
//qustnrManageVO.setQestnrId(qustnrQestnManageVO.getQestnrId());
|
||||
//redirectAttributes.addFlashAttribute("qustnrManageVO", qustnrManageVO); //파라미터숨기기
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker(sLocationUrl);
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
}else{
|
||||
model.addAttribute("listQustnrTmplat", egovQustnrItemManageService.selectQustnrTmplatManageList(qustnrItemManageVO));
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1,87 +0,0 @@
|
||||
package itn.let.uss.olp.qmc.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
/**
|
||||
* 설문관리를 처리하는 Service Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public interface EgovQustnrManageService {
|
||||
|
||||
/**
|
||||
* 설문템플릿 목록을 조회한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrTmplatManageList(QustnrManageVO qustnrManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문관리 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrManageList(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 상세조회 한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrManageDetail(QustnrManageVO qustnrManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문관리를 상세조회(Model) 한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public QustnrManageVO selectQustnrManageDetailModel(QustnrManageVO qustnrManageVO) throws Exception ;
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrManageListCnt(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 등록한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void insertQustnrManage(QustnrManageVO qustnrManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 수정한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void updateQustnrManage(QustnrManageVO qustnrManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 삭제한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void deleteQustnrManage(QustnrManageVO qustnrManageVO) throws Exception;
|
||||
|
||||
|
||||
}
|
||||
@ -1,325 +0,0 @@
|
||||
package itn.let.uss.olp.qmc.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 설문관리 VO Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class QustnrManageVO implements Serializable {
|
||||
|
||||
/**
|
||||
* serialVersionUID
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 설문지ID */
|
||||
private String qestnrId = "";
|
||||
|
||||
/** 설문제목 */
|
||||
private String qestnrSj = "";
|
||||
|
||||
/** 설문목적 */
|
||||
private String qestnrPurps = "";
|
||||
|
||||
/** 설문작성안내내용 */
|
||||
private String qestnrWritngGuidanceCn = "";
|
||||
|
||||
/** 설문시작일자 */
|
||||
private String qestnrBeginDe = "";
|
||||
|
||||
/** 설문종료일자 */
|
||||
private String qestnrEndDe = "";
|
||||
|
||||
/** 설문대상 */
|
||||
private String qestnrTrget = "";
|
||||
|
||||
/** 설문보기대상 */
|
||||
private String qestnrViewTrget = "";
|
||||
|
||||
/** 설문시작일자 */
|
||||
private String qestnrTmplatId = "";
|
||||
|
||||
/** 설문템플릿유형 */
|
||||
private String qestnrTmplatTy = "";
|
||||
|
||||
/** 최초등록시점 */
|
||||
private String frstRegisterPnttm = "";
|
||||
|
||||
/** 최초등록자아이디 */
|
||||
private String frstRegisterId = "";
|
||||
|
||||
/** 최종수정시점 */
|
||||
private String lastUpdusrPnttm = "";
|
||||
|
||||
/** 최종수정자아이디 */
|
||||
private String lastUpdusrId = "";
|
||||
|
||||
private String qustnrQesitmCnt = "";
|
||||
private String rrspnsResultCnt = "";
|
||||
private String sttus = "";
|
||||
|
||||
private String siteId = "";
|
||||
|
||||
|
||||
/**
|
||||
* qestnrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrId() {
|
||||
return qestnrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrId attribute 값을 설정한다.
|
||||
* @return qestnrId String
|
||||
*/
|
||||
public void setQestnrId(String qestnrId) {
|
||||
this.qestnrId = qestnrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrSj attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrSj() {
|
||||
return qestnrSj;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrSj attribute 값을 설정한다.
|
||||
* @return qestnrSj String
|
||||
*/
|
||||
public void setQestnrSj(String qestnrSj) {
|
||||
this.qestnrSj = qestnrSj;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrPurps attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrPurps() {
|
||||
return qestnrPurps;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrPurps attribute 값을 설정한다.
|
||||
* @return qestnrPurps String
|
||||
*/
|
||||
public void setQestnrPurps(String qestnrPurps) {
|
||||
this.qestnrPurps = qestnrPurps;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrWritngGuidanceCn attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrWritngGuidanceCn() {
|
||||
return qestnrWritngGuidanceCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrWritngGuidanceCn attribute 값을 설정한다.
|
||||
* @return qestnrWritngGuidanceCn String
|
||||
*/
|
||||
public void setQestnrWritngGuidanceCn(String qestnrWritngGuidanceCn) {
|
||||
this.qestnrWritngGuidanceCn = qestnrWritngGuidanceCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrBeginDe attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrBeginDe() {
|
||||
return qestnrBeginDe;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrBeginDe attribute 값을 설정한다.
|
||||
* @return qestnrBeginDe String
|
||||
*/
|
||||
public void setQestnrBeginDe(String qestnrBeginDe) {
|
||||
this.qestnrBeginDe = qestnrBeginDe;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrEndDe attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrEndDe() {
|
||||
return qestnrEndDe;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrEndDe attribute 값을 설정한다.
|
||||
* @return qestnrEndDe String
|
||||
*/
|
||||
public void setQestnrEndDe(String qestnrEndDe) {
|
||||
this.qestnrEndDe = qestnrEndDe;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTrget attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTrget() {
|
||||
return qestnrTrget;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTrget attribute 값을 설정한다.
|
||||
* @return qestnrTrget String
|
||||
*/
|
||||
public void setQestnrTrget(String qestnrTrget) {
|
||||
this.qestnrTrget = qestnrTrget;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTmplatId() {
|
||||
return qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 값을 설정한다.
|
||||
* @return qestnrTmplatId String
|
||||
*/
|
||||
public void setQestnrTmplatId(String qestnrTmplatId) {
|
||||
this.qestnrTmplatId = qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatTy attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTmplatTy() {
|
||||
return qestnrTmplatTy;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatTy attribute 값을 설정한다.
|
||||
* @return qestnrTmplatTy String
|
||||
*/
|
||||
public void setQestnrTmplatTy(String qestnrTmplatTy) {
|
||||
this.qestnrTmplatTy = qestnrTmplatTy;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterPnttm() {
|
||||
return frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 값을 설정한다.
|
||||
* @return frstRegisterPnttm String
|
||||
*/
|
||||
public void setFrstRegisterPnttm(String frstRegisterPnttm) {
|
||||
this.frstRegisterPnttm = frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterId() {
|
||||
return frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 값을 설정한다.
|
||||
* @return frstRegisterId String
|
||||
*/
|
||||
public void setFrstRegisterId(String frstRegisterId) {
|
||||
this.frstRegisterId = frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrPnttm() {
|
||||
return lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 값을 설정한다.
|
||||
* @return lastUpdusrPnttm String
|
||||
*/
|
||||
public void setLastUpdusrPnttm(String lastUpdusrPnttm) {
|
||||
this.lastUpdusrPnttm = lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrId() {
|
||||
return lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 값을 설정한다.
|
||||
* @return lastUpdusrId String
|
||||
*/
|
||||
public void setLastUpdusrId(String lastUpdusrId) {
|
||||
this.lastUpdusrId = lastUpdusrId;
|
||||
}
|
||||
|
||||
public String getQustnrQesitmCnt() {
|
||||
return qustnrQesitmCnt;
|
||||
}
|
||||
|
||||
public void setQustnrQesitmCnt(String qustnrQesitmCnt) {
|
||||
this.qustnrQesitmCnt = qustnrQesitmCnt;
|
||||
}
|
||||
|
||||
public String getRrspnsResultCnt() {
|
||||
return rrspnsResultCnt;
|
||||
}
|
||||
|
||||
public void setRrspnsResultCnt(String rrspnsResultCnt) {
|
||||
this.rrspnsResultCnt = rrspnsResultCnt;
|
||||
}
|
||||
|
||||
public String getSttus() {
|
||||
return sttus;
|
||||
}
|
||||
|
||||
public void setSttus(String sttus) {
|
||||
this.sttus = sttus;
|
||||
}
|
||||
|
||||
public String getQestnrViewTrget() {
|
||||
return qestnrViewTrget;
|
||||
}
|
||||
|
||||
public void setQestnrViewTrget(String qestnrViewTrget) {
|
||||
this.qestnrViewTrget = qestnrViewTrget;
|
||||
}
|
||||
|
||||
public String getSiteId() {
|
||||
return siteId;
|
||||
}
|
||||
|
||||
public void setSiteId(String siteId) {
|
||||
this.siteId = siteId;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,129 +0,0 @@
|
||||
package itn.let.uss.olp.qmc.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qmc.service.EgovQustnrManageService;
|
||||
import itn.let.uss.olp.qmc.service.QustnrManageVO;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
/**
|
||||
* 설문관리를 처리하는 ServiceImpl Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Service("egovQustnrManageService")
|
||||
public class EgovQustnrManageServiceImpl extends EgovAbstractServiceImpl implements EgovQustnrManageService{
|
||||
|
||||
@Resource(name="qustnrManageDao")
|
||||
private QustnrManageDao dao;
|
||||
|
||||
@Resource(name="egovQustnrManageIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
|
||||
/**
|
||||
* 설문템플릿 목록을 조회한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrTmplatManageList(QustnrManageVO qustnrManageVO) throws Exception{
|
||||
return dao.selectQustnrTmplatManageList(qustnrManageVO);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 설문관리 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrManageList(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를 상세조회(Model) 한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public QustnrManageVO selectQustnrManageDetailModel(QustnrManageVO qustnrManageVO) throws Exception {
|
||||
return dao.selectQustnrManageDetailModel(qustnrManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 상세조회 한다.
|
||||
* @param QustnrManage - 회정정보가 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrManageDetail(QustnrManageVO qustnrManageVO) throws Exception{
|
||||
return dao.selectQustnrManageDetail(qustnrManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public int selectQustnrManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrManageListCnt(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 등록한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void insertQustnrManage(QustnrManageVO qustnrManageVO) throws Exception {
|
||||
String sMakeId = idgenService.getNextStringId();
|
||||
|
||||
qustnrManageVO.setQestnrId(sMakeId);
|
||||
|
||||
dao.insertQustnrManage(qustnrManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 수정한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void updateQustnrManage(QustnrManageVO qustnrManageVO) throws Exception{
|
||||
dao.updateQustnrManage(qustnrManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 삭제한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void deleteQustnrManage(QustnrManageVO qustnrManageVO) throws Exception{
|
||||
dao.deleteQustnrManage(qustnrManageVO);
|
||||
}
|
||||
}
|
||||
@ -1,115 +0,0 @@
|
||||
package itn.let.uss.olp.qmc.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qmc.service.QustnrManageVO;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
/**
|
||||
* 설문관리를 처리하는 Dao Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Repository("qustnrManageDao")
|
||||
public class QustnrManageDao extends EgovAbstractDAO {
|
||||
|
||||
/**
|
||||
* 설문템플릿 목록을 조회한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrTmplatManageList(QustnrManageVO qustnrManageVO) throws Exception{
|
||||
return list("QustnrManage.selectQustnrTmplatManage", qustnrManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return list("QustnrManage.selectQustnrManage", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를 상세조회(Model) 한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public QustnrManageVO selectQustnrManageDetailModel(QustnrManageVO qustnrManageVO) throws Exception {
|
||||
return (QustnrManageVO) select("QustnrManage.selectQustnrManageDetailModel", qustnrManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 상세조회 한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrManageDetail(QustnrManageVO qustnrManageVO) throws Exception{
|
||||
return list("QustnrManage.selectQustnrManageDetail", qustnrManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return (Integer)select("QustnrManage.selectQustnrManageCnt", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 등록한다.
|
||||
* @param qqustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void insertQustnrManage(QustnrManageVO qustnrManageVO) throws Exception{
|
||||
insert("QustnrManage.insertQustnrManage", qustnrManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 수정한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void updateQustnrManage(QustnrManageVO qustnrManageVO) throws Exception{
|
||||
insert("QustnrManage.updateQustnrManage", qustnrManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를(을) 삭제한다.
|
||||
* @param qustnrManageVO - 설문관리 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void deleteQustnrManage(QustnrManageVO qustnrManageVO) throws Exception{
|
||||
//설문응답자 삭제
|
||||
delete("QustnrManage.deleteQustnrRespondManage", qustnrManageVO);
|
||||
//설문조사(설문결과) 삭제
|
||||
delete("QustnrManage.deleteQustnrRespondInfo", qustnrManageVO);
|
||||
//설문항목 삭제
|
||||
delete("QustnrManage.deleteQustnrItemManage", qustnrManageVO);
|
||||
//설문문항 삭제
|
||||
delete("QustnrManage.deleteQustnrQestnManage", qustnrManageVO);
|
||||
|
||||
//설문관리 삭제
|
||||
delete("QustnrManage.deleteQustnrManage", qustnrManageVO);
|
||||
}
|
||||
}
|
||||
@ -1,519 +0,0 @@
|
||||
package itn.let.uss.olp.qmc.web;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||
import org.springmodules.validation.commons.DefaultBeanValidator;
|
||||
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import itn.com.cmm.ComDefaultCodeVO;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.com.cmm.EgovMessageSource;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.com.cmm.service.EgovCmmUseService;
|
||||
import itn.com.cmm.util.RedirectUrlMaker;
|
||||
import itn.let.sec.ram.service.AuthorManageVO;
|
||||
import itn.let.sec.ram.service.EgovAuthorManageService;
|
||||
import itn.let.uss.olp.qmc.service.EgovQustnrManageService;
|
||||
import itn.let.uss.olp.qmc.service.QustnrManageVO;
|
||||
import itn.let.uss.olp.qqm.service.EgovQustnrQestnManageService;
|
||||
|
||||
/**
|
||||
* 설문관리를 처리하는 Controller Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Controller
|
||||
public class EgovQustnrManageController {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(EgovQustnrManageController.class);
|
||||
|
||||
@Autowired
|
||||
private DefaultBeanValidator beanValidator;
|
||||
|
||||
/** EgovMessageSource */
|
||||
@Resource(name = "egovMessageSource")
|
||||
EgovMessageSource egovMessageSource;
|
||||
|
||||
@Resource(name = "egovQustnrManageService")
|
||||
private EgovQustnrManageService egovQustnrManageService;
|
||||
|
||||
/** EgovPropertyService */
|
||||
@Resource(name = "propertiesService")
|
||||
protected EgovPropertyService propertiesService;
|
||||
|
||||
@Resource(name = "EgovCmmUseService")
|
||||
private EgovCmmUseService cmmUseService;
|
||||
|
||||
@Resource(name = "egovQustnrQestnManageService")
|
||||
private EgovQustnrQestnManageService egovQustnrQestnManageService;
|
||||
|
||||
@Resource(name = "egovAuthorManageService")
|
||||
private EgovAuthorManageService egovAuthorManageService;
|
||||
/**
|
||||
* 설문관리 팝업 목록을 조회한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qmc/EgovQustnrManageListPopup"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/qmc/EgovQustnrManageListPopup.do")
|
||||
public String EgovQustnrManageListPopup(@ModelAttribute("searchVO") ComDefaultVO searchVO, @RequestParam Map<String, Object> commandMap, QustnrManageVO qustnrManageVO,
|
||||
ModelMap model) throws Exception {
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
if (sCmd.equals("del")) {
|
||||
egovQustnrManageService.deleteQustnrManage(qustnrManageVO);
|
||||
}
|
||||
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
model.addAttribute("resultList", egovQustnrManageService.selectQustnrManageList(searchVO));
|
||||
|
||||
model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String) commandMap.get("searchKeyword"));
|
||||
model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String) commandMap.get("searchCondition"));
|
||||
|
||||
int totCnt = egovQustnrManageService.selectQustnrManageListCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
return "/uss/olp/qmc/EgovQustnrManageListPopup";
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리 목록을 조회한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qmc/EgovQustnrManageList"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = {"/uss/olp/qmc/EgovQustnrManageList.do", "/uss/olp/qmc/EgovQustnrDelete.do"})
|
||||
public String selectEgovQustnrManageList(@ModelAttribute("searchVO") ComDefaultVO searchVO, @RequestParam Map<String, Object> commandMap, QustnrManageVO qustnrManageVO,
|
||||
RedirectAttributes redirectAttributes , ModelMap model , HttpSession session) throws Exception {
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
if (sCmd.equals("del")) {
|
||||
egovQustnrManageService.deleteQustnrManage(qustnrManageVO);
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/olp/qmc/EgovQustnrManageList.do");
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
}
|
||||
|
||||
if(searchVO.getPageUnit() != 10) {
|
||||
searchVO.setPageUnit(searchVO.getPageUnit());
|
||||
}
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
||||
searchVO.setSiteId(loginVO.getSiteId());
|
||||
}
|
||||
|
||||
if("".equals(searchVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
||||
searchVO.setSearchSortCnd("qestnrId");
|
||||
searchVO.setSearchSortOrd("desc");
|
||||
}
|
||||
model.addAttribute("resultList", egovQustnrManageService.selectQustnrManageList(searchVO));
|
||||
|
||||
model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String) commandMap.get("searchKeyword"));
|
||||
model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String) commandMap.get("searchCondition"));
|
||||
|
||||
int totCnt = egovQustnrManageService.selectQustnrManageListCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
ComDefaultCodeVO vo = new ComDefaultCodeVO();
|
||||
|
||||
vo.setCodeId("COM035"); //설문진행상태
|
||||
List<?> qustnrManageSttusList = cmmUseService.selectCmmCodeDetail(vo);
|
||||
model.addAttribute("qustnrManageSttusList", qustnrManageSttusList);
|
||||
|
||||
/*설문참여권한 조회*/
|
||||
AuthorManageVO authorManageVO = new AuthorManageVO();
|
||||
authorManageVO.setFirstIndex(0);
|
||||
authorManageVO.setLastIndex(10);
|
||||
authorManageVO.setRecordCountPerPage(10);
|
||||
authorManageVO.setAuthorManageList(egovAuthorManageService.selectAuthorList(authorManageVO));
|
||||
model.addAttribute("qestnrTrgetList", authorManageVO.getAuthorManageList());
|
||||
return "/uss/olp/qmc/EgovQustnrManageList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리 목록을 상세조회 조회한다.
|
||||
* @param searchVO
|
||||
* @param qustnrManageVO
|
||||
* @param commandMap
|
||||
* @param model
|
||||
* @return "/uss/olp/qmc/EgovQustnrManageDetail";
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/qmc/EgovQustnrManageDetail.do")
|
||||
public String EgovQustnrManageDetail(@ModelAttribute("searchVO") ComDefaultVO searchVO, QustnrManageVO qustnrManageVO, @RequestParam Map<String, Object> commandMap,
|
||||
ModelMap model) throws Exception {
|
||||
|
||||
String sLocationUrl = "/uss/olp/qmc/EgovQustnrManageDetail";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
|
||||
if (sCmd.equals("del")) {
|
||||
egovQustnrManageService.deleteQustnrManage(qustnrManageVO);
|
||||
sLocationUrl = "redirect:/uss/olp/qmc/EgovQustnrManageList.do";
|
||||
} else {
|
||||
|
||||
//공통코드 직업유형 조회
|
||||
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
|
||||
voComCode.setCodeId("COM034");
|
||||
model.addAttribute("comCode034", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
model.addAttribute("resultList", egovQustnrManageService.selectQustnrManageDetail(qustnrManageVO));
|
||||
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를 수정한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrManageVO
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/uss/olp/qmc/EgovQustnrManageModify"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/qmc/EgovQustnrManageModify.do")
|
||||
public String updateQustnrManage(@ModelAttribute("searchVO") ComDefaultVO searchVO, @RequestParam Map<String, Object> commandMap, QustnrManageVO qustnrManageVO,
|
||||
BindingResult bindingResult, RedirectAttributes redirectAttributes , ModelMap model , HttpSession session) throws Exception {
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if (!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String sLocationUrl = "/uss/olp/qmc/EgovQustnrManageModify";
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
//공통코드 직업유형 조회
|
||||
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
|
||||
voComCode.setCodeId("COM034");
|
||||
model.addAttribute("comCode034", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
if (sCmd.equals("save")) {
|
||||
beanValidator.validate(qustnrManageVO, bindingResult);
|
||||
if (bindingResult.hasErrors()) {
|
||||
model.addAttribute("resultList", egovQustnrManageService.selectQustnrManageDetail(qustnrManageVO));
|
||||
//설문템플릿 정보 불러오기
|
||||
model.addAttribute("listQustnrTmplat", egovQustnrManageService.selectQustnrTmplatManageList(qustnrManageVO));
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
//아이디 설정
|
||||
qustnrManageVO.setFrstRegisterId(loginVO.getUniqId());
|
||||
qustnrManageVO.setLastUpdusrId(loginVO.getUniqId());
|
||||
egovQustnrManageService.updateQustnrManage(qustnrManageVO);
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update"));
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/olp/qmc/EgovQustnrManageList.do");
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
//sLocationUrl = "redirect:/uss/olp/qmc/EgovQustnrManageList.do";
|
||||
} else {
|
||||
model.addAttribute("resultList", egovQustnrManageService.selectQustnrManageDetail(qustnrManageVO));
|
||||
//설문정보
|
||||
QustnrManageVO newQustnrManageVO = egovQustnrManageService.selectQustnrManageDetailModel(qustnrManageVO);
|
||||
model.addAttribute("qustnrManageVO", newQustnrManageVO);
|
||||
//설문템플릿 정보 불러오기
|
||||
model.addAttribute("listQustnrTmplat", egovQustnrManageService.selectQustnrTmplatManageList(qustnrManageVO));
|
||||
//설문문제정보
|
||||
searchVO.setFirstIndex(0);
|
||||
searchVO.setRecordCountPerPage(50); //50개까지
|
||||
searchVO.setSearchCondition("QESTNR_ID");
|
||||
searchVO.setSearchKeyword(qustnrManageVO.getQestnrId());
|
||||
|
||||
List<?> qustnrQestnManageList = egovQustnrQestnManageService.selectQustnrQestnManageList(searchVO);
|
||||
model.addAttribute("qustnrQestnManageList", qustnrQestnManageList);
|
||||
/*설문참여권한 조회*/
|
||||
ComDefaultCodeVO vo = new ComDefaultCodeVO();
|
||||
vo.setCodeId("COM036");
|
||||
List<?> qestnrTrgetList = cmmUseService.selectCmmCodeDetail(vo);
|
||||
model.addAttribute("qestnrTrgetList", qestnrTrgetList);
|
||||
|
||||
vo.setCodeId("COM035"); //설문진행상태
|
||||
List<?> qustnrManageSttusList = cmmUseService.selectCmmCodeDetail(vo);
|
||||
model.addAttribute("qustnrManageSttusList", qustnrManageSttusList);
|
||||
|
||||
//관리권한 조회
|
||||
AuthorManageVO authorManageVO = new AuthorManageVO();
|
||||
authorManageVO.setFirstIndex(0);
|
||||
authorManageVO.setLastIndex(10);
|
||||
authorManageVO.setRecordCountPerPage(10);
|
||||
authorManageVO.setAuthorManageList(egovAuthorManageService.selectAuthorList(authorManageVO));
|
||||
model.addAttribute("authorList", authorManageVO.getAuthorManageList());
|
||||
}
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문관리를 등록한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrManageVO
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/uss/olp/qmc/EgovQustnrManageRegist"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/qmc/EgovItnQustnrManageRegist.do")
|
||||
public String insertEgovItnQustnrManage(@ModelAttribute("searchVO") ComDefaultVO searchVO, @RequestParam Map<String, Object> commandMap,
|
||||
@ModelAttribute("qustnrManageVO") QustnrManageVO qustnrManageVO, BindingResult bindingResult,
|
||||
RedirectAttributes redirectAttributes ,ModelMap model,
|
||||
HttpSession session) throws Exception {
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if (!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
||||
qustnrManageVO.setSiteId(loginVO.getSiteId());
|
||||
}
|
||||
String sLocationUrl = "/uss/olp/qmc/EgovQustnrManageRegist";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
LOGGER.info("cmd => {}", sCmd);
|
||||
|
||||
//공통코드 직업유형 조회
|
||||
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
|
||||
voComCode.setCodeId("COM034");
|
||||
model.addAttribute("comCode034", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
if (sCmd.equals("save")) {
|
||||
|
||||
beanValidator.validate(qustnrManageVO, bindingResult);
|
||||
if (bindingResult.hasErrors()) {
|
||||
//설문템플릿 정보 불러오기
|
||||
model.addAttribute("listQustnrTmplat", egovQustnrManageService.selectQustnrTmplatManageList(qustnrManageVO));
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
//아이디 설정
|
||||
qustnrManageVO.setFrstRegisterId(loginVO.getUniqId());
|
||||
qustnrManageVO.setLastUpdusrId(loginVO.getUniqId());
|
||||
|
||||
egovQustnrManageService.insertQustnrManage(qustnrManageVO);
|
||||
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert"));
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/olp/qmc/EgovQustnrManageList.do");
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
//sLocationUrl = "redirect:/uss/olp/qmc/EgovQustnrManageList.do";
|
||||
} else {
|
||||
//설문템플릿 정보 불러오기
|
||||
model.addAttribute("listQustnrTmplat", egovQustnrManageService.selectQustnrTmplatManageList(qustnrManageVO));
|
||||
|
||||
/*설문참여권한 조회*/
|
||||
ComDefaultCodeVO vo = new ComDefaultCodeVO();
|
||||
vo.setCodeId("COM036");
|
||||
List<?> qestnrTrgetList = cmmUseService.selectCmmCodeDetail(vo);
|
||||
model.addAttribute("qestnrTrgetList", qestnrTrgetList);
|
||||
|
||||
/*관리권한 조회*/
|
||||
AuthorManageVO authorManageVO = new AuthorManageVO();
|
||||
authorManageVO.setFirstIndex(0);
|
||||
authorManageVO.setLastIndex(10);
|
||||
authorManageVO.setRecordCountPerPage(10);
|
||||
authorManageVO.setAuthorManageList(egovAuthorManageService.selectAuthorList(authorManageVO));
|
||||
model.addAttribute("authorList", authorManageVO.getAuthorManageList());
|
||||
}
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 설문 목록을 조회한다.(사용자)
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qmc/EgovQustnrManageList"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/web/survey/surveyList.do")
|
||||
public String surveyList(@ModelAttribute("searchVO") ComDefaultVO searchVO, @RequestParam Map<String, Object> commandMap, QustnrManageVO qustnrManageVO,
|
||||
RedirectAttributes redirectAttributes , ModelMap model) throws Exception {
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
if (sCmd.equals("del")) {
|
||||
egovQustnrManageService.deleteQustnrManage(qustnrManageVO);
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/olp/qmc/EgovQustnrManageList.do");
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
}
|
||||
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
model.addAttribute("resultList", egovQustnrManageService.selectQustnrManageList(searchVO));
|
||||
|
||||
model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String) commandMap.get("searchKeyword"));
|
||||
model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String) commandMap.get("searchCondition"));
|
||||
|
||||
int totCnt = egovQustnrManageService.selectQustnrManageListCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
ComDefaultCodeVO vo = new ComDefaultCodeVO();
|
||||
|
||||
vo.setCodeId("COM035"); //설문진행상태
|
||||
List<?> qustnrManageSttusList = cmmUseService.selectCmmCodeDetail(vo);
|
||||
model.addAttribute("qustnrManageSttusList", qustnrManageSttusList);
|
||||
|
||||
/*설문참여권한 조회*/
|
||||
AuthorManageVO authorManageVO = new AuthorManageVO();
|
||||
authorManageVO.setFirstIndex(0);
|
||||
authorManageVO.setLastIndex(10);
|
||||
authorManageVO.setRecordCountPerPage(10);
|
||||
authorManageVO.setAuthorManageList(egovAuthorManageService.selectAuthorList(authorManageVO));
|
||||
model.addAttribute("qestnrTrgetList", authorManageVO.getAuthorManageList());
|
||||
/*vo.setCodeId("COM036");
|
||||
List<?> qestnrTrgetList = cmmUseService.selectCmmCodeDetail(vo);
|
||||
model.addAttribute("qestnrTrgetList", qestnrTrgetList);*/
|
||||
//return "/uss/olp/qmc/EgovQustnrManageList";
|
||||
return "/web/survey/surveyList";
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문 목록을 조회한다.(사용자)
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qmc/EgovQustnrManageList"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/{siteId}/web/survey/surveyList.do")
|
||||
public String surveyList(@PathVariable("siteId") String siteId , @ModelAttribute("searchVO") ComDefaultVO searchVO, @RequestParam Map<String, Object> commandMap, QustnrManageVO qustnrManageVO,
|
||||
RedirectAttributes redirectAttributes , ModelMap model) throws Exception {
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
if (sCmd.equals("del")) {
|
||||
egovQustnrManageService.deleteQustnrManage(qustnrManageVO);
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/"+siteId+"/uss/olp/qmc/EgovQustnrManageList.do");
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
}
|
||||
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
searchVO.setSiteId(siteId);
|
||||
model.addAttribute("resultList", egovQustnrManageService.selectQustnrManageList(searchVO));
|
||||
|
||||
model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String) commandMap.get("searchKeyword"));
|
||||
model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String) commandMap.get("searchCondition"));
|
||||
|
||||
int totCnt = egovQustnrManageService.selectQustnrManageListCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
ComDefaultCodeVO vo = new ComDefaultCodeVO();
|
||||
|
||||
vo.setCodeId("COM035"); //설문진행상태
|
||||
List<?> qustnrManageSttusList = cmmUseService.selectCmmCodeDetail(vo);
|
||||
model.addAttribute("qustnrManageSttusList", qustnrManageSttusList);
|
||||
|
||||
/*설문참여권한 조회*/
|
||||
AuthorManageVO authorManageVO = new AuthorManageVO();
|
||||
authorManageVO.setFirstIndex(0);
|
||||
authorManageVO.setLastIndex(10);
|
||||
authorManageVO.setRecordCountPerPage(10);
|
||||
authorManageVO.setAuthorManageList(egovAuthorManageService.selectAuthorList(authorManageVO));
|
||||
model.addAttribute("qestnrTrgetList", authorManageVO.getAuthorManageList());
|
||||
/*vo.setCodeId("COM036");
|
||||
List<?> qestnrTrgetList = cmmUseService.selectCmmCodeDetail(vo);
|
||||
model.addAttribute("qestnrTrgetList", qestnrTrgetList);*/
|
||||
//return "/uss/olp/qmc/EgovQustnrManageList";
|
||||
model.addAttribute("siteId", siteId);
|
||||
String siteFolder = "site/"+siteId ;
|
||||
return "web/"+siteFolder+"/survey/surveyList";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,98 +0,0 @@
|
||||
package itn.let.uss.olp.qqm.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
/**
|
||||
* 설문문항을 처리하는 Service Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public interface EgovQustnrQestnManageService {
|
||||
|
||||
/**
|
||||
* 설문조사 응답자답변내용결과/기타답변내용결과 통계를 조회한다.
|
||||
* @param Map - 설문지 정보가 담김 Parameter
|
||||
* @return Map
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrManageStatistics2(Map<?, ?> map) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문조사 통계를 조회한다.
|
||||
* @param Map - 설문지 정보가 담김 Parameter
|
||||
* @return Map
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrManageStatistics(Map<?, ?> map) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문지정보 설문제목을 조회한다.
|
||||
* @param Map - 설문지 정보가 담김 Parameter
|
||||
* @return Map
|
||||
* @throws Exception
|
||||
*/
|
||||
public Map<?, ?> selectQustnrManageQestnrSj(Map<?, ?> map) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문문항 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrQestnManageList(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 상세조회 한다.
|
||||
* @param qustnrQestnManageVO - 설문문항 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrQestnManageDetail(QustnrQestnManageVO qustnrQestnManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrQestnManageListCnt(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 등록한다.
|
||||
* @param qustnrQestnManageVO - 설문문항 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void insertQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 수정한다.
|
||||
* @param qustnrQestnManageVO - 설문문항 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void updateQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 삭제한다.
|
||||
* @param qustnrQestnManageVO - 설문문항 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void deleteQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception;
|
||||
|
||||
String insertGetIdQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception;
|
||||
|
||||
|
||||
}
|
||||
@ -1,283 +0,0 @@
|
||||
package itn.let.uss.olp.qqm.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
/**
|
||||
* 설문문항 VO Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class QustnrQestnManageVO implements Serializable {
|
||||
|
||||
/**
|
||||
* serialVersionUID
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 설문제목 */
|
||||
private String qestnrSj = "";
|
||||
|
||||
/** 설문문항 ID */
|
||||
private String qestnrQesitmId = "";
|
||||
|
||||
/** 설문지 ID */
|
||||
private String qestnrId = "";
|
||||
|
||||
/** 질문순번 */
|
||||
private String qestnSn = "";
|
||||
|
||||
/** 질문유형코드 */
|
||||
private String qestnTyCode = "";
|
||||
|
||||
/** 질문내용 */
|
||||
private String qestnCn = "";
|
||||
|
||||
/** 초대선택건수 */
|
||||
private String mxmmChoiseCo = "";
|
||||
|
||||
/** 템플릿 ID */
|
||||
private String qestnrTmplatId = "";
|
||||
|
||||
/** 최초등록자아이디 */
|
||||
private String frstRegisterPnttm = "";
|
||||
|
||||
/** 최초등록시점 */
|
||||
private String frstRegisterId = "";
|
||||
|
||||
/** 최종수정시점 */
|
||||
private String lastUpdusrPnttm = "";
|
||||
|
||||
/** 최종수정시점아이디 */
|
||||
private String lastUpdusrId = "";
|
||||
|
||||
/** 검색모드설정 */
|
||||
private String searchMode = "";
|
||||
|
||||
/**
|
||||
* qestnrSj attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrSj() {
|
||||
return qestnrSj;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrSj attribute 값을 설정한다.
|
||||
* @return qestnrSj String
|
||||
*/
|
||||
public void setQestnrSj(String qestnrSj) {
|
||||
this.qestnrSj = qestnrSj;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrQesitmId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrQesitmId() {
|
||||
return qestnrQesitmId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrQesitmId attribute 값을 설정한다.
|
||||
* @return qestnrQesitmId String
|
||||
*/
|
||||
public void setQestnrQesitmId(String qestnrQesitmId) {
|
||||
this.qestnrQesitmId = qestnrQesitmId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrId() {
|
||||
return qestnrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrId attribute 값을 설정한다.
|
||||
* @return qestnrId String
|
||||
*/
|
||||
public void setQestnrId(String qestnrId) {
|
||||
this.qestnrId = qestnrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnSn attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnSn() {
|
||||
return qestnSn;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnSn attribute 값을 설정한다.
|
||||
* @return qestnSn String
|
||||
*/
|
||||
public void setQestnSn(String qestnSn) {
|
||||
this.qestnSn = qestnSn;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnTyCode attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnTyCode() {
|
||||
return qestnTyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnTyCode attribute 값을 설정한다.
|
||||
* @return qestnTyCode String
|
||||
*/
|
||||
public void setQestnTyCode(String qestnTyCode) {
|
||||
this.qestnTyCode = qestnTyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnCn attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnCn() {
|
||||
return qestnCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnCn attribute 값을 설정한다.
|
||||
* @return qestnCn String
|
||||
*/
|
||||
public void setQestnCn(String qestnCn) {
|
||||
this.qestnCn = qestnCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* mxmmChoiseCo attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getMxmmChoiseCo() {
|
||||
return mxmmChoiseCo;
|
||||
}
|
||||
|
||||
/**
|
||||
* mxmmChoiseCo attribute 값을 설정한다.
|
||||
* @return mxmmChoiseCo String
|
||||
*/
|
||||
public void setMxmmChoiseCo(String mxmmChoiseCo) {
|
||||
this.mxmmChoiseCo = mxmmChoiseCo;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTmplatId() {
|
||||
return qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 값을 설정한다.
|
||||
* @return qestnrTmplatId String
|
||||
*/
|
||||
public void setQestnrTmplatId(String qestnrTmplatId) {
|
||||
this.qestnrTmplatId = qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterPnttm() {
|
||||
return frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 값을 설정한다.
|
||||
* @return frstRegisterPnttm String
|
||||
*/
|
||||
public void setFrstRegisterPnttm(String frstRegisterPnttm) {
|
||||
this.frstRegisterPnttm = frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterId() {
|
||||
return frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 값을 설정한다.
|
||||
* @return frstRegisterId String
|
||||
*/
|
||||
public void setFrstRegisterId(String frstRegisterId) {
|
||||
this.frstRegisterId = frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrPnttm() {
|
||||
return lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 값을 설정한다.
|
||||
* @return lastUpdusrPnttm String
|
||||
*/
|
||||
public void setLastUpdusrPnttm(String lastUpdusrPnttm) {
|
||||
this.lastUpdusrPnttm = lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrId() {
|
||||
return lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 값을 설정한다.
|
||||
* @return lastUpdusrId String
|
||||
*/
|
||||
public void setLastUpdusrId(String lastUpdusrId) {
|
||||
this.lastUpdusrId = lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* searchMode attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getSearchMode() {
|
||||
return searchMode;
|
||||
}
|
||||
|
||||
/**
|
||||
* searchMode attribute 값을 설정한다.
|
||||
* @return searchMode String
|
||||
*/
|
||||
public void setSearchMode(String searchMode) {
|
||||
this.searchMode = searchMode;
|
||||
}
|
||||
|
||||
/**
|
||||
* toString 메소드를 대치한다.
|
||||
*/
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,154 +0,0 @@
|
||||
package itn.let.uss.olp.qqm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qqm.service.EgovQustnrQestnManageService;
|
||||
import itn.let.uss.olp.qqm.service.QustnrQestnManageVO;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
/**
|
||||
* 설문문항을 처리하는 ServiceImpl Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Service("egovQustnrQestnManageService")
|
||||
public class EgovQustnrQestnManageServiceImpl extends EgovAbstractServiceImpl implements EgovQustnrQestnManageService{
|
||||
|
||||
@Resource(name="qustnrQestnManageDao")
|
||||
private QustnrQestnManageDao dao;
|
||||
|
||||
@Resource(name="egovQustnrQestnManageIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
|
||||
/**
|
||||
* 설문조사 응답자답변내용결과/기타답변내용결과 통계를 조회한다.
|
||||
* @param Map - 설문지 정보가 담김 Parameter
|
||||
* @return Map
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrManageStatistics2(Map<?, ?> map) throws Exception{
|
||||
return dao.selectQustnrManageStatistics2(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문조사 통계를 조회한다.
|
||||
* @param Map - 설문지 정보가 담김 Parameter
|
||||
* @return Map
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrManageStatistics(Map<?, ?> map) throws Exception{
|
||||
return dao.selectQustnrManageStatistics(map);
|
||||
}
|
||||
/**
|
||||
* 설문지정보 설문제목을 조회한다.
|
||||
* @param Map - 설문지 정보가 담김 Parameter
|
||||
* @return Map
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public Map<?, ?> selectQustnrManageQestnrSj(Map<?, ?> map) throws Exception{
|
||||
return dao.selectQustnrManageQestnrSj(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrQestnManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrQestnManageList(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 상세조회 한다.
|
||||
* @param QustnrQestnManage - 회정정보가 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrQestnManageDetail(QustnrQestnManageVO qustnrQestnManageVO) throws Exception{
|
||||
return dao.selectQustnrQestnManageDetail(qustnrQestnManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public int selectQustnrQestnManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrQestnManageListCnt(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 등록한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void insertQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception {
|
||||
String sMakeId = idgenService.getNextStringId();
|
||||
|
||||
qustnrQestnManageVO.setQestnrQesitmId(sMakeId);
|
||||
|
||||
dao.insertQustnrQestnManage(qustnrQestnManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 수정한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void updateQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception{
|
||||
dao.updateQustnrQestnManage(qustnrQestnManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 삭제한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void deleteQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception{
|
||||
dao.deleteQustnrQestnManage(qustnrQestnManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 등록한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public String insertGetIdQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception {
|
||||
String sMakeId = idgenService.getNextStringId();
|
||||
qustnrQestnManageVO.setQestnrQesitmId(sMakeId);
|
||||
dao.insertQustnrQestnManage(qustnrQestnManageVO);
|
||||
return sMakeId;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,125 +0,0 @@
|
||||
package itn.let.uss.olp.qqm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qqm.service.QustnrQestnManageVO;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
/**
|
||||
* 설문문항을 처리하는 Dao Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Repository("qustnrQestnManageDao")
|
||||
public class QustnrQestnManageDao extends EgovAbstractDAO {
|
||||
|
||||
/**
|
||||
* 설문조사 응답자답변내용결과/기타답변내용결과 통계를 조회한다.
|
||||
* @param Map - 설문지 정보가 담김 Parameter
|
||||
* @return Map
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrManageStatistics2(Map<?, ?> map) throws Exception{
|
||||
return list("QustnrQestnManage.selectQustnrManageStatistics2", map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문조사 통계를 조회한다.
|
||||
* @param Map - 설문지 정보가 담김 Parameter
|
||||
* @return Map
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrManageStatistics(Map<?, ?> map) throws Exception{
|
||||
return list("QustnrQestnManage.selectQustnrManageStatistics", map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문지정보 설문제목을 조회한다.
|
||||
* @param Map - 설문지 정보가 담김 Parameter
|
||||
* @return Map
|
||||
* @throws Exception
|
||||
*/
|
||||
public Map<?, ?> selectQustnrManageQestnrSj(Map<?, ?> map) throws Exception{
|
||||
return (Map<?, ?>)select("QustnrQestnManage.selectQustnrManageQestnrSj", map);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 설문문항 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrQestnManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return list("QustnrQestnManage.selectQustnrQestnManage", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 상세조회 한다.
|
||||
* @param qustnrQestnManageVO - 설문문항 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrQestnManageDetail(QustnrQestnManageVO qustnrQestnManageVO) throws Exception{
|
||||
return list("QustnrQestnManage.selectQustnrQestnManageDetail", qustnrQestnManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrQestnManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return (Integer)select("QustnrQestnManage.selectQustnrQestnManageCnt", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 등록한다.
|
||||
* @param qqustnrQestnManageVO - 설문문항 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void insertQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception{
|
||||
insert("QustnrQestnManage.insertQustnrQestnManage", qustnrQestnManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 수정한다.
|
||||
* @param qustnrQestnManageVO - 설문문항 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void updateQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception{
|
||||
insert("QustnrQestnManage.updateQustnrQestnManage", qustnrQestnManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를(을) 삭제한다.
|
||||
* @param qustnrQestnManageVO - 설문문항 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void deleteQustnrQestnManage(QustnrQestnManageVO qustnrQestnManageVO) throws Exception{
|
||||
|
||||
//설문조사(설문결과) 삭제
|
||||
delete("QustnrQestnManage.deleteQustnrRespondInfo", qustnrQestnManageVO);
|
||||
//설문항목 삭제
|
||||
delete("QustnrQestnManage.deleteQustnrItemManage", qustnrQestnManageVO);
|
||||
|
||||
//설문문항
|
||||
delete("QustnrQestnManage.deleteQustnrQestnManage", qustnrQestnManageVO);
|
||||
}
|
||||
}
|
||||
@ -1,538 +0,0 @@
|
||||
package itn.let.uss.olp.qqm.web;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
||||
import egovframework.rte.psl.dataaccess.util.EgovMap;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import itn.com.cmm.ComDefaultCodeVO;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.com.cmm.EgovMessageSource;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.com.cmm.service.EgovCmmUseService;
|
||||
import itn.com.cmm.util.RedirectUrlMaker;
|
||||
import itn.let.uss.olp.qim.service.EgovQustnrItemManageService;
|
||||
import itn.let.uss.olp.qmc.service.QustnrManageVO;
|
||||
import itn.let.uss.olp.qqm.service.EgovQustnrQestnManageService;
|
||||
import itn.let.uss.olp.qqm.service.QustnrQestnManageVO;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||
import org.springmodules.validation.commons.DefaultBeanValidator;
|
||||
/**
|
||||
* 설문문항을 처리하는 Controller Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Controller
|
||||
public class EgovQustnrQestnManageController {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(EgovQustnrQestnManageController.class);
|
||||
|
||||
@Autowired
|
||||
private DefaultBeanValidator beanValidator;
|
||||
|
||||
/** EgovMessageSource */
|
||||
@Resource(name="egovMessageSource")
|
||||
EgovMessageSource egovMessageSource;
|
||||
|
||||
@Resource(name = "egovQustnrQestnManageService")
|
||||
private EgovQustnrQestnManageService egovQustnrQestnManageService;
|
||||
|
||||
/** EgovPropertyService */
|
||||
@Resource(name = "propertiesService")
|
||||
protected EgovPropertyService propertiesService;
|
||||
|
||||
@Resource(name="EgovCmmUseService")
|
||||
private EgovCmmUseService cmmUseService;
|
||||
|
||||
@Resource(name = "egovQustnrItemManageService")
|
||||
private EgovQustnrItemManageService egovQustnrItemManageService;
|
||||
|
||||
/**
|
||||
* 설문항목 통계를 조회한다.
|
||||
* @param searchVO
|
||||
* @param qustnrQestnManageVO
|
||||
* @param commandMap
|
||||
* @param model
|
||||
* @return "/uss/olp/qqm/EgovQustnrQestnManageStatistics"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qqm/EgovQustnrQestnManageStatistics.do")
|
||||
public String EgovQustnrQestnManageStatistics(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
QustnrQestnManageVO qustnrQestnManageVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
|
||||
String sLocationUrl = "/uss/olp/qqm/EgovQustnrQestnManageStatistics";
|
||||
|
||||
//List sampleList = egovQustnrQestnManageService.selectQustnrQestnManageDetail(qustnrQestnManageVO);
|
||||
model.addAttribute("resultList", egovQustnrQestnManageService.selectQustnrQestnManageDetail(qustnrQestnManageVO));
|
||||
// 객관식설문통계
|
||||
HashMap<String,String> mapParam = new HashMap<String,String>();
|
||||
mapParam.put("qestnrQesitmId", (String)qustnrQestnManageVO.getQestnrQesitmId());
|
||||
//List statisticsList = egovQustnrQestnManageService.selectQustnrManageStatistics(mapParam);
|
||||
model.addAttribute("statisticsList", egovQustnrQestnManageService.selectQustnrManageStatistics(mapParam));
|
||||
// 주관식설문통계
|
||||
//List statisticsList2 = egovQustnrQestnManageService.selectQustnrManageStatistics2(mapParam);
|
||||
model.addAttribute("statisticsList2", egovQustnrQestnManageService.selectQustnrManageStatistics2(mapParam));
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항 팝업 록을 조회한다.
|
||||
* @param searchVO
|
||||
* @param qustnrQestnManageVO
|
||||
* @param commandMap
|
||||
* @param model
|
||||
* @return "/uss/olp/qqm/EgovQustnrQestnManageListPopup"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qqm/EgovQustnrQestnManageListPopup.do")
|
||||
public String EgovQustnrQestnManageListPopup(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@ModelAttribute("qustnrQestnManageVO") QustnrQestnManageVO qustnrQestnManageVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
|
||||
String sSearchMode = commandMap.get("searchMode") == null ? "" : (String)commandMap.get("searchMode");
|
||||
|
||||
//설문지정보에서 넘어오면 자동검색 설정
|
||||
if(sSearchMode.equals("Y")){
|
||||
searchVO.setSearchCondition("QESTNR_ID");
|
||||
searchVO.setSearchKeyword(qustnrQestnManageVO.getQestnrId());
|
||||
}
|
||||
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
model.addAttribute("resultList", egovQustnrQestnManageService.selectQustnrQestnManageList(searchVO));
|
||||
|
||||
int totCnt = (Integer)egovQustnrQestnManageService.selectQustnrQestnManageListCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
return "/uss/olp/qqm/EgovQustnrQestnManageListPopup";
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항 목록을 조회한다.
|
||||
* @param searchVO
|
||||
* @param qustnrQestnManageVO
|
||||
* @param commandMap
|
||||
* @param model
|
||||
* @return "/uss/olp/qqm/EgovQustnrQestnManageList"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qqm/EgovQustnrQestnManageList.do")
|
||||
public String EgovQustnrQestnManageList(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@ModelAttribute("qustnrQestnManageVO") QustnrQestnManageVO qustnrQestnManageVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if(!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
String sSearchMode = commandMap.get("searchMode") == null ? "" : (String)commandMap.get("searchMode");
|
||||
|
||||
if(sCmd.equals("del")){
|
||||
egovQustnrQestnManageService.deleteQustnrQestnManage(qustnrQestnManageVO);
|
||||
}
|
||||
|
||||
//설문지정보에서 넘어오면 자동검색 설정
|
||||
if(sSearchMode.equals("Y")){
|
||||
searchVO.setSearchCondition("QESTNR_ID");
|
||||
searchVO.setSearchKeyword(qustnrQestnManageVO.getQestnrId());
|
||||
}
|
||||
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
model.addAttribute("resultList", egovQustnrQestnManageService.selectQustnrQestnManageList(searchVO));
|
||||
|
||||
int totCnt = (Integer)egovQustnrQestnManageService.selectQustnrQestnManageListCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
return "/uss/olp/qqm/EgovQustnrQestnManageList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항 목록을 상세조회 조회한다.
|
||||
* @param searchVO
|
||||
* @param qustnrQestnManageVO
|
||||
* @param commandMap
|
||||
* @param model
|
||||
* @return "/uss/olp/qqm/EgovQustnrQestnManageDetail"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qqm/EgovQustnrQestnManageDetail.do")
|
||||
public String selectEgovQustnrQestnManageDetail(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@ModelAttribute("qustnrQestnManageVO") QustnrQestnManageVO qustnrQestnManageVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
ModelMap model , RedirectAttributes redirectAttributes)
|
||||
throws Exception {
|
||||
|
||||
String sLocationUrl = "/uss/olp/qqm/EgovQustnrQestnManageDetail";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
|
||||
if(sCmd.equals("del")){
|
||||
egovQustnrQestnManageService.deleteQustnrQestnManage(qustnrQestnManageVO);
|
||||
/** 목록으로갈때 검색조건 유지 */
|
||||
/*sLocationUrl = "redirect:/uss/olp/qqm/EgovQustnrQestnManageList.do?";
|
||||
sLocationUrl = sLocationUrl + "searchMode=" + qustnrQestnManageVO.getSearchMode();
|
||||
sLocationUrl = sLocationUrl + "&qestnrId=" + qustnrQestnManageVO.getQestnrId();
|
||||
sLocationUrl = sLocationUrl + "&qestnrTmplatId=" +qustnrQestnManageVO.getQestnrTmplatId();*/
|
||||
sLocationUrl = "/uss/olp/qmc/EgovQustnrManageModify.do?qestnrId="+qustnrQestnManageVO.getQestnrId()+"&cmd="+sCmd;
|
||||
//QustnrManageVO qustnrManageVO = new QustnrManageVO();
|
||||
//qustnrManageVO.setQestnrId(qustnrQestnManageVO.getQestnrId());
|
||||
//redirectAttributes.addFlashAttribute("qustnrManageVO", qustnrManageVO); //파라미터숨기기
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker(sLocationUrl);
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
|
||||
}else{
|
||||
//공통코드 질문유형 조회
|
||||
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
|
||||
voComCode.setCodeId("COM018");
|
||||
model.addAttribute("cmmCode018", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
model.addAttribute("resultList", egovQustnrQestnManageService.selectQustnrQestnManageDetail(qustnrQestnManageVO));
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를 수정한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrQestnManageVO
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/uss/olp/qqm/EgovQustnrQestnManageModify"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qqm/EgovQustnrQestnManageModify.do")
|
||||
public String QustnrQestnManageModify(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
@ModelAttribute("qustnrQestnManageVO") QustnrQestnManageVO qustnrQestnManageVO,
|
||||
BindingResult bindingResult,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if(!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
String sLocationUrl = "/uss/olp/qqm/EgovQustnrQestnManageModify";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
|
||||
//공통코드 질문유형 조회
|
||||
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
|
||||
voComCode.setCodeId("COM018");
|
||||
model.addAttribute("cmmCode018", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
if(sCmd.equals("save")){
|
||||
//서버 validate 체크
|
||||
beanValidator.validate(qustnrQestnManageVO, bindingResult);
|
||||
if (bindingResult.hasErrors()){
|
||||
//설문제목가져오기
|
||||
String sQestnrId = commandMap.get("qestnrId") == null ? "" : (String)commandMap.get("qestnrId");
|
||||
String sQestnrTmplatId = commandMap.get("qestnrTmplatId") == null ? "" : (String)commandMap.get("qestnrTmplatId");
|
||||
|
||||
LOGGER.info("sQestnrId => {}", sQestnrId);
|
||||
LOGGER.info("sQestnrTmplatId => {}", sQestnrTmplatId);
|
||||
if(!sQestnrId.equals("") && !sQestnrTmplatId.equals("")){
|
||||
|
||||
Map<String,String> mapQustnrManage = new HashMap<String,String>();
|
||||
mapQustnrManage.put("qestnrId", sQestnrId);
|
||||
mapQustnrManage.put("qestnrTmplatId", sQestnrTmplatId);
|
||||
|
||||
model.addAttribute("qestnrInfo", egovQustnrQestnManageService.selectQustnrManageQestnrSj(mapQustnrManage));
|
||||
}
|
||||
|
||||
model.addAttribute("resultList", egovQustnrQestnManageService.selectQustnrQestnManageDetail(qustnrQestnManageVO));
|
||||
return "/uss/olp/qqm/EgovQustnrQestnManageModify";
|
||||
}
|
||||
|
||||
//아이디 설정
|
||||
qustnrQestnManageVO.setFrstRegisterId((String)loginVO.getUniqId());
|
||||
qustnrQestnManageVO.setLastUpdusrId((String)loginVO.getUniqId());
|
||||
|
||||
egovQustnrQestnManageService.updateQustnrQestnManage(qustnrQestnManageVO);
|
||||
/** 목록으로갈때 검색조건 유지 */
|
||||
sLocationUrl = "redirect:/uss/olp/qqm/EgovQustnrQestnManageList.do?";
|
||||
sLocationUrl = sLocationUrl + "searchMode=" + qustnrQestnManageVO.getSearchMode();
|
||||
sLocationUrl = sLocationUrl + "&qestnrId=" + qustnrQestnManageVO.getQestnrId();
|
||||
sLocationUrl = sLocationUrl + "&qestnrTmplatId=" +qustnrQestnManageVO.getQestnrTmplatId();
|
||||
}else{
|
||||
model.addAttribute("resultList", egovQustnrQestnManageService.selectQustnrQestnManageDetail(qustnrQestnManageVO));
|
||||
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를 등록한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrQestnManageVO
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/uss/olp/qqm/EgovQustnrQestnManageRegist"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qqm/EgovQustnrQestnManageRegist.do")
|
||||
public String QustnrQestnManageRegist(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
@ModelAttribute("qustnrQestnManageVO") QustnrQestnManageVO qustnrQestnManageVO,
|
||||
BindingResult bindingResult,
|
||||
ModelMap model , RedirectAttributes redirectAttributes )
|
||||
throws Exception {
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if(!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
String sLocationUrl = "/uss/olp/qqm/EgovQustnrQestnManageRegist";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
LOGGER.info("cmd => {}", sCmd);
|
||||
|
||||
//공통코드 질문유형 조회
|
||||
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
|
||||
voComCode.setCodeId("COM018");
|
||||
model.addAttribute("cmmCode018", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
if(sCmd.equals("save")){
|
||||
|
||||
//서버 validate 체크
|
||||
beanValidator.validate(qustnrQestnManageVO, bindingResult);
|
||||
if (bindingResult.hasErrors()){
|
||||
//설문제목가져오기
|
||||
String sQestnrId = commandMap.get("qestnrId") == null ? "" : (String)commandMap.get("qestnrId");
|
||||
String sQestnrTmplatId = commandMap.get("qestnrTmplatId") == null ? "" : (String)commandMap.get("qestnrTmplatId");
|
||||
|
||||
LOGGER.info("sQestnrId => {}", sQestnrId);
|
||||
LOGGER.info("sQestnrTmplatId => {}", sQestnrTmplatId);
|
||||
if(!sQestnrId.equals("") && !sQestnrTmplatId.equals("")){
|
||||
|
||||
Map<String,String> mapQustnrManage = new HashMap<String,String>();
|
||||
mapQustnrManage.put("qestnrId", sQestnrId);
|
||||
mapQustnrManage.put("qestnrTmplatId", sQestnrTmplatId);
|
||||
|
||||
model.addAttribute("qestnrInfo", egovQustnrQestnManageService.selectQustnrManageQestnrSj(mapQustnrManage));
|
||||
}
|
||||
|
||||
return "/uss/olp/qqm/EgovQustnrQestnManageRegist";
|
||||
}
|
||||
|
||||
//아이디 설정
|
||||
qustnrQestnManageVO.setFrstRegisterId((String)loginVO.getUniqId());
|
||||
qustnrQestnManageVO.setLastUpdusrId((String)loginVO.getUniqId());
|
||||
/** 목록으로갈때 검색조건 유지 */
|
||||
egovQustnrQestnManageService.insertQustnrQestnManage(qustnrQestnManageVO);
|
||||
|
||||
/*sLocationUrl = "redirect:/uss/olp/qqm/EgovQustnrQestnManageList.do?";*/
|
||||
/*sLocationUrl = "redirect:/uss/olp/qmc/EgovQustnrManageModify.do?"; */
|
||||
sLocationUrl = "/uss/olp/qmc/EgovQustnrManageModify.do";
|
||||
//sLocationUrl = sLocationUrl + "qestnrId=" + qustnrQestnManageVO.getQestnrId();
|
||||
|
||||
QustnrManageVO qustnrManageVO = new QustnrManageVO();
|
||||
qustnrManageVO.setQestnrId(qustnrQestnManageVO.getQestnrId());
|
||||
redirectAttributes.addFlashAttribute("qustnrManageVO", qustnrManageVO); //파라미터숨기기
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker(sLocationUrl);
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
|
||||
}else{
|
||||
|
||||
//설문제목가져오기
|
||||
String sQestnrId = commandMap.get("qestnrId") == null ? "" : (String)commandMap.get("qestnrId");
|
||||
String sQestnrTmplatId = commandMap.get("qestnrTmplatId") == null ? "" : (String)commandMap.get("qestnrTmplatId");
|
||||
|
||||
LOGGER.info("sQestnrId => {}", sQestnrId);
|
||||
LOGGER.info("sQestnrTmplatId => {}", sQestnrTmplatId);
|
||||
if(!sQestnrId.equals("") && !sQestnrTmplatId.equals("")){
|
||||
|
||||
Map<String,String> mapQustnrManage = new HashMap<String,String>();
|
||||
mapQustnrManage.put("qestnrId", sQestnrId);
|
||||
mapQustnrManage.put("qestnrTmplatId", sQestnrTmplatId);
|
||||
|
||||
model.addAttribute("qestnrInfo", egovQustnrQestnManageService.selectQustnrManageQestnrSj(mapQustnrManage));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문문항를 등록한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrQestnManageVO
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/uss/olp/qqm/EgovQustnrQestnManageRegist"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qqm/EgovItnQustnrQestnManageRegist.do")
|
||||
public String EgovItnQustnrQestnManageRegist(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
BindingResult bindingResult,
|
||||
ModelMap model,
|
||||
QustnrQestnManageVO qustnrQestnManageVO
|
||||
)
|
||||
throws Exception {
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if(!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
String sLocationUrl = "/uss/olp/qqm/EgovItnQustnrQestnManageRegist";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
LOGGER.info("cmd => {}", sCmd);
|
||||
|
||||
//공통코드 질문유형 조회
|
||||
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
|
||||
voComCode.setCodeId("COM018");
|
||||
model.addAttribute("cmmCode018", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
//설문지 제목가져오기
|
||||
String sQestnrId = commandMap.get("qestnrId") == null ? "" : (String)commandMap.get("qestnrId");
|
||||
String sQestnrTmplatId = commandMap.get("qestnrTmplatId") == null ? "" : (String)commandMap.get("qestnrTmplatId");
|
||||
|
||||
|
||||
LOGGER.info("sQestnrId => {}", sQestnrId);
|
||||
LOGGER.info("sQestnrTmplatId => {}", sQestnrTmplatId);
|
||||
if(!sQestnrId.equals("") && !sQestnrTmplatId.equals("")){
|
||||
|
||||
Map<String,String> mapQustnrManage = new HashMap<String,String>();
|
||||
mapQustnrManage.put("qestnrId", sQestnrId);
|
||||
mapQustnrManage.put("qestnrTmplatId", sQestnrTmplatId);
|
||||
mapQustnrManage.put("qestnSn", (String)commandMap.get("qestnSn"));
|
||||
mapQustnrManage.put("qestnrQesitmId", qustnrQestnManageVO.getQestnrQesitmId());
|
||||
|
||||
Map<String,String> qestnrInfo = (Map<String, String>) egovQustnrQestnManageService.selectQustnrManageQestnrSj(mapQustnrManage);
|
||||
|
||||
/*설문문제 항목*/
|
||||
List<?> qustnrQestnManageList = egovQustnrQestnManageService.selectQustnrQestnManageDetail(qustnrQestnManageVO) ;
|
||||
if(qustnrQestnManageList.size() != 0){
|
||||
String qestnCn = (String)((EgovMap)qustnrQestnManageList.get(0)).get("qestnCn") ;
|
||||
String qestnTyCode = (String)((EgovMap)qustnrQestnManageList.get(0)).get("qestnTyCode") ;
|
||||
String mxmmChoiseCo = String.valueOf(((EgovMap)qustnrQestnManageList.get(0)).get("mxmmChoiseCo"));
|
||||
qestnrInfo.put("qestnCn", qestnCn) ;
|
||||
qestnrInfo.put("qestnTyCode", qestnTyCode) ;
|
||||
qestnrInfo.put("mxmmChoiseCo", mxmmChoiseCo) ;
|
||||
}
|
||||
model.addAttribute("qestnrInfo", qestnrInfo);
|
||||
model.addAttribute("qustnrQestnManageVO", mapQustnrManage);
|
||||
}
|
||||
|
||||
/** 설문문제 항목 */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
//설문문제 조회를 위해 값 세팅
|
||||
|
||||
List<?> resultList = new ArrayList<>();
|
||||
if(!"".equals(qustnrQestnManageVO.getQestnrQesitmId())){
|
||||
searchVO.setSearchKeyword(qustnrQestnManageVO.getQestnrQesitmId());
|
||||
searchVO.setSearchCondition("QUSTNR_QESITM_ID");
|
||||
resultList= egovQustnrItemManageService.selectQustnrItemManageList(searchVO);
|
||||
}
|
||||
|
||||
model.addAttribute("qustnrItemList", resultList);
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1,140 +0,0 @@
|
||||
package itn.let.uss.olp.qri.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
/**
|
||||
* 설문조사 Service Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public interface EgovQustnrRespondInfoService {
|
||||
|
||||
/**
|
||||
* 설문템플릿을 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrTmplatManage(Map<?, ?> map) throws Exception;
|
||||
|
||||
/**
|
||||
* 객관식 통계를 조회 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageStatistics1(Map<?, ?> map) throws Exception;
|
||||
/**
|
||||
* 주관식 통계를 조회 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageStatistics2(Map<?, ?> map) throws Exception;
|
||||
/**
|
||||
* 회원정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public Map<?, ?> selectQustnrRespondInfoManageEmplyrinfo(Map<?, ?> map) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageComtnqestnrinfo(Map<?, ?> map) throws Exception;
|
||||
/**
|
||||
* 문항정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageComtnqustnrqesitm(Map<?, ?> map) throws Exception;
|
||||
/**
|
||||
* 항목정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageComtnqustnriem(Map<?, ?> map) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문조사(설문등록)를(을) 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageList(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문조사(설문등록)를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrRespondInfoManageListCnt(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사) 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoList(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 상세조회 한다.
|
||||
* @param qustnrRespondInfoVO - 응답자결과(설문조사) 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoDetail(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrRespondInfoListCnt(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 등록한다.
|
||||
* @param qustnrRespondInfoVO - 응답자결과(설문조사) 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void insertQustnrRespondInfo(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 수정한다.
|
||||
* @param qustnrRespondInfoVO - 응답자결과(설문조사) 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void updateQustnrRespondInfo(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 삭제한다.
|
||||
* @param qustnrRespondInfoVO - 응답자결과(설문조사) 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void deleteQustnrRespondInfo(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception;
|
||||
|
||||
|
||||
}
|
||||
@ -1,264 +0,0 @@
|
||||
package itn.let.uss.olp.qri.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
/**
|
||||
* 설문조사 VO Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class QustnrRespondInfoVO implements Serializable {
|
||||
|
||||
/**
|
||||
* serialVersionUID
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 설문응답ID */
|
||||
private String qestnrQesrspnsId = "";
|
||||
|
||||
/** 설문문항ID */
|
||||
private String qestnrQesitmId = "";
|
||||
|
||||
/** 설문ID */
|
||||
private String qestnrId = "";
|
||||
|
||||
/** 설문템플릿ID */
|
||||
private String qestnrTmplatId = "";
|
||||
|
||||
/** 설문항목ID */
|
||||
private String qustnrIemId = "";
|
||||
|
||||
/** 응답자답변내용 */
|
||||
private String respondAnswerCn = "";
|
||||
|
||||
/** 응답자명 */
|
||||
private String respondNm = "";
|
||||
|
||||
/** 기타답변내용 */
|
||||
private String etcAnswerCn = "";
|
||||
|
||||
/** 최초등록시점 */
|
||||
private String frstRegisterPnttm = "";
|
||||
|
||||
/** 최등등록시점ID */
|
||||
private String frstRegisterId = "";
|
||||
|
||||
/** 최종수정시점 */
|
||||
private String lastUpdusrPnttm = "";
|
||||
|
||||
/** 최종수정시점ID */
|
||||
private String lastUpdusrId = "";
|
||||
|
||||
/**
|
||||
* qestnrQesrspnsId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrQesrspnsId() {
|
||||
return qestnrQesrspnsId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrQesrspnsId attribute 값을 설정한다.
|
||||
* @return qestnrQesrspnsId String
|
||||
*/
|
||||
public void setQestnrQesrspnsId(String qestnrQesrspnsId) {
|
||||
this.qestnrQesrspnsId = qestnrQesrspnsId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrQesitmId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrQesitmId() {
|
||||
return qestnrQesitmId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrQesitmId attribute 값을 설정한다.
|
||||
* @return qestnrQesitmId String
|
||||
*/
|
||||
public void setQestnrQesitmId(String qestnrQesitmId) {
|
||||
this.qestnrQesitmId = qestnrQesitmId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrId() {
|
||||
return qestnrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrId attribute 값을 설정한다.
|
||||
* @return qestnrId String
|
||||
*/
|
||||
public void setQestnrId(String qestnrId) {
|
||||
this.qestnrId = qestnrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTmplatId() {
|
||||
return qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 값을 설정한다.
|
||||
* @return qestnrTmplatId String
|
||||
*/
|
||||
public void setQestnrTmplatId(String qestnrTmplatId) {
|
||||
this.qestnrTmplatId = qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qustnrIemId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQustnrIemId() {
|
||||
return qustnrIemId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qustnrIemId attribute 값을 설정한다.
|
||||
* @return qustnrIemId String
|
||||
*/
|
||||
public void setQustnrIemId(String qustnrIemId) {
|
||||
this.qustnrIemId = qustnrIemId;
|
||||
}
|
||||
|
||||
/**
|
||||
* respondAnswerCn attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getRespondAnswerCn() {
|
||||
return respondAnswerCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* respondAnswerCn attribute 값을 설정한다.
|
||||
* @return respondAnswerCn String
|
||||
*/
|
||||
public void setRespondAnswerCn(String respondAnswerCn) {
|
||||
this.respondAnswerCn = respondAnswerCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* respondNm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getRespondNm() {
|
||||
return respondNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* respondNm attribute 값을 설정한다.
|
||||
* @return respondNm String
|
||||
*/
|
||||
public void setRespondNm(String respondNm) {
|
||||
this.respondNm = respondNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* etcAnswerCn attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getEtcAnswerCn() {
|
||||
return etcAnswerCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* etcAnswerCn attribute 값을 설정한다.
|
||||
* @return etcAnswerCn String
|
||||
*/
|
||||
public void setEtcAnswerCn(String etcAnswerCn) {
|
||||
this.etcAnswerCn = etcAnswerCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterPnttm() {
|
||||
return frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 값을 설정한다.
|
||||
* @return frstRegisterPnttm String
|
||||
*/
|
||||
public void setFrstRegisterPnttm(String frstRegisterPnttm) {
|
||||
this.frstRegisterPnttm = frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterId() {
|
||||
return frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 값을 설정한다.
|
||||
* @return frstRegisterId String
|
||||
*/
|
||||
public void setFrstRegisterId(String frstRegisterId) {
|
||||
this.frstRegisterId = frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrPnttm() {
|
||||
return lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 값을 설정한다.
|
||||
* @return lastUpdusrPnttm String
|
||||
*/
|
||||
public void setLastUpdusrPnttm(String lastUpdusrPnttm) {
|
||||
this.lastUpdusrPnttm = lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrId() {
|
||||
return lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 값을 설정한다.
|
||||
* @return lastUpdusrId String
|
||||
*/
|
||||
public void setLastUpdusrId(String lastUpdusrId) {
|
||||
this.lastUpdusrId = lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* toString 메소드를 대치한다.
|
||||
*/
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
@ -1,202 +0,0 @@
|
||||
package itn.let.uss.olp.qri.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qri.service.EgovQustnrRespondInfoService;
|
||||
import itn.let.uss.olp.qri.service.QustnrRespondInfoVO;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
/**
|
||||
* 설문조사 ServiceImpl Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Service("egovQustnrRespondInfoService")
|
||||
public class EgovQustnrRespondInfoServiceImpl extends EgovAbstractServiceImpl implements EgovQustnrRespondInfoService{
|
||||
|
||||
@Resource(name="qustnrRespondInfoDao")
|
||||
private QustnrRespondInfoDao dao;
|
||||
|
||||
@Resource(name="qustnrRespondInfoIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
/**
|
||||
* 설문템플릿을 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrTmplatManage(Map<?, ?> map) throws Exception{
|
||||
return dao.selectQustnrTmplatManage(map);
|
||||
}
|
||||
/**
|
||||
* 객관식 통계를 조회 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrRespondInfoManageStatistics1(Map<?, ?> map) throws Exception{
|
||||
return dao.selectQustnrRespondInfoManageStatistics1(map);
|
||||
}
|
||||
/**
|
||||
* 주관식 통계를 조회 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrRespondInfoManageStatistics2(Map<?, ?> map) throws Exception{
|
||||
return dao.selectQustnrRespondInfoManageStatistics2(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 회원정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public Map<?, ?> selectQustnrRespondInfoManageEmplyrinfo(Map<?, ?> map) throws Exception{
|
||||
return dao.selectQustnrRespondInfoManageEmplyrinfo(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrRespondInfoManageComtnqestnrinfo(Map<?, ?> map) throws Exception{
|
||||
return dao.selectQustnrRespondInfoManageComtnqestnrinfo(map);
|
||||
}
|
||||
/**
|
||||
* 문항정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrRespondInfoManageComtnqustnrqesitm(Map<?, ?> map) throws Exception{
|
||||
return dao.selectQustnrRespondInfoManageComtnqustnrqesitm(map);
|
||||
}
|
||||
/**
|
||||
* 항목정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrRespondInfoManageComtnqustnriem(Map<?, ?> map) throws Exception{
|
||||
return dao.selectQustnrRespondInfoManageComtnqustnriem(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문조사(설문등록)를(을) 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrRespondInfoManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrRespondInfoManageList(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문조사(설문등록)를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public int selectQustnrRespondInfoManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrRespondInfoManageListCnt(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사) 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrRespondInfoList(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrRespondInfoList(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 상세조회 한다.
|
||||
* @param QustnrRespondInfo - 회정정보가 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrRespondInfoDetail(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception{
|
||||
return dao.selectQustnrRespondInfoDetail(qustnrRespondInfoVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public int selectQustnrRespondInfoListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrRespondInfoListCnt(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 등록한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void insertQustnrRespondInfo(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception {
|
||||
String sMakeId = idgenService.getNextStringId();
|
||||
|
||||
qustnrRespondInfoVO.setQestnrQesrspnsId(sMakeId);
|
||||
|
||||
dao.insertQustnrRespondInfo(qustnrRespondInfoVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 수정한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void updateQustnrRespondInfo(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception{
|
||||
dao.updateQustnrRespondInfo(qustnrRespondInfoVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 삭제한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void deleteQustnrRespondInfo(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception{
|
||||
dao.deleteQustnrRespondInfo(qustnrRespondInfoVO);
|
||||
}
|
||||
}
|
||||
@ -1,173 +0,0 @@
|
||||
package itn.let.uss.olp.qri.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qri.service.QustnrRespondInfoVO;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
/**
|
||||
* 설문조사 Dao Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Repository("qustnrRespondInfoDao")
|
||||
public class QustnrRespondInfoDao extends EgovAbstractDAO {
|
||||
|
||||
|
||||
/**
|
||||
* 설문템플릿을 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrTmplatManage(Map<?, ?> map) throws Exception{
|
||||
return list("QustnrRespondInfo.selectQustnrTmplatManages", map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 객관식 통계를 조회 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageStatistics1(Map<?, ?> map) throws Exception{
|
||||
return list("QustnrRespondInfo.selectQustnrRespondInfoManageStatistics1", map);
|
||||
}
|
||||
/**
|
||||
* 주관식 통계를 조회 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageStatistics2(Map<?, ?> map) throws Exception{
|
||||
return list("QustnrRespondInfo.selectQustnrRespondInfoManageStatistics2", map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 회원정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public Map<?, ?> selectQustnrRespondInfoManageEmplyrinfo(Map<?, ?> map) throws Exception{
|
||||
return (Map<?, ?>)select("QustnrRespondInfo.selectQustnrRespondInfoManageEmplyrinfo", map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageComtnqestnrinfo(Map<?, ?> map) throws Exception{
|
||||
return list("QustnrRespondInfo.selectQustnrRespondInfoManageComtnqestnrinfo", map);
|
||||
}
|
||||
/**
|
||||
* 문항정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageComtnqustnrqesitm(Map<?, ?> map) throws Exception{
|
||||
return list("QustnrRespondInfo.selectQustnrRespondInfoManageComtnqustnrqesitm", map);
|
||||
}
|
||||
/**
|
||||
* 항목정보를 조회한다.
|
||||
* @param map - 조회할 정보가 담긴 map
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageComtnqustnriem(Map<?, ?> map) throws Exception{
|
||||
return list("QustnrRespondInfo.selectQustnrRespondInfoManageComtnqustnriem", map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문조사(설문등록)를(을) 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return list("QustnrRespondInfo.selectQustnrRespondInfoManage", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문조사(설문등록)를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrRespondInfoManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return (Integer)select("QustnrRespondInfo.selectQustnrRespondInfoManageCnt", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사) 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoList(ComDefaultVO searchVO) throws Exception{
|
||||
return list("QustnrRespondInfo.selectQustnrRespondInfo", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 상세조회 한다.
|
||||
* @param qustnrRespondInfoVO - 응답자결과(설문조사) 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondInfoDetail(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception{
|
||||
return list("QustnrRespondInfo.selectQustnrRespondInfoDetail", qustnrRespondInfoVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrRespondInfoListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return (Integer)select("QustnrRespondInfo.selectQustnrRespondInfoCnt", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 등록한다.
|
||||
* @param qqustnrRespondInfoVO - 응답자결과(설문조사) 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void insertQustnrRespondInfo(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception{
|
||||
insert("QustnrRespondInfo.insertQustnrRespondInfo", qustnrRespondInfoVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 수정한다.
|
||||
* @param qustnrRespondInfoVO - 응답자결과(설문조사) 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void updateQustnrRespondInfo(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception{
|
||||
insert("QustnrRespondInfo.updateQustnrRespondInfo", qustnrRespondInfoVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자결과(설문조사)를(을) 삭제한다.
|
||||
* @param qustnrRespondInfoVO - 응답자결과(설문조사) 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void deleteQustnrRespondInfo(QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception{
|
||||
insert("QustnrRespondInfo.deleteQustnrRespondInfo", qustnrRespondInfoVO);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,71 +0,0 @@
|
||||
package itn.let.uss.olp.qrm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
/**
|
||||
* 설문응답자관리 Service Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public interface EgovQustnrRespondManageService {
|
||||
|
||||
/**
|
||||
* 응답자정보 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondManageList(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 상세조회 한다.
|
||||
* @param qustnrRespondManageVO - 응답자정보 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondManageDetail(QustnrRespondManageVO qustnrRespondManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrRespondManageListCnt(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 등록한다.
|
||||
* @param qustnrRespondManageVO - 응답자정보 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void insertQustnrRespondManage(QustnrRespondManageVO qustnrRespondManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 수정한다.
|
||||
* @param qustnrRespondManageVO - 응답자정보 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void updateQustnrRespondManage(QustnrRespondManageVO qustnrRespondManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 삭제한다.
|
||||
* @param qustnrRespondManageVO - 응답자정보 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void deleteQustnrRespondManage(QustnrRespondManageVO qustnrRespondManageVO) throws Exception;
|
||||
|
||||
|
||||
}
|
||||
@ -1,303 +0,0 @@
|
||||
package itn.let.uss.olp.qrm.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
/**
|
||||
* 설문응답자관리 VO Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class QustnrRespondManageVO implements Serializable {
|
||||
|
||||
/**
|
||||
* serialVersionUID
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 설문지ID */
|
||||
private String qestnrId = "";
|
||||
|
||||
/** 설문응답자아이디 */
|
||||
private String qestnrRespondId = "";
|
||||
|
||||
/** 설별코드 */
|
||||
private String sexdstnCode = "";
|
||||
|
||||
/** 직업유형코드 */
|
||||
private String occpTyCode = "";
|
||||
|
||||
/** 응답자명 */
|
||||
private String respondNm = "";
|
||||
|
||||
/** 생년월일 */
|
||||
private String brth = "";
|
||||
|
||||
/** 첫번째전화번호 */
|
||||
private String areaNo = "";
|
||||
|
||||
/** 두번째전화번호 */
|
||||
private String middleTelno = "";
|
||||
|
||||
/** 마지막전화번호 */
|
||||
private String endTelno = "";
|
||||
|
||||
/** 최초등록시점 */
|
||||
private String frstRegisterPnttm = "";
|
||||
|
||||
/** 최초등록자ID */
|
||||
private String frstRegisterId = "";
|
||||
|
||||
/** 최종수정시점 */
|
||||
private String lastUpdusrPnttm = "";
|
||||
|
||||
/** 최종수정ID */
|
||||
private String lastUpdusrId = "";
|
||||
|
||||
/** 설문템플릿ID */
|
||||
private String qestnrTmplatId = "";
|
||||
|
||||
/**
|
||||
* qestnrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrId() {
|
||||
return qestnrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrId attribute 값을 설정한다.
|
||||
* @return qestnrId String
|
||||
*/
|
||||
public void setQestnrId(String qestnrId) {
|
||||
this.qestnrId = qestnrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrRespondId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrRespondId() {
|
||||
return qestnrRespondId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrRespondId attribute 값을 설정한다.
|
||||
* @return qestnrRespondId String
|
||||
*/
|
||||
public void setQestnrRespondId(String qestnrRespondId) {
|
||||
this.qestnrRespondId = qestnrRespondId;
|
||||
}
|
||||
|
||||
/**
|
||||
* sexdstnCode attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getSexdstnCode() {
|
||||
return sexdstnCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* sexdstnCode attribute 값을 설정한다.
|
||||
* @return sexdstnCode String
|
||||
*/
|
||||
public void setSexdstnCode(String sexdstnCode) {
|
||||
this.sexdstnCode = sexdstnCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* occpTyCode attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getOccpTyCode() {
|
||||
return occpTyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* occpTyCode attribute 값을 설정한다.
|
||||
* @return occpTyCode String
|
||||
*/
|
||||
public void setOccpTyCode(String occpTyCode) {
|
||||
this.occpTyCode = occpTyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* respondNm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getRespondNm() {
|
||||
return respondNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* respondNm attribute 값을 설정한다.
|
||||
* @return respondNm String
|
||||
*/
|
||||
public void setRespondNm(String respondNm) {
|
||||
this.respondNm = respondNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* brth attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getBrth() {
|
||||
return brth;
|
||||
}
|
||||
|
||||
/**
|
||||
* brth attribute 값을 설정한다.
|
||||
* @return brth String
|
||||
*/
|
||||
public void setBrth(String brth) {
|
||||
this.brth = brth;
|
||||
}
|
||||
|
||||
/**
|
||||
* areaNo attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getAreaNo() {
|
||||
return areaNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* areaNo attribute 값을 설정한다.
|
||||
* @return areaNo String
|
||||
*/
|
||||
public void setAreaNo(String areaNo) {
|
||||
this.areaNo = areaNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* middleTelno attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getMiddleTelno() {
|
||||
return middleTelno;
|
||||
}
|
||||
|
||||
/**
|
||||
* middleTelno attribute 값을 설정한다.
|
||||
* @return middleTelno String
|
||||
*/
|
||||
public void setMiddleTelno(String middleTelno) {
|
||||
this.middleTelno = middleTelno;
|
||||
}
|
||||
|
||||
/**
|
||||
* endTelno attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getEndTelno() {
|
||||
return endTelno;
|
||||
}
|
||||
|
||||
/**
|
||||
* endTelno attribute 값을 설정한다.
|
||||
* @return endTelno String
|
||||
*/
|
||||
public void setEndTelno(String endTelno) {
|
||||
this.endTelno = endTelno;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterPnttm() {
|
||||
return frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 값을 설정한다.
|
||||
* @return frstRegisterPnttm String
|
||||
*/
|
||||
public void setFrstRegisterPnttm(String frstRegisterPnttm) {
|
||||
this.frstRegisterPnttm = frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterId() {
|
||||
return frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 값을 설정한다.
|
||||
* @return frstRegisterId String
|
||||
*/
|
||||
public void setFrstRegisterId(String frstRegisterId) {
|
||||
this.frstRegisterId = frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrPnttm() {
|
||||
return lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 값을 설정한다.
|
||||
* @return lastUpdusrPnttm String
|
||||
*/
|
||||
public void setLastUpdusrPnttm(String lastUpdusrPnttm) {
|
||||
this.lastUpdusrPnttm = lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrId() {
|
||||
return lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 값을 설정한다.
|
||||
* @return lastUpdusrId String
|
||||
*/
|
||||
public void setLastUpdusrId(String lastUpdusrId) {
|
||||
this.lastUpdusrId = lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTmplatId() {
|
||||
return qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 값을 설정한다.
|
||||
* @return qestnrTmplatId String
|
||||
*/
|
||||
public void setQestnrTmplatId(String qestnrTmplatId) {
|
||||
this.qestnrTmplatId = qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* toString 메소드를 대치한다.
|
||||
*/
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,109 +0,0 @@
|
||||
package itn.let.uss.olp.qrm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qrm.service.EgovQustnrRespondManageService;
|
||||
import itn.let.uss.olp.qrm.service.QustnrRespondManageVO;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
/**
|
||||
* 설문응답자관리 ServiceImpl Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Service("egovQustnrRespondManageService")
|
||||
public class EgovQustnrRespondManageServiceImpl extends EgovAbstractServiceImpl implements EgovQustnrRespondManageService{
|
||||
|
||||
|
||||
@Resource(name="qustnrRespondManageDao")
|
||||
private QustnrRespondManageDao dao;
|
||||
|
||||
|
||||
@Resource(name="qustnrRespondManageIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
/**
|
||||
* 응답자정보 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrRespondManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrRespondManageList(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 상세조회 한다.
|
||||
* @param QustnrRespondManage - 회정정보가 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrRespondManageDetail(QustnrRespondManageVO qustnrRespondManageVO) throws Exception{
|
||||
return dao.selectQustnrRespondManageDetail(qustnrRespondManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public int selectQustnrRespondManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrRespondManageListCnt(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 등록한다.
|
||||
* @param qustnrRespondManageVO - 응답자정보 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void insertQustnrRespondManage(QustnrRespondManageVO qustnrRespondManageVO) throws Exception {
|
||||
String sMakeId = idgenService.getNextStringId();
|
||||
|
||||
qustnrRespondManageVO.setQestnrRespondId(sMakeId);
|
||||
|
||||
dao.insertQustnrRespondManage(qustnrRespondManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 수정한다.
|
||||
* @param qustnrRespondManageVO - 응답자정보 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void updateQustnrRespondManage(QustnrRespondManageVO qustnrRespondManageVO) throws Exception{
|
||||
dao.updateQustnrRespondManage(qustnrRespondManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 삭제한다.
|
||||
* @param qustnrRespondManageVO - 응답자정보 정보가 담긴 VO
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void deleteQustnrRespondManage(QustnrRespondManageVO qustnrRespondManageVO) throws Exception{
|
||||
dao.deleteQustnrRespondManage(qustnrRespondManageVO);
|
||||
}
|
||||
}
|
||||
@ -1,86 +0,0 @@
|
||||
package itn.let.uss.olp.qrm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qrm.service.QustnrRespondManageVO;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
/**
|
||||
* 설문응답자관리 Dao Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Repository("qustnrRespondManageDao")
|
||||
public class QustnrRespondManageDao extends EgovAbstractDAO {
|
||||
|
||||
/**
|
||||
* 응답자정보 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return list("QustnrRespondManage.selectQustnrRespondManage", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 상세조회 한다.
|
||||
* @param qustnrRespondManageVO - 응답자정보 정보 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrRespondManageDetail(QustnrRespondManageVO qustnrRespondManageVO) throws Exception{
|
||||
return list("QustnrRespondManage.selectQustnrRespondManageDetail", qustnrRespondManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrRespondManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return (Integer)select("QustnrRespondManage.selectQustnrRespondManageCnt", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 등록한다.
|
||||
* @param qqustnrRespondManageVO - 응답자정보 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void insertQustnrRespondManage(QustnrRespondManageVO qustnrRespondManageVO) throws Exception{
|
||||
insert("QustnrRespondManage.insertQustnrRespondManage", qustnrRespondManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 수정한다.
|
||||
* @param qustnrRespondManageVO - 응답자정보 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void updateQustnrRespondManage(QustnrRespondManageVO qustnrRespondManageVO) throws Exception{
|
||||
insert("QustnrRespondManage.updateQustnrRespondManage", qustnrRespondManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를(을) 삭제한다.
|
||||
* @param qustnrRespondManageVO - 응답자정보 정보 담김 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void deleteQustnrRespondManage(QustnrRespondManageVO qustnrRespondManageVO) throws Exception{
|
||||
insert("QustnrRespondManage.deleteQustnrRespondManage", qustnrRespondManageVO);
|
||||
}
|
||||
}
|
||||
@ -1,283 +0,0 @@
|
||||
package itn.let.uss.olp.qrm.web;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import itn.com.cmm.ComDefaultCodeVO;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.com.cmm.EgovMessageSource;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.com.cmm.service.EgovCmmUseService;
|
||||
import itn.let.uss.olp.qrm.service.EgovQustnrRespondManageService;
|
||||
import itn.let.uss.olp.qrm.service.QustnrRespondManageVO;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springmodules.validation.commons.DefaultBeanValidator;
|
||||
/**
|
||||
* 설문응답자관리 Controller Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Controller
|
||||
public class EgovQustnrRespondManageController {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(EgovQustnrRespondManageController.class);
|
||||
|
||||
@Autowired
|
||||
private DefaultBeanValidator beanValidator;
|
||||
|
||||
/** EgovMessageSource */
|
||||
@Resource(name="egovMessageSource")
|
||||
EgovMessageSource egovMessageSource;
|
||||
|
||||
@Resource(name = "egovQustnrRespondManageService")
|
||||
private EgovQustnrRespondManageService egovQustnrRespondManageService;
|
||||
|
||||
/** EgovPropertyService */
|
||||
@Resource(name = "propertiesService")
|
||||
protected EgovPropertyService propertiesService;
|
||||
|
||||
@Resource(name="EgovCmmUseService")
|
||||
private EgovCmmUseService cmmUseService;
|
||||
|
||||
/**
|
||||
* 응답자정보 목록을 조회한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrRespondManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qrm/EgovQustnrRespondManageList"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qrm/EgovQustnrRespondManageList.do")
|
||||
public String EgovQustnrRespondManageList(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
QustnrRespondManageVO qustnrRespondManageVO,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
|
||||
String sSearchMode = commandMap.get("searchMode") == null ? "" : (String)commandMap.get("searchMode");
|
||||
|
||||
//설문지정보에서 넘어오면 자동검색 설정
|
||||
if(sSearchMode.equals("Y")){
|
||||
searchVO.setSearchCondition("QESTNR_ID");
|
||||
searchVO.setSearchKeyword(qustnrRespondManageVO.getQestnrId());
|
||||
}
|
||||
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
model.addAttribute("resultList", egovQustnrRespondManageService.selectQustnrRespondManageList(searchVO));
|
||||
|
||||
model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String)commandMap.get("searchKeyword"));
|
||||
model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String)commandMap.get("searchCondition"));
|
||||
|
||||
int totCnt = (Integer)egovQustnrRespondManageService.selectQustnrRespondManageListCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
return "/uss/olp/qrm/EgovQustnrRespondManageList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보 목록을 상세조회 조회한다.
|
||||
* @param searchVO
|
||||
* @param qustnrRespondManageVO
|
||||
* @param commandMap
|
||||
* @param model
|
||||
* @return "/uss/olp/qrm/EgovQustnrRespondManageDetail"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qrm/EgovQustnrRespondManageDetail.do")
|
||||
public String EgovQustnrRespondManageDetail(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
QustnrRespondManageVO qustnrRespondManageVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
|
||||
String sLocationUrl = "/uss/olp/qrm/EgovQustnrRespondManageDetail";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
|
||||
if(sCmd.equals("del")){
|
||||
egovQustnrRespondManageService.deleteQustnrRespondManage(qustnrRespondManageVO);
|
||||
sLocationUrl = "redirect:/uss/olp/qrm/EgovQustnrRespondManageList.do";
|
||||
}else{
|
||||
//성별코드조회
|
||||
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
|
||||
voComCode.setCodeId("COM014");
|
||||
model.addAttribute("comCode014", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
//직업코드조회
|
||||
voComCode.setCodeId("COM034");
|
||||
model.addAttribute("comCode034", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
model.addAttribute("resultList", egovQustnrRespondManageService.selectQustnrRespondManageDetail(qustnrRespondManageVO));
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를 수정한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrRespondManageVO
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/uss/olp/qrm/EgovQustnrRespondManageModify"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qrm/EgovQustnrRespondManageModify.do")
|
||||
public String QustnrRespondManageModify(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
@ModelAttribute("qustnrRespondManageVO") QustnrRespondManageVO qustnrRespondManageVO,
|
||||
BindingResult bindingResult,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if(!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
String sLocationUrl = "/uss/olp/qrm/EgovQustnrRespondManageModify";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
|
||||
//성별코드조회
|
||||
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
|
||||
voComCode.setCodeId("COM014");
|
||||
model.addAttribute("comCode014", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
//직업코드조회
|
||||
voComCode.setCodeId("COM034");
|
||||
model.addAttribute("comCode034", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
if(sCmd.equals("save")){
|
||||
//서버 validate 체크
|
||||
beanValidator.validate(qustnrRespondManageVO, bindingResult);
|
||||
if(bindingResult.hasErrors()){
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
//아이디 설정
|
||||
qustnrRespondManageVO.setFrstRegisterId((String)loginVO.getUniqId());
|
||||
qustnrRespondManageVO.setLastUpdusrId((String)loginVO.getUniqId());
|
||||
|
||||
egovQustnrRespondManageService.updateQustnrRespondManage(qustnrRespondManageVO);
|
||||
sLocationUrl = "redirect:/uss/olp/qrm/EgovQustnrRespondManageList.do";
|
||||
}else{
|
||||
model.addAttribute("resultList", egovQustnrRespondManageService.selectQustnrRespondManageDetail(qustnrRespondManageVO));
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 응답자정보를 등록한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrRespondManageVO
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/uss/olp/qrm/EgovQustnrRespondManageRegist"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/uss/olp/qrm/EgovQustnrRespondManageRegist.do")
|
||||
public String QustnrRespondManageRegist(
|
||||
@ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map <String, Object> commandMap,
|
||||
@ModelAttribute("qustnrRespondManageVO") QustnrRespondManageVO qustnrRespondManageVO,
|
||||
BindingResult bindingResult,
|
||||
ModelMap model)
|
||||
throws Exception {
|
||||
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if(!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
String sLocationUrl = "/uss/olp/qrm/EgovQustnrRespondManageRegist";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String)commandMap.get("cmd");
|
||||
LOGGER.info("cmd => {}", sCmd);
|
||||
|
||||
//성별코드조회
|
||||
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
|
||||
voComCode.setCodeId("COM014");
|
||||
model.addAttribute("comCode014", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
//직업코드조회
|
||||
voComCode.setCodeId("COM034");
|
||||
model.addAttribute("comCode034", cmmUseService.selectCmmCodeDetail(voComCode));
|
||||
|
||||
if(sCmd.equals("save")){
|
||||
//서버 validate 체크
|
||||
beanValidator.validate(qustnrRespondManageVO, bindingResult);
|
||||
if(bindingResult.hasErrors()){
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
//아이디 설정
|
||||
qustnrRespondManageVO.setFrstRegisterId((String)loginVO.getUniqId());
|
||||
qustnrRespondManageVO.setLastUpdusrId((String)loginVO.getUniqId());
|
||||
|
||||
egovQustnrRespondManageService.insertQustnrRespondManage(qustnrRespondManageVO);
|
||||
sLocationUrl = "redirect:/uss/olp/qrm/EgovQustnrRespondManageList.do";
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1,80 +0,0 @@
|
||||
package itn.let.uss.olp.qtm.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
/**
|
||||
* 설문템플릿 Service Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public interface EgovQustnrTmplatManageService {
|
||||
|
||||
/**
|
||||
* 템플릿파일명을 조회한다.
|
||||
* @param qustnrTmplatManageVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public Map<?, ?> selectQustnrTmplatManageTmplatImagepathnm(QustnrTmplatManageVO qustnrTmplatManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문템플릿 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrTmplatManageList(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 상세조회 한다.
|
||||
* @param QustnrTmplatManage - 회정정보가 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public QustnrTmplatManageVO selectQustnrTmplatManageDetail(QustnrTmplatManageVO qustnrTmplatManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrTmplatManageListCnt(ComDefaultVO searchVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 등록한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void insertQustnrTmplatManage(QustnrTmplatManageVO qustnrTmplatManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 수정한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void updateQustnrTmplatManage(QustnrTmplatManageVO qustnrTmplatManageVO) throws Exception;
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 삭제한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
void deleteQustnrTmplatManage(QustnrTmplatManageVO qustnrTmplatManageVO) throws Exception;
|
||||
|
||||
|
||||
}
|
||||
@ -1,236 +0,0 @@
|
||||
package itn.let.uss.olp.qtm.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
/**
|
||||
* 설문템플릿 VO Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class QustnrTmplatManageVO implements Serializable {
|
||||
|
||||
/**
|
||||
* serialVersionUID
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 설문템플릿 아이디 */
|
||||
private String qestnrTmplatId = "";
|
||||
|
||||
/** 설문템플릿 유형 */
|
||||
private String qestnrTmplatTy = "";
|
||||
|
||||
/** 설문템플 이미지경로 */
|
||||
public byte[] qestnrTmplatImagepathnm;
|
||||
|
||||
/** 설문템플릿 설명 */
|
||||
private String qestnrTmplatCn = "";
|
||||
|
||||
/** 서물템플릿경로명 */
|
||||
private String qestnrTmplatCours;
|
||||
|
||||
/** 최초등록시점 */
|
||||
private String frstRegisterPnttm = "";
|
||||
|
||||
/** 최초등록자아이디 */
|
||||
private String frstRegisterId = "";
|
||||
|
||||
/** 최종수정자 시점 */
|
||||
private String lastUpdusrPnttm = "";
|
||||
|
||||
/** 최종수정자아이디 */
|
||||
private String lastUpdusrId = "";
|
||||
|
||||
/** 화면 명령 처리 */
|
||||
private String cmd = "";
|
||||
|
||||
private String frstRegisterNm = "";
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTmplatId() {
|
||||
return qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatId attribute 값을 설정한다.
|
||||
* @return qestnrTmplatId String
|
||||
*/
|
||||
public void setQestnrTmplatId(String qestnrTmplatId) {
|
||||
this.qestnrTmplatId = qestnrTmplatId;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatTy attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTmplatTy() {
|
||||
return qestnrTmplatTy;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatTy attribute 값을 설정한다.
|
||||
* @return qestnrTmplatTy String
|
||||
*/
|
||||
public void setQestnrTmplatTy(String qestnrTmplatTy) {
|
||||
this.qestnrTmplatTy = qestnrTmplatTy;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatImagepathnm attribute 값을 설정한다.
|
||||
* @return qestnrTmplatImagepathnm byte[]
|
||||
*/
|
||||
public void setQestnrTmplatImagepathnm(byte[] qestnrTmplatImagepathnm) {
|
||||
this.qestnrTmplatImagepathnm = qestnrTmplatImagepathnm;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatCn attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTmplatCn() {
|
||||
return qestnrTmplatCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatCn attribute 값을 설정한다.
|
||||
* @return qestnrTmplatCn String
|
||||
*/
|
||||
public void setQestnrTmplatCn(String qestnrTmplatCn) {
|
||||
this.qestnrTmplatCn = qestnrTmplatCn;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatCours attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getQestnrTmplatCours() {
|
||||
return qestnrTmplatCours;
|
||||
}
|
||||
|
||||
/**
|
||||
* qestnrTmplatCours attribute 값을 설정한다.
|
||||
* @return qestnrTmplatCours String
|
||||
*/
|
||||
public void setQestnrTmplatCours(String qestnrTmplatCours) {
|
||||
this.qestnrTmplatCours = qestnrTmplatCours;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterPnttm() {
|
||||
return frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterPnttm attribute 값을 설정한다.
|
||||
* @return frstRegisterPnttm String
|
||||
*/
|
||||
public void setFrstRegisterPnttm(String frstRegisterPnttm) {
|
||||
this.frstRegisterPnttm = frstRegisterPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getFrstRegisterId() {
|
||||
return frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 값을 설정한다.
|
||||
* @return frstRegisterId String
|
||||
*/
|
||||
public void setFrstRegisterId(String frstRegisterId) {
|
||||
this.frstRegisterId = frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrPnttm() {
|
||||
return lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrPnttm attribute 값을 설정한다.
|
||||
* @return lastUpdusrPnttm String
|
||||
*/
|
||||
public void setLastUpdusrPnttm(String lastUpdusrPnttm) {
|
||||
this.lastUpdusrPnttm = lastUpdusrPnttm;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getLastUpdusrId() {
|
||||
return lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 값을 설정한다.
|
||||
* @return lastUpdusrId String
|
||||
*/
|
||||
public void setLastUpdusrId(String lastUpdusrId) {
|
||||
this.lastUpdusrId = lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* cmd attribute 를 리턴한다.
|
||||
* @return the String
|
||||
*/
|
||||
public String getCmd() {
|
||||
return cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* cmd attribute 값을 설정한다.
|
||||
* @return cmd String
|
||||
*/
|
||||
public void setCmd(String cmd) {
|
||||
this.cmd = cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* toString 메소드를 대치한다.
|
||||
*/
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this);
|
||||
}
|
||||
|
||||
public String getFrstRegisterNm() {
|
||||
return frstRegisterNm;
|
||||
}
|
||||
|
||||
public void setFrstRegisterNm(String frstRegisterNm) {
|
||||
this.frstRegisterNm = frstRegisterNm;
|
||||
}
|
||||
|
||||
public byte[] getQestnrTmplatImagepathnm() {
|
||||
return qestnrTmplatImagepathnm;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,119 +0,0 @@
|
||||
package itn.let.uss.olp.qtm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qtm.service.EgovQustnrTmplatManageService;
|
||||
import itn.let.uss.olp.qtm.service.QustnrTmplatManageVO;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
/**
|
||||
* 설문템플릿 ServiceImpl Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Service("egovQustnrTmplatManageService")
|
||||
public class EgovQustnrTmplatManageServiceImpl extends EgovAbstractServiceImpl implements EgovQustnrTmplatManageService{
|
||||
|
||||
|
||||
@Resource(name="qustnrTmplatManageDao")
|
||||
private QustnrTmplatManageDao dao;
|
||||
|
||||
@Resource(name="egovQustnrTmplatManageIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
/**
|
||||
* 템플릿파일명을 조회한다.
|
||||
* @param qustnrTmplatManageVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public Map<?, ?> selectQustnrTmplatManageTmplatImagepathnm(QustnrTmplatManageVO qustnrTmplatManageVO) throws Exception{
|
||||
return dao.selectQustnrTmplatManageTmplatImagepathnm(qustnrTmplatManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<?> selectQustnrTmplatManageList(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrTmplatManageList(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 상세조회 한다.
|
||||
* @param QustnrTmplatManage - 회정정보가 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public QustnrTmplatManageVO selectQustnrTmplatManageDetail(QustnrTmplatManageVO qustnrTmplatManageVO) throws Exception{
|
||||
return dao.selectQustnrTmplatManageDetail(qustnrTmplatManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public int selectQustnrTmplatManageListCnt(ComDefaultVO searchVO) throws Exception{
|
||||
return dao.selectQustnrTmplatManageListCnt(searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 등록한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void insertQustnrTmplatManage(QustnrTmplatManageVO qustnrTmplatManageVO) throws Exception {
|
||||
String sMakeId = idgenService.getNextStringId();
|
||||
|
||||
qustnrTmplatManageVO.setQestnrTmplatId(sMakeId);
|
||||
|
||||
dao.insertQustnrTmplatManage(qustnrTmplatManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 수정한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void updateQustnrTmplatManage(QustnrTmplatManageVO qustnrTmplatManageVO){
|
||||
dao.updateQustnrTmplatManage(qustnrTmplatManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 삭제한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void deleteQustnrTmplatManage(QustnrTmplatManageVO qustnrTmplatManageVO){
|
||||
dao.deleteQustnrTmplatManage(qustnrTmplatManageVO);
|
||||
}
|
||||
}
|
||||
@ -1,110 +0,0 @@
|
||||
package itn.let.uss.olp.qtm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.let.uss.olp.qtm.service.QustnrTmplatManageVO;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
/**
|
||||
* 설문템플릿 Dao Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Repository("qustnrTmplatManageDao")
|
||||
public class QustnrTmplatManageDao extends EgovAbstractDAO {
|
||||
|
||||
/**
|
||||
* 템플릿파일명을 조회한다.
|
||||
* @param qustnrTmplatManageVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public Map<?, ?> selectQustnrTmplatManageTmplatImagepathnm(QustnrTmplatManageVO qustnrTmplatManageVO){
|
||||
return (Map<?, ?>)select("QustnrTmplatManage.selectQustnrTmplatManageTmplatImagepathnm", qustnrTmplatManageVO);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 설문템플릿 목록을 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<?> selectQustnrTmplatManageList(ComDefaultVO searchVO){
|
||||
return list("QustnrTmplatManage.selectQustnrTmplatManage", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 상세조회 한다.
|
||||
* @param QustnrTmplatManage - 회정정보가 담김 VO
|
||||
* @return List
|
||||
* @throws Exception
|
||||
*/
|
||||
public QustnrTmplatManageVO selectQustnrTmplatManageDetail(QustnrTmplatManageVO qustnrTmplatManageVO){
|
||||
return (QustnrTmplatManageVO) select("QustnrTmplatManage.selectQustnrTmplatManageDetail", qustnrTmplatManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 목록 전체 건수를(을) 조회한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public int selectQustnrTmplatManageListCnt(ComDefaultVO searchVO){
|
||||
return (Integer)select("QustnrTmplatManage.selectQustnrTmplatManageCnt", searchVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 등록한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void insertQustnrTmplatManage(QustnrTmplatManageVO qustnrTmplatManageVO){
|
||||
insert("QustnrTmplatManage.insertQustnrTmplatManage", qustnrTmplatManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 수정한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void updateQustnrTmplatManage(QustnrTmplatManageVO qustnrTmplatManageVO){
|
||||
insert("QustnrTmplatManage.updateQustnrTmplatManage", qustnrTmplatManageVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를(을) 삭제한다.
|
||||
* @param searchVO - 조회할 정보가 담긴 VO
|
||||
* @throws Exception
|
||||
*/
|
||||
public void deleteQustnrTmplatManage(QustnrTmplatManageVO qustnrTmplatManageVO){
|
||||
//설문응답자 삭제
|
||||
delete("QustnrTmplatManage.deleteQustnrRespondManage", qustnrTmplatManageVO);
|
||||
//설문조사(설문결과) 삭제
|
||||
delete("QustnrTmplatManage.deleteQustnrRespondInfo", qustnrTmplatManageVO);
|
||||
//설문항목 삭제
|
||||
delete("QustnrTmplatManage.deleteQustnrItemManage", qustnrTmplatManageVO);
|
||||
//설문문항 삭제
|
||||
delete("QustnrTmplatManage.deleteQustnrQestnManage", qustnrTmplatManageVO);
|
||||
//설문관리 삭제
|
||||
delete("QustnrTmplatManage.deleteQustnrManage", qustnrTmplatManageVO);
|
||||
|
||||
//설문템플릿삭제
|
||||
delete("QustnrTmplatManage.deleteQustnrTmplatManage", qustnrTmplatManageVO);
|
||||
}
|
||||
}
|
||||
@ -1,357 +0,0 @@
|
||||
package itn.let.uss.olp.qtm.web;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||
import org.springmodules.validation.commons.DefaultBeanValidator;
|
||||
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import itn.com.cmm.ComDefaultVO;
|
||||
import itn.com.cmm.EgovMessageSource;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.com.cmm.util.RedirectUrlMaker;
|
||||
import itn.let.uss.olp.qtm.service.EgovQustnrTmplatManageService;
|
||||
import itn.let.uss.olp.qtm.service.QustnrTmplatManageVO;
|
||||
|
||||
/**
|
||||
* 설문템플릿 Controller Class 구현
|
||||
* @author 공통서비스 장동한
|
||||
* @since 2009.03.20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.20 장동한 최초 생성
|
||||
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Controller
|
||||
public class EgovQustnrTmplatManageController {
|
||||
|
||||
@Autowired
|
||||
private DefaultBeanValidator beanValidator;
|
||||
|
||||
/** EgovMessageSource */
|
||||
@Resource(name = "egovMessageSource")
|
||||
EgovMessageSource egovMessageSource;
|
||||
|
||||
@Resource(name = "egovQustnrTmplatManageService")
|
||||
private EgovQustnrTmplatManageService egovQustnrTmplatManageService;
|
||||
|
||||
/** EgovPropertyService */
|
||||
@Resource(name = "propertiesService")
|
||||
protected EgovPropertyService propertiesService;
|
||||
|
||||
@RequestMapping(value = "/uss/olp/qtm/EgovQustnrTmplatManageMain.do")
|
||||
public String EgovQustnrTmplatManageMain(ModelMap model) throws Exception {
|
||||
return "/uss/olp/qtm/EgovQustnrTmplatManageMain";
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/uss/olp/qtm/EgovQustnrTmplatManageLeft.do")
|
||||
public String EgovQustnrTmplatManageLeft(ModelMap model) throws Exception {
|
||||
return "/uss/olp/qtm/EgovQustnrTmplatManageLeft";
|
||||
}
|
||||
|
||||
/**
|
||||
* 개별 배포시 메인메뉴를 조회한다.
|
||||
* @param model
|
||||
* @return "/uss/sam/cpy/"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/EgovMain.do")
|
||||
public String EgovMain(ModelMap model) throws Exception {
|
||||
return "/uss/olp/qtm/EgovMain";
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴를 조회한다.
|
||||
* @param model
|
||||
* @return "/uss/sam/cpy/EgovLeft"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/EgovLeft.do")
|
||||
public String EgovLeft(ModelMap model) throws Exception {
|
||||
return "/uss/olp/qtm/EgovLeft";
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿 목록을 조회한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrTmplatManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qtm/EgovQustnrTmplatManageList"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/qtm/EgovQustnrTmplatManageList.do")
|
||||
public String EgovQustnrTmplatManageList(@ModelAttribute("searchVO") ComDefaultVO searchVO, @RequestParam Map<String, Object> commandMap,
|
||||
QustnrTmplatManageVO qustnrTmplatManageVO, ModelMap model) throws Exception {
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
|
||||
if (sCmd.equals("del")) {
|
||||
egovQustnrTmplatManageService.deleteQustnrTmplatManage(qustnrTmplatManageVO);
|
||||
}
|
||||
|
||||
/** EgovPropertyService.sample */
|
||||
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
||||
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
||||
|
||||
/** pageing */
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
|
||||
paginationInfo.setPageSize(searchVO.getPageSize());
|
||||
|
||||
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
model.addAttribute("resultList", egovQustnrTmplatManageService.selectQustnrTmplatManageList(searchVO));
|
||||
|
||||
model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String) commandMap.get("searchKeyword"));
|
||||
model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String) commandMap.get("searchCondition"));
|
||||
|
||||
int totCnt = egovQustnrTmplatManageService.selectQustnrTmplatManageListCnt(searchVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
return "/uss/olp/qtm/EgovQustnrTmplatManageList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿 목록을 상세조회 조회한다.
|
||||
* @param request
|
||||
* @param response
|
||||
* @param qustnrTmplatManageVO
|
||||
* @param commandMap
|
||||
* @return "/uss/olp/qtm/EgovQustnrTmplatManageImg"
|
||||
* @throws Exception
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
@RequestMapping(value = "/uss/olp/qtm/EgovQustnrTmplatManageImg.do")
|
||||
public void EgovQustnrTmplatManageImg(HttpServletRequest request, HttpServletResponse response, QustnrTmplatManageVO qustnrTmplatManageVO,
|
||||
@RequestParam Map<String, Object> commandMap) throws Exception {
|
||||
Map<?, ?> mapResult = egovQustnrTmplatManageService.selectQustnrTmplatManageTmplatImagepathnm(qustnrTmplatManageVO);
|
||||
byte[] img = (byte[]) mapResult.get("QUSTNR_TMPLAT_IMAGE_INFOPATHNM");
|
||||
String imgtype = "jpeg";
|
||||
String type = "";
|
||||
|
||||
if (imgtype != null && !"".equals(imgtype)) {
|
||||
type = "image/" + imgtype;
|
||||
}
|
||||
|
||||
response.setHeader("Content-Type", imgtype);
|
||||
response.setHeader("Content-Length", "" + img.length);
|
||||
response.getOutputStream().write(img);
|
||||
response.getOutputStream().flush();
|
||||
response.getOutputStream().close();
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿 목록을 상세조회 조회한다.
|
||||
* @param searchVO
|
||||
* @param qustnrTmplatManageVO
|
||||
* @param commandMap
|
||||
* @param model
|
||||
* @return "/uss/olp/qtm/EgovQustnrTmplatManageDetail"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/qtm/EgovQustnrTmplatManageDetail.do")
|
||||
public String EgovQustnrTmplatManageDetail(@ModelAttribute("searchVO") ComDefaultVO searchVO, QustnrTmplatManageVO qustnrTmplatManageVO,
|
||||
@RequestParam Map<String, Object> commandMap, RedirectAttributes redirectAttributes , ModelMap model) throws Exception {
|
||||
|
||||
String sLocationUrl = "/uss/olp/qtm/EgovQustnrTmplatManageDetail";
|
||||
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
|
||||
if (sCmd.equals("del")) {
|
||||
egovQustnrTmplatManageService.deleteQustnrTmplatManage(qustnrTmplatManageVO);
|
||||
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/olp/qtm/EgovQustnrTmplatManageList.do");
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
//sLocationUrl = "redirect:/uss/olp/qtm/EgovQustnrTmplatManageList.do";
|
||||
} else {
|
||||
qustnrTmplatManageVO = egovQustnrTmplatManageService.selectQustnrTmplatManageDetail(qustnrTmplatManageVO);
|
||||
|
||||
model.addAttribute("qustnrTmplatManageVO", qustnrTmplatManageVO);
|
||||
}
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를 수정한다.
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrTmplatManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qtm/EgovQustnrTmplatManageModify"
|
||||
* @throws Exception
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
@RequestMapping(value = "/uss/olp/qtm/EgovQustnrTmplatManageModify.do")
|
||||
public String QustnrTmplatManageModify(@ModelAttribute("searchVO") ComDefaultVO searchVO, @RequestParam Map<String, Object> commandMap,
|
||||
QustnrTmplatManageVO qustnrTmplatManageVO, ModelMap model) throws Exception {
|
||||
String sLocationUrl = "/uss/olp/qtm/EgovQustnrTmplatManageModify";
|
||||
String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
||||
model.addAttribute("resultList", egovQustnrTmplatManageService.selectQustnrTmplatManageDetail(qustnrTmplatManageVO));
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를 수정처리 한다.
|
||||
* @param multiRequest
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrTmplatManageVO
|
||||
* @param bindingResult
|
||||
* @param model
|
||||
* @return "/uss/olp/qtm/EgovQustnrTmplatManageModifyActor"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/qtm/EgovQustnrTmplatManageModifyActor.do")
|
||||
public String QustnrTmplatManageModifyActor(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
@RequestParam Map<String, Object> commandMap, @ModelAttribute("qustnrTmplatManageVO") QustnrTmplatManageVO qustnrTmplatManageVO, BindingResult bindingResult,
|
||||
RedirectAttributes redirectAttributes , ModelMap model) throws Exception {
|
||||
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if (!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
//서버 validate 체크
|
||||
beanValidator.validate(qustnrTmplatManageVO, bindingResult);
|
||||
if (bindingResult.hasErrors()) {
|
||||
model.addAttribute("resultList", egovQustnrTmplatManageService.selectQustnrTmplatManageDetail(qustnrTmplatManageVO));
|
||||
return "/uss/olp/qtm/EgovQustnrTmplatManageModify";
|
||||
}
|
||||
|
||||
//아이디 설정
|
||||
qustnrTmplatManageVO.setFrstRegisterId(loginVO.getUniqId());
|
||||
qustnrTmplatManageVO.setLastUpdusrId(loginVO.getUniqId());
|
||||
|
||||
final Map<String, MultipartFile> files = multiRequest.getFileMap();
|
||||
|
||||
if (!files.isEmpty()) {
|
||||
for (MultipartFile file : files.values()) {
|
||||
if (file.getName().equals("qestnrTmplatImage") && !file.getOriginalFilename().equals("")) {
|
||||
qustnrTmplatManageVO.setQestnrTmplatImagepathnm(file.getBytes());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
egovQustnrTmplatManageService.updateQustnrTmplatManage(qustnrTmplatManageVO);
|
||||
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update"));
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/olp/qtm/EgovQustnrTmplatManageList.do");
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
//return "redirect:/uss/olp/qtm/EgovQustnrTmplatManageList.do";
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를 등록한다. / 초기등록페이지
|
||||
* @param searchVO
|
||||
* @param commandMap
|
||||
* @param qustnrTmplatManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qtm/EgovQustnrTmplatManageRegist"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/qtm/EgovQustnrTmplatManageRegist.do")
|
||||
public String QustnrTmplatManageRegist(@ModelAttribute("searchVO") ComDefaultVO searchVO, @RequestParam Map<String, Object> commandMap,
|
||||
@ModelAttribute("qustnrTmplatManageVO") QustnrTmplatManageVO qustnrTmplatManageVO, ModelMap model) throws Exception {
|
||||
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if (!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
String sLocationUrl = "/uss/olp/qtm/EgovQustnrTmplatManageRegist";
|
||||
|
||||
//아이디 설정
|
||||
qustnrTmplatManageVO.setFrstRegisterId(loginVO.getUniqId());
|
||||
qustnrTmplatManageVO.setLastUpdusrId(loginVO.getUniqId());
|
||||
|
||||
return sLocationUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문템플릿를 등록 처리 한다. / 등록처리
|
||||
* @param multiRequest
|
||||
* @param searchVO
|
||||
* @param qustnrTmplatManageVO
|
||||
* @param model
|
||||
* @return "/uss/olp/qtm/EgovQustnrTmplatManageRegistActor"
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/uss/olp/qtm/EgovQustnrTmplatManageRegistActor.do")
|
||||
public String QustnrTmplatManageRegistActor(final MultipartHttpServletRequest multiRequest, RedirectAttributes redirectAttributes, @ModelAttribute("searchVO") ComDefaultVO searchVO,
|
||||
QustnrTmplatManageVO qustnrTmplatManageVO, ModelMap model) throws Exception {
|
||||
// 0. Spring Security 사용자권한 처리
|
||||
Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
|
||||
if (!isAuthenticated) {
|
||||
model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
||||
return "uat/uia/EgovLoginUsr";
|
||||
}
|
||||
|
||||
//로그인 객체 선언
|
||||
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
//아이디 설정
|
||||
qustnrTmplatManageVO.setFrstRegisterId(loginVO.getUniqId());
|
||||
qustnrTmplatManageVO.setLastUpdusrId(loginVO.getUniqId());
|
||||
|
||||
final Map<String, MultipartFile> files = multiRequest.getFileMap();
|
||||
|
||||
if (!files.isEmpty()) {
|
||||
for (MultipartFile file : files.values()) {
|
||||
if (file.getName().equals("qestnrTmplatImage")) {
|
||||
qustnrTmplatManageVO.setQestnrTmplatImagepathnm(file.getBytes());
|
||||
}
|
||||
}
|
||||
}
|
||||
try{
|
||||
egovQustnrTmplatManageService.insertQustnrTmplatManage(qustnrTmplatManageVO);
|
||||
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert"));
|
||||
}catch(Exception e){
|
||||
redirectAttributes.addFlashAttribute("message", "이미지 형식이 너무 큽니다.");
|
||||
}
|
||||
|
||||
RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/olp/qtm/EgovQustnrTmplatManageList.do");
|
||||
return redirectUrlMaker.getRedirectUrl();
|
||||
//return "redirect:/uss/olp/qtm/EgovQustnrTmplatManageList.do";
|
||||
}
|
||||
|
||||
}
|
||||
@ -127,7 +127,7 @@ import itn.let.sec.rgm.service.AuthorGroup;
|
||||
import itn.let.sec.rgm.service.EgovAuthorGroupService;
|
||||
import itn.let.sym.ccm.cde.service.CateCode;
|
||||
import itn.let.sym.ccm.cde.service.EgovCcmCmmnDetailCodeManageService;
|
||||
import itn.let.sym.grd.service.MberGrdService;
|
||||
|
||||
import itn.let.sym.log.user.service.UserLogService;
|
||||
import itn.let.sym.log.user.service.UserLogVO;
|
||||
import itn.let.sym.site.service.EgovSiteManagerService;
|
||||
@ -293,9 +293,9 @@ public class EgovUserManageController {
|
||||
@Autowired
|
||||
KakaoApiProfile kakaoApiProfile;
|
||||
|
||||
/** 등급제 관리 서비스 */
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
|
||||
|
||||
|
||||
//배열 정의{"컬럼순차번호, 컬럼이름, 컬럼내용, 컬럼이름에 붙여야할 내용(엑셀코드양식다운로드시 필요)"}
|
||||
private String[][] userExcelValue ={
|
||||
@ -1126,7 +1126,7 @@ public class EgovUserManageController {
|
||||
model.addAttribute("sysKakaoFtPrice", sysJoinSetVO.getKakaoFtPrice());
|
||||
|
||||
// 등급제 단가 추출 => 시스템 단가에 적용
|
||||
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId);
|
||||
|
||||
|
||||
//2.사용자 개인단가 정보가 0이 아니면 개인단가 사용, 없으면 시스템 기본 단가 사용
|
||||
Float shortPrice = mberManageVO.getShortPrice();
|
||||
|
||||
@ -698,76 +698,6 @@ public class ContentController{
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
/*
|
||||
@Resource(name = "mberGrdService")
|
||||
MberGrdService mberGrdService;
|
||||
|
||||
// test
|
||||
@RequestMapping(value= {"/web/main/testAjax.do"})
|
||||
public ModelAndView testAjax(HttpServletRequest request,
|
||||
ModelMap model) throws Exception{
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
boolean isSuccess = true;
|
||||
String msg = "";
|
||||
|
||||
try {
|
||||
|
||||
MberGrdVO mberGrdVO = new MberGrdVO();
|
||||
mberGrdVO.setFirstIndex(0);
|
||||
mberGrdVO.setLastIndex(1000);
|
||||
mberGrdVO.setRecordCountPerPage(1000);
|
||||
|
||||
if("".equals(mberGrdVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
||||
mberGrdVO.setSearchSortCnd("regDate");
|
||||
mberGrdVO.setSearchSortOrd("desc");
|
||||
}
|
||||
|
||||
List<MberGrdVO> resultList = mberGrdService.selectMberGrdList(mberGrdVO);
|
||||
for (MberGrdVO item : resultList) {
|
||||
mberGrdVO.setGrdNewDate("2022-01-01");
|
||||
mberGrdVO.setMberId(item.getMberId());
|
||||
// System.out.println("Step 3. 누적결제금액(이벤트금액 제외) 추출 및 등급 조회");
|
||||
MberGrdVO mberGrdVO3 = new MberGrdVO();
|
||||
mberGrdVO3 = mberGrdService.selectMberGrdAmtDetail(mberGrdVO);
|
||||
System.out.println("MberId : " + item.getMberId());
|
||||
System.out.println("MberGrdVO3 : " + mberGrdVO3);
|
||||
if (null != mberGrdVO3) {
|
||||
System.out.println("GrdSetNo() : " + mberGrdVO3.getGrdSetNo());
|
||||
}
|
||||
System.out.println("");
|
||||
}
|
||||
|
||||
MberGrdVO mberGrdVO1 = new MberGrdVO();
|
||||
if (!StringUtils.isEmpty(mberGrdVO1.getMberId())) {
|
||||
System.out.println("mberGrdVO1 : NOT NULL");
|
||||
}
|
||||
else {
|
||||
System.out.println("mberGrdVO1 : NULL");
|
||||
}
|
||||
|
||||
MberGrdVO mberGrdVO2 = new MberGrdVO();
|
||||
mberGrdVO2.setMberId("nopay");
|
||||
if (!StringUtils.isEmpty(mberGrdVO2.getMberId())) {
|
||||
System.out.println("mberGrdVO2 : NOT NULL");
|
||||
}
|
||||
else {
|
||||
System.out.println("mberGrdVO2 : NULL");
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
isSuccess = false;
|
||||
msg = e.getMessage();
|
||||
}
|
||||
|
||||
modelAndView.addObject("isSuccess", isSuccess);
|
||||
modelAndView.addObject("msg", msg);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
*/
|
||||
|
||||
// 전용계좌 스케줄러 실행
|
||||
@RequestMapping(value= {"/web/main/payBackAutoChargeAjax.do"})
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd">
|
||||
|
||||
<!-- Notice Change History Aspect -->
|
||||
<bean id="bbsChgHst" class="itn.let.cop.bbs.service.EgovBBSChgHstAspect" />
|
||||
|
||||
<aop:config>
|
||||
<aop:aspect id="bbsChgHstAspect" ref="bbsChgHst">
|
||||
<aop:after-returning returning="returnVal" pointcut="execution(public * itn.let.cop.bbs.service.EgovBBSManageService.insertBoardArticle(..))
|
||||
|| execution(public * itn.let.cop.bbs.service.EgovBBSManageService.updateBoardArticle(..))
|
||||
|| execution(public * itn.let.cop.bbs.service.EgovBBSManageService.deleteBoardArticle(..))" method="insertBBSChgHst" />
|
||||
</aop:aspect>
|
||||
</aop:config>
|
||||
|
||||
</beans>
|
||||
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:p="http://www.springframework.org/schema/p"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd">
|
||||
|
||||
<bean id="excelZipService" class="egovframework.rte.fdl.excel.impl.EgovExcelServiceImpl">
|
||||
<property name="mapClass" value="itn.let.sym.ccm.zip.service.impl.EgovCcmExcelZipMapping" />
|
||||
<property name="sqlMapClient" ref="sqlMapClient" />
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,60 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:p="http://www.springframework.org/schema/p"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd">
|
||||
|
||||
<!-- 일반용
|
||||
<bean id="mntrngMailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"
|
||||
p:host="STMP서버주소"
|
||||
p:username="아이디"
|
||||
p:password="비밀번호" />
|
||||
-->
|
||||
|
||||
<!-- 메일 연동 인터페이스에서 첨부파일 미사용 -->
|
||||
<!-- <bean id="EMSMailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"
|
||||
p:host="STMP서버주소"
|
||||
p:port="465"
|
||||
p:protocol="smtps"
|
||||
p:username="아이디"
|
||||
p:password="비밀번호">
|
||||
<property name="javaMailProperties">
|
||||
<props>
|
||||
<prop key="mail.smtps.auth">true</prop>
|
||||
<prop key="mail.smtps.startls.enable">true</prop>
|
||||
<prop key="mail.smtps.debug">true</prop>
|
||||
</props>
|
||||
</property>
|
||||
</bean> -->
|
||||
|
||||
<!-- 테스트 네이버 -->
|
||||
<bean id="egovMultiPartEmail" class="itn.com.cmm.EgovMultiPartEmail"
|
||||
p:host="smtp.naver.com"
|
||||
p:port="465"
|
||||
p:id="dlwldn1024"
|
||||
p:password="wldncjswo"
|
||||
p:senderName="이지우"
|
||||
p:emailAddress="dlwldn1024@naver.com" />
|
||||
|
||||
|
||||
<!-- 모니터링 서비스에서 사용 gmail, hanmail 용 -->
|
||||
<!-- <bean id="mntrngMailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"
|
||||
p:host="smtp.gmail.com"
|
||||
p:port="465"
|
||||
p:protocol="smtps"
|
||||
p:username="아이디"
|
||||
p:password="비밀번호">
|
||||
<property name="javaMailProperties">
|
||||
<props>
|
||||
<prop key="mail.smtps.auth">true</prop>
|
||||
<prop key="mail.smtps.startls.enable">true</prop>
|
||||
<prop key="mail.smtps.debug">true</prop>
|
||||
</props>
|
||||
</property>
|
||||
</bean> -->
|
||||
|
||||
<!-- <bean id="mntrngMessage" class="org.springframework.mail.SimpleMailMessage"
|
||||
p:from="SYSTEM < 아이디@gmail.com >"
|
||||
p:subject="{모니터링종류} 상태통보."
|
||||
p:text="* {모니터링종류} 상태통보. {에러내용}"/> -->
|
||||
|
||||
</beans>
|
||||
@ -15,8 +15,6 @@
|
||||
<entry key="posblResveThumbAtchFileNum" value="1"/>
|
||||
<entry key="posblResveImgAtchFileNum" value="3"/>
|
||||
<entry key="posblResvePortpolioAtchFileNum" value="3"/>
|
||||
<!-- <entry key="Globals.fileStorePath" value="/user/file/sht/"/>
|
||||
<entry key="Globals.addedOptions" value="false"/> -->
|
||||
<entry key="Globals.fileStorePath" value="/usr/local/tomcat/file/sht/"/>
|
||||
<entry key="Globals.resveFileStorePath" value="/usr/local/tomcat/file/resve/"/>
|
||||
<entry key="Globals.addedOptions" value="false"/>
|
||||
|
||||
@ -186,40 +186,4 @@
|
||||
</property>
|
||||
</bean> -->
|
||||
|
||||
<!-- 스케줄러 메일 전송 -->
|
||||
<!-- <bean id="schMailSending" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
|
||||
<property name="targetObject" ref="egovSchMailSendScheduling" />
|
||||
<property name="targetMethod" value="schMailSend" />
|
||||
<property name="concurrent" value="false" />
|
||||
</bean> -->
|
||||
|
||||
<!-- 스케줄러 메일 전송 트리거-->
|
||||
<!-- <bean id="schMailSendTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean">
|
||||
<property name="jobDetail" ref="schMailSending" />
|
||||
시작하고 1분후에 실행한다. (milisecond) 60000
|
||||
<property name="startDelay" value="0" />
|
||||
매 24시간마다 실행한다.864000000 (milisecond)
|
||||
<property name="repeatInterval" value="60000" />
|
||||
</bean> -->
|
||||
<!-- <bean id="schMailSendTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
|
||||
<property name="jobDetail" ref="schMailSending" />
|
||||
|
||||
매 50초마다 실행
|
||||
<property name="cronExpression" value="50 * * * * ?" />
|
||||
secs mins hrs dom(day) month dow(week) year(option)
|
||||
https://www.leafcats.com/94 참조
|
||||
d
|
||||
<property name="cronExpression" value="* * 01 * * ?" />
|
||||
</bean> -->
|
||||
|
||||
<!-- 스케줄러 메일 전송 스케줄러 -->
|
||||
<!-- <bean id="schMailSendScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
|
||||
<property name="triggers">
|
||||
<list>
|
||||
<ref bean="schMailSendTrigger" />
|
||||
</list>
|
||||
</property>
|
||||
</bean> -->
|
||||
|
||||
|
||||
</beans>
|
||||
|
||||
@ -16,19 +16,4 @@
|
||||
</aop:aspect>
|
||||
</aop:config>
|
||||
|
||||
<!-- System Log Aspect -->
|
||||
<!-- <bean id="syslog" class="itn.let.sym.log.lgm.service.EgovSysLogAspect" />
|
||||
<aop:config>
|
||||
<aop:aspect id="sysLogAspect" ref="syslog"> -->
|
||||
<!-- insert로 시작되는 service Method -->
|
||||
<!-- <aop:around pointcut="execution(public * itn.com..impl.*Impl.insert*(..))" method="logInsert" /> -->
|
||||
<!-- update로 시작되는 service Method -->
|
||||
<!-- <aop:around pointcut="execution(public * itn.com..impl.*Impl.update*(..))" method="logUpdate" /> -->
|
||||
<!-- delete로 시작되는 service Method -->
|
||||
<!-- <aop:around pointcut="execution(public * itn.com..impl.*Impl.delete*(..))" method="logDelete" /> -->
|
||||
<!-- select로 시작되는 service Method -->
|
||||
<!-- <aop:around pointcut="execution(public * itn.com..impl.*Impl.select*(..))" method="logSelect" /> -->
|
||||
<!-- 관리자 로그를 위한 메소드 -->
|
||||
<!-- </aop:aspect>
|
||||
</aop:config> -->
|
||||
</beans>
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
|
||||
"http://www.ibatis.com/dtd/sql-map-config-2.dtd">
|
||||
|
||||
<sqlMapConfig>
|
||||
<sqlMap resource="egovframework/sqlmap/let/sym/ccm/zip/EgovZipManage_SQL_Mysql.xml"/>
|
||||
</sqlMapConfig>
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
|
||||
"http://www.ibatis.com/dtd/sql-map-config-2.dtd">
|
||||
|
||||
<sqlMapConfig>
|
||||
<sqlMap resource="egovframework/sqlmap/let/sym/grd/MberGrd_SQL_Mysql.xml"/>
|
||||
</sqlMapConfig>
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
|
||||
"http://www.ibatis.com/dtd/sql-map-config-2.dtd">
|
||||
|
||||
<sqlMapConfig>
|
||||
<sqlMap resource="egovframework/sqlmap/let/uss/olp/qim/EgovQustnrItemManage_SQL_Mysql.xml"/>
|
||||
</sqlMapConfig>
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
|
||||
"http://www.ibatis.com/dtd/sql-map-config-2.dtd">
|
||||
|
||||
<sqlMapConfig>
|
||||
<sqlMap resource="egovframework/sqlmap/let/uss/olp/qmc/EgovQustnrManage_SQL_Mysql.xml"/>
|
||||
</sqlMapConfig>
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
|
||||
"http://www.ibatis.com/dtd/sql-map-config-2.dtd">
|
||||
|
||||
<sqlMapConfig>
|
||||
<sqlMap resource="egovframework/sqlmap/let/uss/olp/qqm/EgovQustnrQestnManage_SQL_Mysql.xml"/>
|
||||
</sqlMapConfig>
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
|
||||
"http://www.ibatis.com/dtd/sql-map-config-2.dtd">
|
||||
|
||||
<sqlMapConfig>
|
||||
<sqlMap resource="egovframework/sqlmap/let/uss/olp/qri/EgovQustnrRespondInfo_SQL_Mysql.xml"/>
|
||||
</sqlMapConfig>
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
|
||||
"http://www.ibatis.com/dtd/sql-map-config-2.dtd">
|
||||
|
||||
<sqlMapConfig>
|
||||
<sqlMap resource="egovframework/sqlmap/let/uss/olp/qrm/EgovQustnrRespondManage_SQL_Mysql.xml"/>
|
||||
</sqlMapConfig>
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
|
||||
"http://www.ibatis.com/dtd/sql-map-config-2.dtd">
|
||||
|
||||
<sqlMapConfig>
|
||||
<sqlMap resource="egovframework/sqlmap/let/uss/olp/qtm/EgovQustnrTmplatManage_SQL_Mysql.xml"/>
|
||||
</sqlMapConfig>
|
||||
@ -1,177 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
|
||||
|
||||
<sqlMap namespace="ZipManage">
|
||||
|
||||
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
|
||||
<typeAlias alias="Zip" type="itn.let.sym.ccm.zip.service.Zip"/>
|
||||
<typeAlias alias="ZipVO" type="itn.let.sym.ccm.zip.service.ZipVO"/>
|
||||
|
||||
<select id="ZipManageDAO.selectZipList" parameterClass="ZipVO" resultClass="egovMap">
|
||||
<![CDATA[
|
||||
SELECT ZIP
|
||||
, SN
|
||||
, CTPRVN_NM
|
||||
, SIGNGU_NM
|
||||
, EMD_NM
|
||||
, LI_BULD_NM
|
||||
, LNBR_DONG_HO
|
||||
FROM LETTCZIP
|
||||
WHERE 1 = 1
|
||||
]]>
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="1">
|
||||
<![CDATA[ZIP = #searchKeyword#]]>
|
||||
</isEqual>
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="2">
|
||||
<![CDATA[CTPRVN_NM LIKE CONCAT('%', #searchKeyword#, '%')]]>
|
||||
</isEqual>
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="3">
|
||||
<![CDATA[SIGNGU_NM LIKE CONCAT('%', #searchKeyword#, '%')]]>
|
||||
</isEqual>
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="4">
|
||||
<![CDATA[EMD_NM LIKE CONCAT('%', #searchKeyword#, '%')]]>
|
||||
</isEqual>
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="5">
|
||||
<![CDATA[LI_BULD_NM LIKE CONCAT('%', #searchKeyword#, '%')]]>
|
||||
</isEqual>
|
||||
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||
</select>
|
||||
|
||||
<select id="ZipManageDAO.selectZipListTotCnt" parameterClass="ZipVO" resultClass="int">
|
||||
<![CDATA[
|
||||
SELECT COUNT(*) totcnt
|
||||
FROM LETTCZIP
|
||||
WHERE 1 = 1
|
||||
]]>
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="1">
|
||||
<![CDATA[ZIP = #searchKeyword#]]>
|
||||
</isEqual>
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="2">
|
||||
<![CDATA[CTPRVN_NM LIKE CONCAT('%', #searchKeyword#, '%')]]>
|
||||
</isEqual>
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="3">
|
||||
<![CDATA[SIGNGU_NM LIKE CONCAT('%', #searchKeyword#, '%')]]>
|
||||
</isEqual>
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="4">
|
||||
<![CDATA[EMD_NM LIKE CONCAT('%', #searchKeyword#, '%')]]>
|
||||
</isEqual>
|
||||
<isEqual prepend="AND" property="searchCondition" compareValue="5">
|
||||
<![CDATA[LI_BULD_NM LIKE CONCAT('%', #searchKeyword#, '%')]]>
|
||||
</isEqual>
|
||||
</select>
|
||||
|
||||
<select id="ZipManageDAO.selectZipDetail" parameterClass="Zip" resultClass="Zip">
|
||||
<![CDATA[
|
||||
SELECT ZIP zip
|
||||
, SN sn
|
||||
, CTPRVN_NM ctprvnNm
|
||||
, SIGNGU_NM signguNm
|
||||
, EMD_NM emdNm
|
||||
, LI_BULD_NM liBuldNm
|
||||
, LNBR_DONG_HO lnbrDongHo
|
||||
FROM LETTCZIP
|
||||
WHERE ZIP = #zip#
|
||||
AND SN = #sn#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<insert id="ZipManageDAO.insertZip">
|
||||
<selectKey resultClass="int" keyProperty="sn">
|
||||
SELECT IFNULL(MAX(SN)+1, 1) AS sn
|
||||
FROM LETTCZIP
|
||||
</selectKey>
|
||||
|
||||
<![CDATA[
|
||||
INSERT
|
||||
INTO LETTCZIP
|
||||
( ZIP
|
||||
, SN
|
||||
, CTPRVN_NM
|
||||
, SIGNGU_NM
|
||||
, EMD_NM
|
||||
, LI_BULD_NM
|
||||
, LNBR_DONG_HO
|
||||
, FRST_REGIST_PNTTM
|
||||
, FRST_REGISTER_ID
|
||||
, LAST_UPDT_PNTTM
|
||||
, LAST_UPDUSR_ID
|
||||
)
|
||||
VALUES
|
||||
( #zip#
|
||||
, #sn#
|
||||
, #ctprvnNm#
|
||||
, #signguNm#
|
||||
, #emdNm#
|
||||
, #liBuldNm#
|
||||
, #lnbrDongHo#
|
||||
, SYSDATE()
|
||||
, #frstRegisterId#
|
||||
, SYSDATE()
|
||||
, #frstRegisterId#
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
<insert id="ZipManageDAO.insertExcelZip">
|
||||
<![CDATA[
|
||||
INSERT
|
||||
INTO LETTCZIP
|
||||
( ZIP
|
||||
, SN
|
||||
, CTPRVN_NM
|
||||
, SIGNGU_NM
|
||||
, EMD_NM
|
||||
, LI_BULD_NM
|
||||
, LNBR_DONG_HO
|
||||
, FRST_REGIST_PNTTM
|
||||
, FRST_REGISTER_ID
|
||||
, LAST_UPDT_PNTTM
|
||||
, LAST_UPDUSR_ID
|
||||
)
|
||||
VALUES
|
||||
( #zip#
|
||||
, #sn#
|
||||
, #ctprvnNm#
|
||||
, #signguNm#
|
||||
, #emdNm#
|
||||
, #liBuldNm#
|
||||
, #lnbrDongHo#
|
||||
, SYSDATE()
|
||||
, #frstRegisterId#
|
||||
, SYSDATE()
|
||||
, #frstRegisterId#
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
<update id="ZipManageDAO.updateZip">
|
||||
<![CDATA[
|
||||
UPDATE LETTCZIP
|
||||
SET CTPRVN_NM = #ctprvnNm#
|
||||
, SIGNGU_NM = #signguNm#
|
||||
, EMD_NM = #emdNm#
|
||||
, LI_BULD_NM = #liBuldNm#
|
||||
, LNBR_DONG_HO = #lnbrDongHo#
|
||||
, LAST_UPDT_PNTTM = sysdate()
|
||||
, LAST_UPDUSR_ID = #lastUpdusrId#
|
||||
WHERE ZIP = #zip#
|
||||
AND SN = #sn#
|
||||
]]>
|
||||
</update>
|
||||
|
||||
<delete id="ZipManageDAO.deleteZip">
|
||||
<![CDATA[
|
||||
DELETE
|
||||
FROM LETTCZIP
|
||||
WHERE ZIP = #zip#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
<delete id="ZipManageDAO.deleteAllZip">
|
||||
<![CDATA[
|
||||
DELETE
|
||||
FROM LETTCZIP
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
</sqlMap>
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,207 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
||||
|
||||
<sqlMap namespace="QustnrItemManage">
|
||||
|
||||
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
|
||||
<typeAlias alias="comDefaultVO" type="itn.com.cmm.ComDefaultVO"/>
|
||||
<typeAlias alias="QustnrItemManageVO" type="itn.let.uss.olp.qim.service.QustnrItemManageVO"/>
|
||||
<!-- 설문정보::설문템플릿정보 -->
|
||||
<select id="QustnrItemManage.selectQustnrTmplatManage" parameterClass="QustnrItemManageVO" resultClass="egovMap">
|
||||
SELECT
|
||||
QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
QUSTNR_TMPLAT_TY qestnrTmplatTy
|
||||
FROM LETTNQUSTNRTMPLAT
|
||||
</select>
|
||||
|
||||
<!-- 설문조사(설문결과) 삭제 -->
|
||||
<delete id="QustnrItemManage.deleteQustnrRespondInfo">
|
||||
DELETE FROM LETTNQUSTNRRSPNSRESULT WHERE QUSTNR_IEM_ID = #qustnrIemId#
|
||||
</delete>
|
||||
|
||||
<!-- 설문정보::삭제 -->
|
||||
<delete id="QustnrItemManage.deleteQustnrItemManage">
|
||||
<![CDATA[
|
||||
DELETE FROM LETTNQUSTNRIEM
|
||||
WHERE QUSTNR_IEM_ID = #qustnrIemId#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
<!-- 설문정보::수정 -->
|
||||
<update id="QustnrItemManage.updateQustnrItemManage">
|
||||
UPDATE LETTNQUSTNRIEM
|
||||
SET
|
||||
IEM_SN=#iemSn#,
|
||||
IEM_CN=#iemCn#,
|
||||
ETC_ANSWER_AT=#etcAnswerAt#,
|
||||
LAST_UPDT_PNTTM = sysdate(),
|
||||
LAST_UPDUSR_ID = #lastUpdusrId#
|
||||
WHERE QUSTNR_IEM_ID = #qustnrIemId#
|
||||
</update>
|
||||
|
||||
<!-- 설문정보::상세보기 -->
|
||||
<select id="QustnrItemManage.selectQustnrItemManageDetail" parameterClass="QustnrItemManageVO" resultClass="egovMap">
|
||||
SELECT
|
||||
A.QUSTNR_QESITM_ID qestnrQesitmId,
|
||||
(SELECT QESTN_CN FROM LETTNQUSTNRQESITM WHERE QUSTNR_QESITM_ID = A.QUSTNR_QESITM_ID) QESTNR_QESITM_CN,
|
||||
A.QESTNR_ID,
|
||||
(SELECT QUSTNR_SJ FROM LETTNQESTNRINFO WHERE QESTNR_ID = A.QESTNR_ID) QESTNR_CN,
|
||||
A.IEM_SN,
|
||||
A.QUSTNR_IEM_ID,
|
||||
A.IEM_CN,
|
||||
A.ETC_ANSWER_AT,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID
|
||||
FROM LETTNQUSTNRIEM A
|
||||
WHERE 1=1
|
||||
AND A.QUSTNR_IEM_ID = #qustnrIemId#
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 설문정보::목록조회_게시물정보 -->
|
||||
<select id="QustnrItemManage.selectQustnrItemManage" parameterClass="comDefaultVO" resultClass="egovMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
A.QUSTNR_QESITM_ID qestnrQesitmId,
|
||||
A.QESTNR_ID,
|
||||
A.IEM_SN,
|
||||
A.QUSTNR_IEM_ID,
|
||||
A.IEM_CN,
|
||||
A.ETC_ANSWER_AT,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
(SELECT USER_NM FROM COMVNUSERMASTER WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_NM,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID,
|
||||
(SELECT QUSTNR_SJ FROM LETTNQESTNRINFO WHERE QESTNR_ID = A.QESTNR_ID LIMIT 1) QUSTNR_SJ,
|
||||
(SELECT QESTN_CN FROM LETTNQUSTNRQESITM WHERE QUSTNR_QESITM_ID = A.QUSTNR_QESITM_ID LIMIT 1) QESTN_CN
|
||||
FROM LETTNQUSTNRIEM A
|
||||
WHERE 1=1
|
||||
]]>
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isNotEqual property="searchCondition" compareValue="FRST_REGISTER_ID">
|
||||
<isEqual property="searchCondition" compareValue="IEM_CN">
|
||||
AND IEM_CN LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
<isEqual property="searchCondition" compareValue="FRST_REGISTER_ID">
|
||||
AND FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMVNUSERMASTER WHERE USER_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') )
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="QUSTNR_QESITM_ID">
|
||||
AND QUSTNR_QESITM_ID = #searchKeyword#
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
|
||||
<![CDATA[
|
||||
ORDER BY A.FRST_REGIST_PNTTM DESC
|
||||
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<!-- 설문정보::목록조회_게시물 총갯수 -->
|
||||
<select id="QustnrItemManage.selectQustnrItemManageCnt" parameterClass="comDefaultVO" resultClass="int">
|
||||
SELECT
|
||||
COUNT(*) totcnt
|
||||
FROM LETTNQUSTNRIEM
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isNotEqual property="searchCondition" compareValue="FRST_REGISTER_ID">
|
||||
<isEqual property="searchCondition" compareValue="IEM_CN">
|
||||
AND IEM_CN LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
<isEqual property="searchCondition" compareValue="FRST_REGISTER_ID">
|
||||
AND FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMVNUSERMASTER WHERE USER_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') )
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 설문정보::입력 -->
|
||||
<insert id="QustnrItemManage.insertQustnrItemManage">
|
||||
<![CDATA[
|
||||
|
||||
INSERT INTO LETTNQUSTNRIEM (
|
||||
QUSTNR_QESITM_ID,
|
||||
QESTNR_ID,
|
||||
IEM_SN,
|
||||
QUSTNR_IEM_ID,
|
||||
IEM_CN,
|
||||
ETC_ANSWER_AT,
|
||||
QUSTNR_TMPLAT_ID,
|
||||
FRST_REGIST_PNTTM,
|
||||
FRST_REGISTER_ID,
|
||||
LAST_UPDT_PNTTM,
|
||||
LAST_UPDUSR_ID
|
||||
)VALUES(
|
||||
#qestnrQesitmId#,
|
||||
#qestnrId#,
|
||||
#iemSn#,
|
||||
#qustnrIemId#,
|
||||
#iemCn#,
|
||||
#etcAnswerAt#,
|
||||
#qestnrTmplatId#,
|
||||
sysdate(),
|
||||
#frstRegisterId#,
|
||||
sysdate(),
|
||||
#lastUpdusrId#
|
||||
)
|
||||
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
<!-- 설문정보::입력 -->
|
||||
<insert id="QustnrItemManage.insertItnQustnrItemManage">
|
||||
<![CDATA[
|
||||
INSERT INTO LETTNQUSTNRIEM (
|
||||
QUSTNR_QESITM_ID,
|
||||
QESTNR_ID,
|
||||
IEM_SN,
|
||||
QUSTNR_IEM_ID,
|
||||
IEM_CN,
|
||||
ETC_ANSWER_AT,
|
||||
QUSTNR_TMPLAT_ID,
|
||||
FRST_REGIST_PNTTM,
|
||||
FRST_REGISTER_ID,
|
||||
LAST_UPDT_PNTTM,
|
||||
LAST_UPDUSR_ID
|
||||
)VALUES(
|
||||
#qestnrQesitmId#,
|
||||
#qestnrId#,
|
||||
#iemSn#,
|
||||
#qustnrIemId#,
|
||||
#iemCn#,
|
||||
#etcAnswerAt#,
|
||||
#qestnrTmplatId#,
|
||||
sysdate(),
|
||||
#frstRegisterId#,
|
||||
sysdate(),
|
||||
#lastUpdusrId#
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
<!-- 설문정보::삭제 -->
|
||||
<delete id="QustnrItemManage.deleteAllQustnrItemManage">
|
||||
<![CDATA[
|
||||
DELETE FROM LETTNQUSTNRIEM
|
||||
WHERE QUSTNR_QESITM_ID = #qestnrQesitmId#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
<!-- 설문조사(설문결과) 삭제 -->
|
||||
<delete id="QustnrItemManage.deleteAllQustnrRespondInfo">
|
||||
DELETE FROM LETTNQUSTNRRSPNSRESULT WHERE QESTNR_ID = #qestnrId#
|
||||
</delete>
|
||||
</sqlMap>
|
||||
@ -1,256 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
||||
|
||||
<sqlMap namespace="QustnrManage">
|
||||
|
||||
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
|
||||
<typeAlias alias="comDefaultVO" type="itn.com.cmm.ComDefaultVO"/>
|
||||
<typeAlias alias="QustnrManageVO" type="itn.let.uss.olp.qmc.service.QustnrManageVO"/>
|
||||
|
||||
<resultMap id="QustnrManage" class="itn.let.uss.olp.qmc.service.QustnrManageVO">
|
||||
<result property="qestnrId" column="QESTNR_ID" columnIndex="1"/>
|
||||
<result property="qestnrSj" column="QUSTNR_SJ" columnIndex="2"/>
|
||||
<result property="qestnrPurps" column="QUSTNR_PURPS" columnIndex="3"/>
|
||||
<result property="qestnrWritngGuidanceCn" column="QUSTNR_WRITNG_GUIDANCE_CN" columnIndex="4"/>
|
||||
<result property="qestnrBeginDe" column="QUSTNR_BGNDE" columnIndex="5"/>
|
||||
<result property="qestnrEndDe" column="QUSTNR_ENDDE" columnIndex="6"/>
|
||||
<result property="qestnrTrget" column="QUSTNR_TRGET" columnIndex="7"/>
|
||||
<result property="qestnrTmplatId" column="QUSTNR_TMPLAT_ID" columnIndex="8"/>
|
||||
<result property="qestnrTmplatTy" column="QUSTNR_TMPLAT_TY" columnIndex="9"/>
|
||||
<result property="frstRegisterPnttm" column="FRST_REGIST_PNTTM" columnIndex="10"/>
|
||||
<result property="frstRegisterId" column="FRST_REGISTER_ID" columnIndex="11"/>
|
||||
<result property="lastUpdusrPnttm" column="LAST_UPDT_PNTTM" columnIndex="12"/>
|
||||
<result property="lastUpdusrId" column="LAST_UPDUSR_ID" columnIndex="13"/>
|
||||
<result property="qustnrQesitmCnt" column="QUSTNRQESITM_CNT" />
|
||||
<result property="rrspnsResultCnt" column="RRSPNSRESULT_CNT" />
|
||||
<result property="sttus" column="STTUS" />
|
||||
<result property="qestnrViewTrget" column="QUSTNR_VIEW_TRGET" />
|
||||
</resultMap>
|
||||
|
||||
<!-- 설문정보::목록조회_게시물정보 -->
|
||||
<select id="QustnrManage.selectQustnrManageDetailModel" resultMap="QustnrManage">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
A.QESTNR_ID,
|
||||
A.QUSTNR_SJ,
|
||||
A.QUSTNR_PURPS,
|
||||
A.QUSTNR_WRITNG_GUIDANCE_CN,
|
||||
DATE_FORMAT(A.QUSTNR_BGNDE,'%Y-%m-%d') QUSTNR_BGNDE,
|
||||
DATE_FORMAT(A.QUSTNR_ENDDE,'%Y-%m-%d') QUSTNR_ENDDE,
|
||||
A.QUSTNR_TRGET,
|
||||
A.QUSTNR_TMPLAT_ID,
|
||||
(SELECT QUSTNR_TMPLAT_TY FROM LETTNQUSTNRTMPLAT WHERE QUSTNR_TMPLAT_ID = A.QUSTNR_TMPLAT_ID) QUSTNR_TMPLAT_TY,
|
||||
DATE_FORMAT(A.FRST_REGIST_PNTTM,'%Y-%m-%d %T') FRST_REGIST_PNTTM,
|
||||
(SELECT USER_NM FROM LETTNEMPLYRINFO
|
||||
WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_ID,
|
||||
DATE_FORMAT(A.LAST_UPDT_PNTTM,'%Y-%m-%d %T') LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID,
|
||||
( SELECT COUNT(*) FROM LETTNQUSTNRQESITM WHERE QESTNR_ID = A.QESTNR_ID ) QUSTNRQESITM_CNT ,
|
||||
( SELECT COUNT(*) FROM LETTNQUSTNRRSPNSRESULT WHERE QESTNR_ID = A.QESTNR_ID ) RRSPNSRESULT_CNT,
|
||||
( SELECT COUNT(*) FROM LETTNQUSTNRRESPONDINFO WHERE QESTNR_ID = A.QESTNR_ID ) rrspnsResultCnt,
|
||||
CASE
|
||||
WHEN A.STTUS = '1' THEN
|
||||
CASE
|
||||
WHEN DATE_FORMAT(A.QUSTNR_ENDDE,'%Y%m%d') < DATE_FORMAT(now(), '%Y%m%d') THEN '2'
|
||||
ELSE '1'
|
||||
END
|
||||
ELSE A.STTUS
|
||||
END AS STTUS,
|
||||
A.QUSTNR_VIEW_TRGET
|
||||
FROM LETTNQESTNRINFO A
|
||||
WHERE 1=1
|
||||
AND QESTNR_ID = #qestnrId#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<!-- 설문정보::목록조회_게시물정보 -->
|
||||
<select id="QustnrManage.selectQustnrManage" parameterClass="comDefaultVO" resultClass="egovMap" >
|
||||
<![CDATA[
|
||||
SELECT
|
||||
A.QESTNR_ID qestnrId,
|
||||
A.QUSTNR_SJ qestnrSj,
|
||||
A.QUSTNR_PURPS qestnrPurps,
|
||||
A.QUSTNR_WRITNG_GUIDANCE_CN qestnrWritngGuidanceCn,
|
||||
DATE_FORMAT(A.QUSTNR_BGNDE,'%Y-%m-%d') qestnrBeginDe,
|
||||
DATE_FORMAT(A.QUSTNR_ENDDE,'%Y-%m-%d') qestnrEndDe,
|
||||
A.QUSTNR_TRGET qestnrTrget,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
(SELECT USER_NM FROM COMVNUSERMASTER WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_NM,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID,
|
||||
( SELECT COUNT(*) FROM LETTNQUSTNRQESITM WHERE QESTNR_ID = A.QESTNR_ID ) qustnrQesitmCnt ,
|
||||
( SELECT COUNT(*) FROM LETTNQUSTNRRESPONDINFO WHERE QESTNR_ID = A.QESTNR_ID ) rrspnsResultCnt,
|
||||
CASE
|
||||
WHEN DATE_FORMAT(A.QUSTNR_ENDDE,'%Y%m%d') < DATE_FORMAT(now(), '%Y%m%d') THEN '2' /* 종료 */
|
||||
ELSE A.STTUS
|
||||
END AS STTUS,
|
||||
(SELECT QUSTNR_TMPLAT_PATH_NM FROM LETTNQUSTNRTMPLAT WHERE QUSTNR_TMPLAT_ID = A.QUSTNR_TMPLAT_ID ) TEMPLATE_URL
|
||||
FROM LETTNQESTNRINFO A
|
||||
WHERE 1=1
|
||||
]]>
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="">
|
||||
AND ( QUSTNR_SJ LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') OR FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMVNUSERMASTER WHERE USER_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') ) )
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="QUSTNR_SJ">
|
||||
AND QUSTNR_SJ LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="FRST_REGISTER_ID">
|
||||
AND FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMVNUSERMASTER WHERE USER_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') )
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
ORDER BY 1=1
|
||||
<isNotEmpty property="searchSortCnd">
|
||||
,$searchSortCnd$
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="searchSortOrd">
|
||||
$searchSortOrd$
|
||||
</isNotEmpty>
|
||||
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||
</select>
|
||||
|
||||
<!-- 설문정보::목록조회_게시물 총갯수 -->
|
||||
<select id="QustnrManage.selectQustnrManageCnt" parameterClass="comDefaultVO" resultClass="int">
|
||||
SELECT
|
||||
COUNT(*) totcnt
|
||||
FROM LETTNQESTNRINFO
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="">
|
||||
AND ( QUSTNR_SJ LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') OR FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMVNUSERMASTER WHERE USER_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') ) )
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="QUSTNR_SJ">
|
||||
AND QUSTNR_SJ LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="FRST_REGISTER_ID">
|
||||
AND FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMVNUSERMASTER WHERE USER_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') )
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="searchConditionSite">
|
||||
AND SITE_ID = #searchConditionSite#
|
||||
</isNotEmpty>
|
||||
</select>
|
||||
|
||||
<!-- 설문정보::설문템플릿정보 -->
|
||||
<select id="QustnrManage.selectQustnrTmplatManage" parameterClass="QustnrManageVO" resultClass="egovMap">
|
||||
SELECT
|
||||
QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
QUSTNR_TMPLAT_TY qestnrTmplatTy
|
||||
FROM LETTNQUSTNRTMPLAT
|
||||
</select>
|
||||
|
||||
<!-- 설문응답자 삭제 -->
|
||||
<delete id="QustnrManage.deleteQustnrRespondManage">
|
||||
DELETE FROM LETTNQUSTNRRESPONDINFO WHERE QESTNR_ID = #qestnrId#
|
||||
</delete>
|
||||
<!-- 설문조사(설문결과) 삭제 -->
|
||||
<delete id="QustnrManage.deleteQustnrRespondInfo">
|
||||
DELETE FROM LETTNQUSTNRRSPNSRESULT WHERE QESTNR_ID = #qestnrId#
|
||||
</delete>
|
||||
<!-- 설문항목 삭제 -->
|
||||
<delete id="QustnrManage.deleteQustnrItemManage">
|
||||
DELETE FROM LETTNQUSTNRIEM WHERE QESTNR_ID = #qestnrId#
|
||||
</delete>
|
||||
<!-- 설문문항 삭제 -->
|
||||
<delete id="QustnrManage.deleteQustnrQestnManage">
|
||||
DELETE FROM LETTNQUSTNRQESITM WHERE QESTNR_ID = #qestnrId#
|
||||
</delete>
|
||||
|
||||
<!-- 설문정보::삭제 -->
|
||||
<delete id="QustnrManage.deleteQustnrManage">
|
||||
<![CDATA[
|
||||
DELETE FROM LETTNQESTNRINFO
|
||||
WHERE QESTNR_ID = #qestnrId#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
<!-- 설문정보::수정 -->
|
||||
<update id="QustnrManage.updateQustnrManage">
|
||||
UPDATE LETTNQESTNRINFO
|
||||
SET
|
||||
QUSTNR_SJ=#qestnrSj#,
|
||||
QUSTNR_PURPS=#qestnrPurps#,
|
||||
QUSTNR_TMPLAT_ID=#qestnrTmplatId#,
|
||||
QUSTNR_WRITNG_GUIDANCE_CN=#qestnrWritngGuidanceCn#,
|
||||
QUSTNR_BGNDE=REPLACE(#qestnrBeginDe#,'-',''),
|
||||
QUSTNR_TRGET=#qestnrTrget#,
|
||||
QUSTNR_VIEW_TRGET=#qestnrViewTrget#,
|
||||
QUSTNR_ENDDE=REPLACE(#qestnrEndDe#,'-',''),
|
||||
LAST_UPDT_PNTTM = sysdate(),
|
||||
LAST_UPDUSR_ID = #lastUpdusrId#,
|
||||
STTUS = #sttus#
|
||||
WHERE QESTNR_ID = #qestnrId#
|
||||
</update>
|
||||
|
||||
<!-- 설문정보::상세보기 -->
|
||||
<select id="QustnrManage.selectQustnrManageDetail" parameterClass="QustnrManageVO" resultClass="egovMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
A.QESTNR_ID,
|
||||
A.QUSTNR_SJ qestnrSj,
|
||||
A.QUSTNR_PURPS qestnrPurps,
|
||||
A.QUSTNR_WRITNG_GUIDANCE_CN qestnrWritngGuidanceCn,
|
||||
DATE_FORMAT(A.QUSTNR_BGNDE,'%Y-%m-%d') QESTNR_BEGIN_DE,
|
||||
DATE_FORMAT(A.QUSTNR_ENDDE,'%Y-%m-%d') QESTNR_END_DE,
|
||||
DATE_FORMAT(A.FRST_REGIST_PNTTM,'%Y-%m-%d %T') frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
DATE_FORMAT(A.LAST_UPDT_PNTTM,'%Y-%m-%d %T') LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID,
|
||||
A.QUSTNR_TRGET qestnrTrget,
|
||||
A.QUSTNR_VIEW_TRGET qestnrViewTrget,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
( SELECT COUNT(*) FROM LETTNQUSTNRQESITM WHERE QESTNR_ID = A.QESTNR_ID ) qustnrQesitmCnt ,
|
||||
( SELECT COUNT(*) FROM LETTNQUSTNRRESPONDINFO WHERE QESTNR_ID = A.QESTNR_ID ) rrspnsResultCnt,
|
||||
CASE
|
||||
WHEN DATE_FORMAT(A.QUSTNR_ENDDE,'%Y%m%d') < DATE_FORMAT(now(), '%Y%m%d') THEN '2' /* 종료 */
|
||||
ELSE A.STTUS
|
||||
END AS STTUS,
|
||||
(SELECT QUSTNR_TMPLAT_PATH_NM FROM LETTNQUSTNRTMPLAT WHERE QUSTNR_TMPLAT_ID = A.QUSTNR_TMPLAT_ID ) TEMPLATE_URL
|
||||
FROM LETTNQESTNRINFO A
|
||||
WHERE 1=1
|
||||
AND QESTNR_ID = #qestnrId#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<!-- 설문정보::입력 -->
|
||||
<insert id="QustnrManage.insertQustnrManage">
|
||||
INSERT INTO LETTNQESTNRINFO (
|
||||
QESTNR_ID,
|
||||
QUSTNR_SJ,
|
||||
QUSTNR_PURPS,
|
||||
QUSTNR_WRITNG_GUIDANCE_CN,
|
||||
QUSTNR_BGNDE,
|
||||
QUSTNR_ENDDE,
|
||||
QUSTNR_TRGET,
|
||||
QUSTNR_VIEW_TRGET,
|
||||
QUSTNR_TMPLAT_ID,
|
||||
FRST_REGIST_PNTTM,
|
||||
FRST_REGISTER_ID,
|
||||
LAST_UPDT_PNTTM,
|
||||
LAST_UPDUSR_ID
|
||||
)VALUES(
|
||||
#qestnrId#,
|
||||
#qestnrSj#,
|
||||
#qestnrPurps#,
|
||||
#qestnrWritngGuidanceCn#,
|
||||
REPLACE(#qestnrBeginDe#,'-',''),
|
||||
REPLACE(#qestnrEndDe#,'-',''),
|
||||
#qestnrTrget#,
|
||||
#qestnrViewTrget#,
|
||||
#qestnrTmplatId#,
|
||||
sysdate(),
|
||||
#frstRegisterId#,
|
||||
sysdate(),
|
||||
#lastUpdusrId#
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
</sqlMap>
|
||||
@ -1,196 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
||||
|
||||
<sqlMap namespace="QustnrQestnManage">
|
||||
|
||||
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
|
||||
<typeAlias alias="comDefaultVO" type="itn.com.cmm.ComDefaultVO"/>
|
||||
<typeAlias alias="QustnrQestnManageVO" type="itn.let.uss.olp.qqm.service.QustnrQestnManageVO"/>
|
||||
<!-- 설문문항:: 객관식 통계 -->
|
||||
<select id="QustnrQestnManage.selectQustnrManageStatistics" parameterClass="java.util.Map" resultClass="egovMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
( SELECT IEM_CN FROM LETTNQUSTNRIEM
|
||||
WHERE 1=1
|
||||
AND QUSTNR_IEM_ID = A.QUSTNR_IEM_ID ) IEM_CN,
|
||||
COUNT(A.QUSTNR_IEM_ID) QUSTNR_IEM_ID_CNT,
|
||||
ROUND((100/(SELECT COUNT(*) CNT
|
||||
FROM LETTNQUSTNRRSPNSRESULT
|
||||
WHERE QUSTNR_QESITM_ID = #qestnrQesitmId#)) * COUNT(A.QUSTNR_IEM_ID)) QUSTNR_PERCENT
|
||||
FROM LETTNQUSTNRRSPNSRESULT A
|
||||
WHERE 1=1
|
||||
AND A.QUSTNR_QESITM_ID = #qestnrQesitmId#
|
||||
GROUP BY A.QUSTNR_IEM_ID
|
||||
]]>
|
||||
</select>
|
||||
<!-- 설문문항:: 응답자답변내용 결과/기타답변내용 결과 통계 -->
|
||||
<select id="QustnrQestnManage.selectQustnrManageStatistics2" parameterClass="java.util.Map" resultClass="egovMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
RESPOND_ANSWER_CN,
|
||||
ETC_ANSWER_CN
|
||||
FROM LETTNQUSTNRRSPNSRESULT A
|
||||
WHERE 1=1
|
||||
AND A.QUSTNR_QESITM_ID = #qestnrQesitmId#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<!-- 설문문항:: 설문지 제목 검색 -->
|
||||
<select id="QustnrQestnManage.selectQustnrManageQestnrSj" parameterClass="java.util.Map" resultClass="egovMap">
|
||||
SELECT QUSTNR_SJ
|
||||
FROM LETTNQESTNRINFO
|
||||
WHERE QESTNR_ID = #qestnrId#
|
||||
</select>
|
||||
|
||||
<!-- 설문조사(설문결과) 삭제 -->
|
||||
<delete id="QustnrQestnManage.deleteQustnrRespondInfo">
|
||||
DELETE FROM LETTNQUSTNRRSPNSRESULT
|
||||
WHERE QUSTNR_QESITM_ID = #qestnrQesitmId#
|
||||
</delete>
|
||||
<!-- 설문항목 삭제 -->
|
||||
<delete id="QustnrQestnManage.deleteQustnrItemManage">
|
||||
DELETE FROM LETTNQUSTNRIEM
|
||||
WHERE QUSTNR_QESITM_ID = #qestnrQesitmId#
|
||||
</delete>
|
||||
|
||||
<!-- 설문문항::삭제 -->
|
||||
<delete id="QustnrQestnManage.deleteQustnrQestnManage">
|
||||
<![CDATA[
|
||||
DELETE FROM LETTNQUSTNRQESITM
|
||||
WHERE QUSTNR_QESITM_ID = #qestnrQesitmId#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
<!-- 설문문항::수정 -->
|
||||
<update id="QustnrQestnManage.updateQustnrQestnManage">
|
||||
UPDATE LETTNQUSTNRQESITM
|
||||
SET
|
||||
QESTN_SN=#qestnSn#,
|
||||
QESTN_TY_CODE=#qestnTyCode#,
|
||||
QESTN_CN=#qestnCn#,
|
||||
MXMM_CHOISE_CO=#mxmmChoiseCo#,
|
||||
LAST_UPDT_PNTTM = sysdate(),
|
||||
LAST_UPDUSR_ID = #lastUpdusrId#
|
||||
WHERE QUSTNR_QESITM_ID = #qestnrQesitmId#
|
||||
</update>
|
||||
|
||||
<!-- 설문문항::상세보기 -->
|
||||
<select id="QustnrQestnManage.selectQustnrQestnManageDetail" parameterClass="QustnrQestnManageVO" resultClass="egovMap">
|
||||
SELECT
|
||||
A.QUSTNR_QESITM_ID qestnrQesitmId,
|
||||
A.QESTNR_ID,
|
||||
(SELECT QUSTNR_SJ FROM LETTNQESTNRINFO WHERE QESTNR_ID=A.QESTNR_ID) QESTNR_SJ,
|
||||
A.QESTN_SN qestnSn,
|
||||
A.QESTN_TY_CODE qestnTyCode,
|
||||
A.QESTN_CN qestnCn,
|
||||
A.MXMM_CHOISE_CO mxmmChoiseCo,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
DATE_FORMAT(A.FRST_REGIST_PNTTM,'%Y-%m-%d %H%:i:%s') FRST_REGIST_PNTTM,
|
||||
A.FRST_REGISTER_ID,
|
||||
DATE_FORMAT(A.LAST_UPDT_PNTTM,'%Y-%m-%d %H%:i:%s') LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID
|
||||
FROM LETTNQUSTNRQESITM A
|
||||
WHERE 1=1
|
||||
AND QUSTNR_QESITM_ID = #qestnrQesitmId#
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 설문문항::목록조회_게시물정보 -->
|
||||
<select id="QustnrQestnManage.selectQustnrQestnManage" parameterClass="comDefaultVO" resultClass="egovMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
A.QUSTNR_QESITM_ID qestnrQesitmId,
|
||||
A.QESTNR_ID,
|
||||
(SELECT QUSTNR_SJ FROM LETTNQESTNRINFO WHERE QESTNR_ID=A.QESTNR_ID) QESTNR_SJ,
|
||||
A.QESTN_SN,
|
||||
A.QESTN_TY_CODE,
|
||||
A.QESTN_CN,
|
||||
A.MXMM_CHOISE_CO,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
DATE_FORMAT(A.FRST_REGIST_PNTTM,'%Y-%m-%d') FRST_REGIST_PNTTM,
|
||||
A.FRST_REGISTER_ID,
|
||||
(SELECT USER_NM FROM COMVNUSERMASTER WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_NM,
|
||||
DATE_FORMAT(A.LAST_UPDT_PNTTM,'%Y-%m-%d') LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID,
|
||||
( SELECT COUNT(*) FROM LETTNQUSTNRIEM WHERE QUSTNR_QESITM_ID = A.QUSTNR_QESITM_ID ) QUSTNRIEM_CNT
|
||||
FROM LETTNQUSTNRQESITM A
|
||||
WHERE 1=1
|
||||
]]>
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isNotEqual property="searchCondition" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="QESTN_CN">
|
||||
AND QESTN_CN LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="MXMM_CHOISE_CO">
|
||||
AND MXMM_CHOISE_CO LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="QESTNR_ID">
|
||||
AND QESTNR_ID = #searchKeyword#
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
|
||||
<![CDATA[
|
||||
ORDER BY A.QESTN_SN ASC
|
||||
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<!-- 설문문항::목록조회_게시물 총갯수 -->
|
||||
<select id="QustnrQestnManage.selectQustnrQestnManageCnt" parameterClass="comDefaultVO" resultClass="int">
|
||||
SELECT
|
||||
COUNT(*) totcnt
|
||||
FROM LETTNQUSTNRQESITM
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isNotEqual property="searchCondition" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="QESTN_CN">
|
||||
AND QESTN_CN LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="MXMM_CHOISE_CO">
|
||||
AND MXMM_CHOISE_CO LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
</select>
|
||||
|
||||
<!-- 설문문항::입력 -->
|
||||
<insert id="QustnrQestnManage.insertQustnrQestnManage">
|
||||
<![CDATA[
|
||||
|
||||
INSERT INTO LETTNQUSTNRQESITM (
|
||||
QUSTNR_QESITM_ID,
|
||||
QESTNR_ID,
|
||||
QESTN_SN,
|
||||
QESTN_TY_CODE,
|
||||
QESTN_CN,
|
||||
MXMM_CHOISE_CO,
|
||||
QUSTNR_TMPLAT_ID,
|
||||
FRST_REGIST_PNTTM,
|
||||
FRST_REGISTER_ID,
|
||||
LAST_UPDT_PNTTM,
|
||||
LAST_UPDUSR_ID
|
||||
)VALUES(
|
||||
#qestnrQesitmId#,
|
||||
#qestnrId#,
|
||||
#qestnSn#,
|
||||
#qestnTyCode#,
|
||||
#qestnCn#,
|
||||
#mxmmChoiseCo#,
|
||||
#qestnrTmplatId#,
|
||||
sysdate(),
|
||||
#frstRegisterId#,
|
||||
sysdate(),
|
||||
#lastUpdusrId#
|
||||
)
|
||||
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
|
||||
</sqlMap>
|
||||
@ -1,376 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
||||
|
||||
<sqlMap namespace="QustnrRespondInfo">
|
||||
|
||||
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
|
||||
<typeAlias alias="comDefaultVO" type="itn.com.cmm.ComDefaultVO"/>
|
||||
<typeAlias alias="QustnrRespondInfoVO" type="itn.let.uss.olp.qri.service.QustnrRespondInfoVO"/>
|
||||
|
||||
<!-- 설문등록:: 설문템플릿조회 -->
|
||||
<select id="QustnrRespondInfo.selectQustnrTmplatManages" parameterClass="java.util.Map" resultClass="egovMap">
|
||||
SELECT
|
||||
QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
QUSTNR_TMPLAT_TY qestnrTmplatTy,
|
||||
FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
FRST_REGISTER_ID,
|
||||
LAST_UPDT_PNTTM,
|
||||
LAST_UPDUSR_ID,
|
||||
QUSTNR_TMPLAT_DC qestnrTmplatCn,
|
||||
QUSTNR_TMPLAT_PATH_NM qestnrTmplatCours
|
||||
FROM LETTNQUSTNRTMPLAT
|
||||
WHERE 1=1
|
||||
AND QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</select>
|
||||
|
||||
<!-- 설문조사(통계/객관식):: 설문지 전체 통계 -->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfoManageStatistics1" parameterClass="java.util.Map" resultClass="egovMap">
|
||||
SELECT
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.QESTNR_ID,
|
||||
A.QUSTNR_QESITM_ID qestnrQesitmId,
|
||||
A.QUSTNR_IEM_ID,
|
||||
(
|
||||
SELECT IEM_CN FROM LETTNQUSTNRIEM
|
||||
WHERE 1=1
|
||||
AND QUSTNR_IEM_ID = A.QUSTNR_IEM_ID
|
||||
) IEM_CN,
|
||||
COUNT(A.QUSTNR_IEM_ID) QUSTNR_IEM_ID_CNT,
|
||||
ROUND((100/ (SELECT COUNT(*) CNT FROM LETTNQUSTNRRSPNSRESULT WHERE QUSTNR_QESITM_ID = A.QUSTNR_QESITM_ID) ) * COUNT(A.QUSTNR_IEM_ID)) QUSTNR_PERCENT
|
||||
FROM LETTNQUSTNRRSPNSRESULT A
|
||||
WHERE 1=1
|
||||
AND A.QESTNR_ID = #qestnrId#
|
||||
AND A.QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
AND (A.QUSTNR_IEM_ID IS NOT NULL AND A.QUSTNR_IEM_ID != '')
|
||||
GROUP BY A.QUSTNR_TMPLAT_ID,A.QESTNR_ID, A.QUSTNR_QESITM_ID, A.QUSTNR_IEM_ID
|
||||
</select>
|
||||
<!-- 설문조사(통계/주관식):: 설문지 전체 통계 -->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfoManageStatistics2" parameterClass="java.util.Map" resultClass="egovMap">
|
||||
SELECT
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.QESTNR_ID,
|
||||
A.QUSTNR_QESITM_ID qestnrQesitmId,
|
||||
A.QUSTNR_IEM_ID,
|
||||
A.ETC_ANSWER_CN,
|
||||
A.RESPOND_ANSWER_CN,
|
||||
A.RESPOND_NM
|
||||
FROM LETTNQUSTNRRSPNSRESULT A
|
||||
WHERE 1=1
|
||||
AND A.QESTNR_ID = #qestnrId#
|
||||
AND A.QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
AND (A.QUSTNR_IEM_ID IS NULL OR A.QUSTNR_IEM_ID = '')
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 설문조사(설문등록):: 설문등록 /사용자 정보-->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfoManageEmplyrinfo" parameterClass="java.util.Map" resultClass="egovMap">
|
||||
SELECT
|
||||
MBER_ID EMPLYR_ID,
|
||||
MBER_NM EMPLYR_NM,
|
||||
SEXDSTN_CODE,
|
||||
DATE_FORMAT(SYSDATE(),'%Y%m%d') BRTH
|
||||
FROM LETTNGNRLMBER
|
||||
WHERE 1=1
|
||||
AND ESNTL_ID = #uniqId#
|
||||
|
||||
</select>
|
||||
<!-- 설문조사(설문등록):: 설문등록 /설문지정보-->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfoManageComtnqestnrinfo" parameterClass="java.util.Map" resultClass="egovMap">
|
||||
SELECT
|
||||
A.QESTNR_ID,
|
||||
A.QUSTNR_SJ qestnrSj,
|
||||
A.QUSTNR_PURPS qestnrPurps,
|
||||
A.QUSTNR_WRITNG_GUIDANCE_CN qestnrWritngGuidanceCn,
|
||||
DATE_FORMAT(A.QUSTNR_BGNDE, '%Y-%m-%d') QESTNR_BEGIN_DE,
|
||||
DATE_FORMAT(A.QUSTNR_ENDDE, '%Y-%m-%d') QESTNR_END_DE,
|
||||
A.FRST_REGIST_PNTTM,
|
||||
A.FRST_REGISTER_ID,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID,
|
||||
A.QUSTNR_TRGET qestnrTrget,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId
|
||||
FROM LETTNQESTNRINFO A
|
||||
WHERE 1=1
|
||||
AND A.QESTNR_ID = #qestnrId#
|
||||
AND A.QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</select>
|
||||
<!-- 설문조사(설문등록):: 설문등록 /설문문 항정보-->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfoManageComtnqustnrqesitm" parameterClass="java.util.Map" resultClass="egovMap">
|
||||
SELECT
|
||||
A.QUSTNR_QESITM_ID qestnrQesitmId,
|
||||
A.QESTNR_ID,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID,
|
||||
A.QESTN_SN,
|
||||
A.QESTN_TY_CODE,
|
||||
A.QESTN_CN,
|
||||
A.MXMM_CHOISE_CO,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId
|
||||
FROM LETTNQUSTNRQESITM A
|
||||
WHERE 1=1
|
||||
AND A.QESTNR_ID = #qestnrId#
|
||||
AND A.QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
ORDER BY A.QESTN_SN
|
||||
</select>
|
||||
<!-- 설문조사(설문등록):: 설문등록 /설문 항목정보 -->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfoManageComtnqustnriem" parameterClass="java.util.Map" resultClass="egovMap">
|
||||
SELECT
|
||||
A.QUSTNR_QESITM_ID qestnrQesitmId,
|
||||
A.QESTNR_ID,
|
||||
A.IEM_SN,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID,
|
||||
A.QUSTNR_IEM_ID,
|
||||
A.IEM_CN,
|
||||
A.ETC_ANSWER_AT,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId
|
||||
FROM LETTNQUSTNRIEM A
|
||||
WHERE 1=1
|
||||
AND A.QESTNR_ID = #qestnrId#
|
||||
AND A.QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</select>
|
||||
|
||||
<!-- 설문조사(설문등록)::목록조회_게시물정보 -->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfoManage" parameterClass="comDefaultVO" resultClass="egovMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
A.QESTNR_ID,
|
||||
A.QUSTNR_SJ qestnrSj,
|
||||
A.QUSTNR_PURPS qestnrPurps,
|
||||
A.QUSTNR_WRITNG_GUIDANCE_CN qestnrWritngGuidanceCn,
|
||||
DATE_FORMAT(A.QUSTNR_BGNDE, '%Y-%m-%d') qestnrBeginDe,
|
||||
DATE_FORMAT(A.QUSTNR_ENDDE, '%Y-%m-%d') qestnrEndDe,
|
||||
A.QUSTNR_TRGET qestnrTrget,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
(SELECT USER_NM FROM COMVNUSERMASTER WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_NM,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID,
|
||||
( SELECT COUNT(*) FROM LETTNQUSTNRRESPONDINFO WHERE QESTNR_ID = A.QESTNR_ID ) rrspnsResultCnt
|
||||
FROM LETTNQESTNRINFO A
|
||||
WHERE 1=1
|
||||
]]>
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isNotEqual property="searchCondition" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="QUSTNR_SJ">
|
||||
AND QUSTNR_SJ LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="FRST_REGISTER_ID">
|
||||
AND B.USER_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
<![CDATA[
|
||||
ORDER BY A.FRST_REGIST_PNTTM DESC
|
||||
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<!-- 설문조사(설문등록)::목록조회_게시물 총갯수 -->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfoManageCnt" parameterClass="comDefaultVO" resultClass="int">
|
||||
SELECT
|
||||
COUNT(*) totcnt
|
||||
FROM LETTNQESTNRINFO
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isNotEqual property="searchCondition" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="QUSTNR_SJ">
|
||||
AND QUSTNR_SJ LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="FRST_REGISTER_ID">
|
||||
AND B.USER_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
</select>
|
||||
|
||||
<!-- 응답자결과(설문조사)::설문템플릿정보 -->
|
||||
<select id="QustnrRespondInfo.selectQustnrTmplatManage" parameterClass="QustnrRespondInfoVO" resultClass="egovMap">
|
||||
SELECT
|
||||
QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
QUSTNR_TMPLAT_TY qestnrTmplatTy
|
||||
FROM LETTNQUSTNRRSPNSRESULT
|
||||
</select>
|
||||
|
||||
<!-- 응답자결과(설문조사)::삭제 -->
|
||||
<delete id="QustnrRespondInfo.deleteQustnrRespondInfo">
|
||||
<![CDATA[
|
||||
DELETE FROM LETTNQUSTNRRSPNSRESULT
|
||||
WHERE 1=1
|
||||
AND QUSTNR_RSPNS_RESULT_ID = #qestnrQesrspnsId#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
<!-- 응답자결과(설문조사)::수정 -->
|
||||
<update id="QustnrRespondInfo.updateQustnrRespondInfo">
|
||||
UPDATE LETTNQUSTNRRSPNSRESULT
|
||||
SET
|
||||
QUSTNR_IEM_ID=#qustnrIemId#,
|
||||
RESPOND_ANSWER_CN=#respondAnswerCn#,
|
||||
RESPOND_NM=#respondNm#,
|
||||
ETC_ANSWER_CN=#etcAnswerCn#,
|
||||
LAST_UPDT_PNTTM = sysdate(),
|
||||
LAST_UPDUSR_ID = #lastUpdusrId#
|
||||
WHERE 1=1
|
||||
AND QUSTNR_RSPNS_RESULT_ID = #qestnrQesrspnsId#
|
||||
</update>
|
||||
|
||||
<!-- 응답자결과(설문조사)::상세보기 -->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfoDetail" parameterClass="QustnrRespondInfoVO" resultClass="egovMap">
|
||||
SELECT
|
||||
QUSTNR_RSPNS_RESULT_ID qestnrQesrspnsId,
|
||||
( SELECT QUSTNR_SJ FROM LETTNQESTNRINFO
|
||||
WHERE 1=1
|
||||
AND QESTNR_ID = A.QESTNR_ID ) qestnrSj,
|
||||
( SELECT QESTN_TY_CODE FROM LETTNQUSTNRQESITM
|
||||
WHERE 1=1
|
||||
AND QUSTNR_QESITM_ID = A.QUSTNR_QESITM_ID ) QESTN_TY_CODE,
|
||||
( SELECT QESTN_CN FROM LETTNQUSTNRQESITM
|
||||
WHERE 1=1
|
||||
AND QUSTNR_QESITM_ID = A.QUSTNR_QESITM_ID ) QESTN_CN,
|
||||
( SELECT IEM_CN FROM LETTNQUSTNRIEM
|
||||
WHERE 1=1
|
||||
AND QUSTNR_IEM_ID = A.QUSTNR_IEM_ID ) IEM_CN,
|
||||
A.QUSTNR_IEM_ID,
|
||||
A.QUSTNR_QESITM_ID qestnrQesitmId,
|
||||
A.QESTNR_ID,
|
||||
A.RESPOND_ANSWER_CN,
|
||||
A.RESPOND_NM,
|
||||
A.ETC_ANSWER_CN,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID
|
||||
FROM LETTNQUSTNRRSPNSRESULT A
|
||||
WHERE 1=1
|
||||
AND A.QUSTNR_RSPNS_RESULT_ID = #qestnrQesrspnsId#
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 응답자결과(설문조사)::목록조회_게시물정보 -->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfo" parameterClass="comDefaultVO" resultClass="egovMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
QUSTNR_RSPNS_RESULT_ID qestnrQesrspnsId,
|
||||
(
|
||||
SELECT QESTN_TY_CODE FROM LETTNQUSTNRQESITM
|
||||
WHERE 1=1
|
||||
AND QUSTNR_QESITM_ID = A.QUSTNR_QESITM_ID
|
||||
) QESTN_TY_CODE,
|
||||
(
|
||||
SELECT QESTN_CN FROM LETTNQUSTNRQESITM
|
||||
WHERE 1=1
|
||||
AND QUSTNR_QESITM_ID = A.QUSTNR_QESITM_ID
|
||||
) QESTN_CN,
|
||||
(
|
||||
SELECT IEM_CN FROM LETTNQUSTNRIEM
|
||||
WHERE 1=1
|
||||
AND QUSTNR_IEM_ID = A.QUSTNR_IEM_ID
|
||||
) IEM_CN,
|
||||
A.QUSTNR_IEM_ID,
|
||||
A.QUSTNR_QESITM_ID,
|
||||
A.QESTNR_ID,
|
||||
A.RESPOND_ANSWER_CN,
|
||||
A.RESPOND_NM,
|
||||
A.ETC_ANSWER_CN,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
(SELECT USER_NM FROM COMVNUSERMASTER WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_NM,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID
|
||||
FROM LETTNQUSTNRRSPNSRESULT A
|
||||
WHERE 1=1
|
||||
]]>
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isNotEqual property="searchCondition" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="ETC_ANSWER_CN">
|
||||
AND ETC_ANSWER_CN LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="RESPOND_ANSWER_CN">
|
||||
AND RESPOND_ANSWER_CN LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="RESPOND_NM">
|
||||
AND RESPOND_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
<![CDATA[
|
||||
ORDER BY A.FRST_REGIST_PNTTM DESC
|
||||
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<!-- 응답자결과(설문조사)::목록조회_게시물 총갯수 -->
|
||||
<select id="QustnrRespondInfo.selectQustnrRespondInfoCnt" parameterClass="comDefaultVO" resultClass="int">
|
||||
SELECT
|
||||
COUNT(*) totcnt
|
||||
FROM LETTNQUSTNRRSPNSRESULT
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isNotEqual property="searchCondition" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="ETC_ANSWER_CN">
|
||||
AND ETC_ANSWER_CN LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="RESPOND_ANSWER_CN">
|
||||
AND RESPOND_ANSWER_CN LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="RESPOND_NM">
|
||||
AND RESPOND_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
</select>
|
||||
|
||||
<!-- 응답자결과(설문조사)::입력 -->
|
||||
<insert id="QustnrRespondInfo.insertQustnrRespondInfo">
|
||||
<![CDATA[
|
||||
|
||||
INSERT INTO LETTNQUSTNRRSPNSRESULT (
|
||||
QUSTNR_RSPNS_RESULT_ID,
|
||||
QUSTNR_QESITM_ID,
|
||||
QESTNR_ID,
|
||||
QUSTNR_TMPLAT_ID,
|
||||
QUSTNR_IEM_ID,
|
||||
RESPOND_ANSWER_CN,
|
||||
RESPOND_NM,
|
||||
ETC_ANSWER_CN,
|
||||
FRST_REGIST_PNTTM,
|
||||
FRST_REGISTER_ID,
|
||||
LAST_UPDT_PNTTM,
|
||||
LAST_UPDUSR_ID
|
||||
)VALUES(
|
||||
#qestnrQesrspnsId#,
|
||||
#qestnrQesitmId#,
|
||||
#qestnrId#,
|
||||
#qestnrTmplatId#,
|
||||
#qustnrIemId#,
|
||||
#respondAnswerCn#,
|
||||
#respondNm#,
|
||||
#etcAnswerCn#,
|
||||
sysdate(),
|
||||
#frstRegisterId#,
|
||||
sysdate(),
|
||||
#lastUpdusrId#
|
||||
)
|
||||
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
|
||||
</sqlMap>
|
||||
@ -1,178 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
||||
|
||||
<sqlMap namespace="QustnrRespondManage">
|
||||
|
||||
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
|
||||
<typeAlias alias="comDefaultVO" type="itn.com.cmm.ComDefaultVO"/>
|
||||
<typeAlias alias="QustnrRespondManageVO" type="itn.let.uss.olp.qrm.service.QustnrRespondManageVO"/>
|
||||
|
||||
<!-- 응답자결과(설문조사)::삭제 -->
|
||||
<delete id="QustnrRespondManage.deleteQustnrRespondManage">
|
||||
<![CDATA[
|
||||
DELETE FROM LETTNQUSTNRRESPONDINFO
|
||||
WHERE 1=1
|
||||
AND QUSTNR_RESPOND_ID = #qestnrRespondId#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
<!-- 응답자결과(설문조사)::수정 -->
|
||||
<update id="QustnrRespondManage.updateQustnrRespondManage">
|
||||
UPDATE LETTNQUSTNRRESPONDINFO
|
||||
SET
|
||||
SEXDSTN_CODE=#sexdstnCode#,
|
||||
OCCP_TY_CODE=#occpTyCode#,
|
||||
RESPOND_NM=#respondNm#,
|
||||
BRTHDY=#brth#,
|
||||
AREA_NO=#areaNo#,
|
||||
MIDDLE_TELNO=#middleTelno#,
|
||||
END_TELNO=#endTelno#,
|
||||
LAST_UPDT_PNTTM = sysdate(),
|
||||
LAST_UPDUSR_ID = #lastUpdusrId#
|
||||
WHERE 1=1
|
||||
AND QUSTNR_RESPOND_ID = #qestnrRespondId#
|
||||
</update>
|
||||
|
||||
<!-- 응답자결과(설문조사)::상세보기 -->
|
||||
<select id="QustnrRespondManage.selectQustnrRespondManageDetail" parameterClass="QustnrRespondManageVO" resultClass="egovMap">
|
||||
SELECT
|
||||
(
|
||||
SELECT QUSTNR_SJ FROM LETTNQESTNRINFO
|
||||
WHERE 1=1
|
||||
AND QESTNR_ID = A.QESTNR_ID
|
||||
) QESTNR_SJ,
|
||||
A.QESTNR_ID,
|
||||
A.QUSTNR_RESPOND_ID qestnrRespondId,
|
||||
A.SEXDSTN_CODE,
|
||||
A.OCCP_TY_CODE,
|
||||
A.RESPOND_NM,
|
||||
A.BRTHDY,
|
||||
A.AREA_NO,
|
||||
A.MIDDLE_TELNO,
|
||||
A.END_TELNO,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID
|
||||
FROM LETTNQUSTNRRESPONDINFO A
|
||||
WHERE 1=1
|
||||
AND QUSTNR_RESPOND_ID = #qestnrRespondId#
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 응답자결과(설문조사)::목록조회_게시물정보 -->
|
||||
<select id="QustnrRespondManage.selectQustnrRespondManage" parameterClass="comDefaultVO" resultClass="egovMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
(
|
||||
SELECT QUSTNR_SJ FROM LETTNQESTNRINFO
|
||||
WHERE 1=1
|
||||
AND QESTNR_ID = A.QESTNR_ID
|
||||
) QESTNR_SJ,
|
||||
A.QESTNR_ID,
|
||||
A.QUSTNR_RESPOND_ID qestnrRespondId,
|
||||
A.SEXDSTN_CODE,
|
||||
A.OCCP_TY_CODE,
|
||||
A.RESPOND_NM,
|
||||
A.BRTHDY,
|
||||
A.AREA_NO,
|
||||
A.MIDDLE_TELNO,
|
||||
A.END_TELNO,
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
A.FRST_REGISTER_ID,
|
||||
(SELECT USER_NM FROM COMVNUSERMASTER WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_NM,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID
|
||||
FROM LETTNQUSTNRRESPONDINFO A
|
||||
WHERE 1=1
|
||||
]]>
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="">
|
||||
AND ( RESPOND_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') OR BRTHDY LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') )
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="RESPOND_NM">
|
||||
AND RESPOND_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="BRTH">
|
||||
AND BRTHDY LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="BRTH">
|
||||
AND BRTHDY LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
<![CDATA[
|
||||
ORDER BY A.FRST_REGIST_PNTTM DESC
|
||||
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<!-- 응답자결과(설문조사)::목록조회_게시물 총갯수 -->
|
||||
<select id="QustnrRespondManage.selectQustnrRespondManageCnt" parameterClass="comDefaultVO" resultClass="int">
|
||||
SELECT
|
||||
COUNT(*) totcnt
|
||||
FROM LETTNQUSTNRRESPONDINFO
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="">
|
||||
AND ( RESPOND_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') OR BRTHDY LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') )
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="RESPOND_NM">
|
||||
AND RESPOND_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="BRTH">
|
||||
AND BRTHDY LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="BRTH">
|
||||
AND BRTHDY LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
</select>
|
||||
|
||||
<!-- 응답자결과(설문조사)::입력 -->
|
||||
<insert id="QustnrRespondManage.insertQustnrRespondManage">
|
||||
<![CDATA[
|
||||
|
||||
INSERT INTO LETTNQUSTNRRESPONDINFO (
|
||||
QESTNR_ID,
|
||||
QUSTNR_RESPOND_ID,
|
||||
SEXDSTN_CODE,
|
||||
OCCP_TY_CODE,
|
||||
RESPOND_NM,
|
||||
BRTHDY,
|
||||
AREA_NO,
|
||||
MIDDLE_TELNO,
|
||||
END_TELNO,
|
||||
QUSTNR_TMPLAT_ID,
|
||||
FRST_REGIST_PNTTM,
|
||||
FRST_REGISTER_ID,
|
||||
LAST_UPDT_PNTTM,
|
||||
LAST_UPDUSR_ID
|
||||
)VALUES(
|
||||
#qestnrId#,
|
||||
#qestnrRespondId#,
|
||||
#sexdstnCode#,
|
||||
#occpTyCode#,
|
||||
#respondNm#,
|
||||
#brth#,
|
||||
#areaNo#,
|
||||
#middleTelno#,
|
||||
#endTelno#,
|
||||
#qestnrTmplatId#,
|
||||
sysdate(),
|
||||
#frstRegisterId#,
|
||||
sysdate(),
|
||||
#lastUpdusrId#
|
||||
)
|
||||
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
|
||||
</sqlMap>
|
||||
@ -1,170 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
||||
|
||||
<sqlMap namespace="QustnrTmplatManage">
|
||||
|
||||
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
|
||||
<typeAlias alias="comDefaultVO" type="itn.com.cmm.ComDefaultVO"/>
|
||||
<typeAlias alias="QustnrTmplatManageVO" type="itn.let.uss.olp.qtm.service.QustnrTmplatManageVO"/>
|
||||
|
||||
<resultMap id="QustnrTmplatManageTmplatImagepathnm" class="java.util.HashMap">
|
||||
<result property="QUSTNR_TMPLAT_IMAGE_INFOPATHNM" column="QUSTNR_TMPLAT_IMAGE_INFOPATHNM" jdbcType="BLOB" javaType="[B"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="QustnrTmplatManage.selectQustnrTmplatManageTmplatImagepathnm" parameterClass="QustnrTmplatManageVO" resultMap="QustnrTmplatManageTmplatImagepathnm">
|
||||
SELECT
|
||||
QUSTNR_TMPLAT_IMAGE_INFO QUSTNR_TMPLAT_IMAGE_INFOPATHNM
|
||||
FROM LETTNQUSTNRTMPLAT
|
||||
WHERE 1=1
|
||||
AND QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</select>
|
||||
<!-- 설문응답자 삭제 -->
|
||||
<delete id="QustnrTmplatManage.deleteQustnrRespondManage">
|
||||
DELETE FROM LETTNQUSTNRRESPONDINFO
|
||||
WHERE QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</delete>
|
||||
<!-- 설문조사(설문결과) 삭제 -->
|
||||
<delete id="QustnrTmplatManage.deleteQustnrRespondInfo">
|
||||
DELETE FROM LETTNQUSTNRRSPNSRESULT
|
||||
WHERE QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</delete>
|
||||
<!-- 설문항목 삭제 -->
|
||||
<delete id="QustnrTmplatManage.deleteQustnrItemManage">
|
||||
DELETE FROM LETTNQUSTNRIEM
|
||||
WHERE QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</delete>
|
||||
<!-- 설문문항 삭제 -->
|
||||
<delete id="QustnrTmplatManage.deleteQustnrQestnManage">
|
||||
DELETE FROM LETTNQUSTNRQESITM
|
||||
WHERE QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</delete>
|
||||
<!-- 설문관리 삭제 -->
|
||||
<delete id="QustnrTmplatManage.deleteQustnrManage">
|
||||
DELETE FROM LETTNQESTNRINFO
|
||||
WHERE QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</delete>
|
||||
|
||||
<delete id="QustnrTmplatManage.deleteQustnrTmplatManage">
|
||||
<![CDATA[
|
||||
DELETE FROM LETTNQUSTNRTMPLAT
|
||||
WHERE QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
<update id="QustnrTmplatManage.updateQustnrTmplatManage">
|
||||
UPDATE LETTNQUSTNRTMPLAT
|
||||
SET
|
||||
<isNotNull property="qestnrTmplatImagepathnm">
|
||||
QUSTNR_TMPLAT_IMAGE_INFO = #qestnrTmplatImagepathnm:BLOB#,
|
||||
</isNotNull>
|
||||
QUSTNR_TMPLAT_TY = #qestnrTmplatTy#,
|
||||
QUSTNR_TMPLAT_DC = #qestnrTmplatCn#,
|
||||
QUSTNR_TMPLAT_PATH_NM = #qestnrTmplatCours#,
|
||||
LAST_UPDT_PNTTM = sysdate(),
|
||||
LAST_UPDUSR_ID = #lastUpdusrId#
|
||||
WHERE QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</update>
|
||||
|
||||
<select id="QustnrTmplatManage.selectQustnrTmplatManageDetail" parameterClass="QustnrTmplatManageVO" resultClass="QustnrTmplatManageVO">
|
||||
SELECT
|
||||
QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
QUSTNR_TMPLAT_TY qestnrTmplatTy,
|
||||
FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
FRST_REGISTER_ID,
|
||||
LAST_UPDT_PNTTM,
|
||||
LAST_UPDUSR_ID,
|
||||
QUSTNR_TMPLAT_IMAGE_INFO qestnrTmplatImagepathnm,
|
||||
QUSTNR_TMPLAT_DC qestnrTmplatCn,
|
||||
QUSTNR_TMPLAT_PATH_NM qestnrTmplatCours
|
||||
FROM LETTNQUSTNRTMPLAT
|
||||
WHERE 1=1
|
||||
AND QUSTNR_TMPLAT_ID = #qestnrTmplatId#
|
||||
</select>
|
||||
|
||||
<select id="QustnrTmplatManage.selectQustnrTmplatManage" parameterClass="comDefaultVO" resultClass="egovMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
A.QUSTNR_TMPLAT_ID qestnrTmplatId,
|
||||
A.QUSTNR_TMPLAT_TY qestnrTmplatTy,
|
||||
A.FRST_REGIST_PNTTM frstRegisterPnttm,
|
||||
(SELECT USER_NM FROM COMVNUSERMASTER WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_NM,
|
||||
A.FRST_REGISTER_ID,
|
||||
A.LAST_UPDT_PNTTM,
|
||||
A.LAST_UPDUSR_ID,
|
||||
A.QUSTNR_TMPLAT_IMAGE_INFO qestnrTmplatImagepathnm,
|
||||
A.QUSTNR_TMPLAT_DC qestnrTmplatCn,
|
||||
A.QUSTNR_TMPLAT_PATH_NM qestnrTmplatCours
|
||||
FROM LETTNQUSTNRTMPLAT A
|
||||
WHERE 1=1
|
||||
]]>
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="">
|
||||
AND ( QUSTNR_TMPLAT_DC LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') OR QUSTNR_TMPLAT_TY LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') )
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="QUSTNR_TMPLAT_DC">
|
||||
AND QUSTNR_TMPLAT_DC LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="QUSTNR_TMPLAT_TY">
|
||||
AND QUSTNR_TMPLAT_TY LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
<![CDATA[
|
||||
ORDER BY A.FRST_REGIST_PNTTM DESC
|
||||
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<select id="QustnrTmplatManage.selectQustnrTmplatManageCnt" parameterClass="comDefaultVO" resultClass="int">
|
||||
SELECT
|
||||
COUNT(*) totcnt
|
||||
FROM LETTNQUSTNRTMPLAT
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isNotEqual property="searchKeyword" compareValue="">
|
||||
<isEqual property="searchCondition" compareValue="">
|
||||
AND ( QUSTNR_TMPLAT_DC LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') OR QUSTNR_TMPLAT_TY LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') )
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="QUSTNR_TMPLAT_DC">
|
||||
AND QUSTNR_TMPLAT_DC LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="QUSTNR_TMPLAT_TY">
|
||||
AND QUSTNR_TMPLAT_TY LIKE CONCAT(CONCAT('%', #searchKeyword#), '%')
|
||||
</isEqual>
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
|
||||
</select>
|
||||
|
||||
<insert id="QustnrTmplatManage.insertQustnrTmplatManage">
|
||||
<![CDATA[
|
||||
|
||||
INSERT INTO LETTNQUSTNRTMPLAT (
|
||||
QUSTNR_TMPLAT_ID
|
||||
,QUSTNR_TMPLAT_TY
|
||||
,QUSTNR_TMPLAT_IMAGE_INFO
|
||||
,QUSTNR_TMPLAT_DC
|
||||
,QUSTNR_TMPLAT_PATH_NM
|
||||
,FRST_REGIST_PNTTM
|
||||
,FRST_REGISTER_ID
|
||||
,LAST_UPDT_PNTTM
|
||||
,LAST_UPDUSR_ID
|
||||
)VALUES(
|
||||
#qestnrTmplatId#
|
||||
,#qestnrTmplatTy#
|
||||
,#qestnrTmplatImagepathnm:BLOB#
|
||||
,#qestnrTmplatCn#
|
||||
,#qestnrTmplatCours#
|
||||
,sysdate()
|
||||
,#frstRegisterId#
|
||||
,sysdate()
|
||||
,#lastUpdusrId#
|
||||
)
|
||||
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
|
||||
</sqlMap>
|
||||
@ -183,89 +183,9 @@ $(document).ready(function(){
|
||||
$(this).val(value);
|
||||
});
|
||||
|
||||
//등급제 적용 테스트
|
||||
getMberGrdChk();
|
||||
});
|
||||
|
||||
|
||||
//등급제 적용 테스트
|
||||
function getMberGrdChk() {
|
||||
$(".grdSetNm").html("");
|
||||
|
||||
var mberId = document.mberManageVO.mberSearchId.value;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/sym/grd/mberGrdChkAjax.do",
|
||||
data: {"mberId" : mberId},
|
||||
dataType:'json',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
if (data.isSuccess) {
|
||||
$(".grdSetNm").html(data.rtnMberGrdVO.grdSetNm);
|
||||
}
|
||||
else {
|
||||
//회원 등급 예외 정보
|
||||
getMberGrdEtc();
|
||||
//alert("Msg : " + data.msg);
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
//alert("ERROR : " + JSON.stringify(e));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//회원 등급 예외 정보
|
||||
function getMberGrdEtc() {
|
||||
$(".grdSetNm").html("");
|
||||
|
||||
var mberId = document.mberManageVO.mberSearchId.value;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/sym/grd/mberGrdEtcChkAjax.do",
|
||||
data: {"mberId" : mberId},
|
||||
dataType:'json',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
if (data.isSuccess) {
|
||||
var gradeNm = "";
|
||||
if (data.isEvent) {
|
||||
gradeNm += "할인이벤트회원";
|
||||
}
|
||||
else {
|
||||
if (data.rtnMberGrdVO.isSalePrice == "Y") {
|
||||
if (gradeNm != "") {
|
||||
gradeNm += ", ";
|
||||
}
|
||||
gradeNm += "단가협의회원";
|
||||
}
|
||||
if (data.rtnMberGrdVO.blineCode != "N") {
|
||||
if (gradeNm != "") {
|
||||
gradeNm += ", ";
|
||||
}
|
||||
gradeNm += "B선회원";
|
||||
}
|
||||
if (data.rtnMberGrdVO.spamYn == "Y") {
|
||||
if (gradeNm != "") {
|
||||
gradeNm += ", ";
|
||||
}
|
||||
gradeNm += "스팸회원";
|
||||
}
|
||||
}
|
||||
|
||||
$(".grdSetNm").html(gradeNm);
|
||||
}
|
||||
else {
|
||||
//alert("Msg : " + data.msg);
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
//alert("ERROR : " + JSON.stringify(e));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function fnCheckAll(){
|
||||
var checkField = document.delayForm.checkDelayField;
|
||||
|
||||
@ -1,358 +0,0 @@
|
||||
<%--
|
||||
Class Name : webTitleList.jsp
|
||||
Description : webTitleList 화면
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2009.02.01 lee.m.j 최초 생성
|
||||
2011.08.31 JJY 경량환경 버전 생성
|
||||
|
||||
author : 공통서비스 개발팀 lee.m.j
|
||||
since : 2009.02.01
|
||||
--%>
|
||||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ page import="itn.com.cmm.LoginVO"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Language" content="ko">
|
||||
<title>등급제 내역</title>
|
||||
<script type="text/javaScript" language="javascript" defer="defer">
|
||||
|
||||
$( document ).ready(function(){
|
||||
// change 함수
|
||||
$("#searchGrdStatus").change(function(e){
|
||||
linkPage(1);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function fn_search(){
|
||||
linkPage(1);
|
||||
}
|
||||
|
||||
function linkPage(pageNo){
|
||||
var listForm = document.listForm;
|
||||
listForm.pageIndex.value = pageNo;
|
||||
listForm.action = "<c:url value='/sym/grd/selectMberGrdList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
function fnSelectMber(mberId) {
|
||||
document.modiForm2.mberId.value = mberId;
|
||||
window.open("about:blank", 'popupSelectMber', 'width=900, height=1800, top=100, left=100, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
|
||||
document.modiForm2.action = "<c:url value='/uss/umt/user/EgovGnrlselectedUserView.do'/>";
|
||||
document.modiForm2.target = "popupSelectMber";
|
||||
document.modiForm2.submit();
|
||||
}
|
||||
|
||||
// 등급제 적용 테스트
|
||||
function getMberGrdChk(mberId) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/sym/grd/mberGrdChkAjax.do",
|
||||
data: {"mberId" : mberId},
|
||||
dataType:'json',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
if (data.isSuccess) {
|
||||
var sHtml = "";
|
||||
sHtml += "단문 : " + data.rtnMberGrdVO.shortPrice;
|
||||
sHtml += ", 장문 : " + data.rtnMberGrdVO.longPrice;
|
||||
sHtml += ", 그림1 : " + data.rtnMberGrdVO.picturePrice;
|
||||
sHtml += ", 그림2 : " + data.rtnMberGrdVO.picture2Price;
|
||||
sHtml += ", 그림3 : " + data.rtnMberGrdVO.picture3Price;
|
||||
|
||||
alert(sHtml);
|
||||
//$("#tr_"+data.rtnMberGrdVO.mberId).attr("title", sHtml);
|
||||
}
|
||||
else {
|
||||
alert("Msg : " + data.msg);
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
alert("ERROR : " + JSON.stringify(e));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 회원 등급제 종료
|
||||
function setMberGrdEndByUser(mberId) {
|
||||
if(confirm("등급제 종료하시겠습니까?")) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/sym/grd/mberGrdEndByUserAjax.do",
|
||||
data: {"mberId" : mberId},
|
||||
dataType:'json',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
if (data.isSuccess) {
|
||||
linkPage(document.listForm.pageIndex.value);
|
||||
}
|
||||
else {
|
||||
alert("Msg : " + data.msg);
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
alert("ERROR : " + JSON.stringify(e));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 회원 등급제 복원
|
||||
function setMberGrdRestoreByUser(mberId, grdDate) {
|
||||
if(confirm("등급제 복원하시겠습니까?\n등급 다시 계산합니다.")) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/sym/grd/mberGrdRestoreByUserAjax.do",
|
||||
data: {"mberId" : mberId, "grdDate" : grdDate},
|
||||
dataType:'json',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
if (data.isSuccess) {
|
||||
linkPage(document.listForm.pageIndex.value);
|
||||
}
|
||||
else {
|
||||
alert("Msg : " + data.msg);
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
alert("ERROR : " + JSON.stringify(e));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//회원 등급제 갱신
|
||||
function setMberGrdUpdateByUser(mberId) {
|
||||
if(confirm("등급제 갱신하시겠습니까?\n등급 다시 계산합니다.")) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/sym/grd/mberGrdUpdateByUserAjax.do",
|
||||
data: {"mberId" : mberId},
|
||||
dataType:'json',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
if (data.isSuccess) {
|
||||
linkPage(document.listForm.pageIndex.value);
|
||||
}
|
||||
else {
|
||||
alert("Msg : " + data.msg);
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
alert("ERROR : " + JSON.stringify(e));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 등급제 추가
|
||||
function setMberGrdSave() {
|
||||
var mberId = $("input[name='mberId']").val();
|
||||
if (mberId == "") {
|
||||
alert("아이디를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(confirm("해당 아이디 등급제 추가하시겠습니까?")) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/sym/grd/mberGrdSaveAjax.do",
|
||||
data: {"mberId" : mberId},
|
||||
dataType:'json',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
if (data.isSuccess) {
|
||||
linkPage(document.listForm.pageIndex.value);
|
||||
}
|
||||
else {
|
||||
alert("Msg : " + data.msg);
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
alert("ERROR : " + JSON.stringify(e));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>자바스크립트를 지원하지 않는 브라우저에서는 일부 기능을 사용하실 수 없습니다.</noscript>
|
||||
<form name="listForm" action="<c:url value='/sym/grd/selectMberGrdList.do'/>" method="post">
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${searchVO.pageIndex}' default='1' />"/>
|
||||
<input type="hidden" name="metaTagNo" >
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${searchVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${searchVO.searchSortOrd}" />" />
|
||||
|
||||
<div class="contWrap">
|
||||
<div class="pageTitle">
|
||||
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
|
||||
<h2 class="titType1 c_222222 fwBold">등급제 내역</h2>
|
||||
<p class="tType6 c_999999"></p>
|
||||
</div>
|
||||
<div class="pageCont">
|
||||
<div class="listSerch">
|
||||
|
||||
<select id="searchGrdStatus" name="searchGrdStatus" title="상태">
|
||||
<option value="" <c:if test="${empty searchVO.searchGrdStatus }">selected="selected"</c:if> >상태</option>
|
||||
<option value="Y" <c:if test="${searchVO.searchGrdStatus == 'Y'}">selected="selected"</c:if> >진행</option>
|
||||
<option value="N" <c:if test="${searchVO.searchGrdStatus == 'N'}">selected="selected"</c:if> >대기</option>
|
||||
<option value="E" <c:if test="${searchVO.searchGrdStatus == 'E'}">selected="selected"</c:if> >종료</option>
|
||||
</select>
|
||||
|
||||
<select id="searchCondition" name="searchCondition">
|
||||
<option value="" <c:if test="${empty searchVO.searchCondition}">selected="selected"</c:if>>전체</option>
|
||||
<option value="1" <c:if test="${searchVO.searchCondition == '1'}">selected="selected"</c:if>>아이디</option>
|
||||
</select>
|
||||
|
||||
<input id="searchKeyword" name="searchKeyword" class="recentSearch" type="text" value="<c:out value='${searchVO.searchKeyword}'/>" size="25" title="검색" maxlength="100" />
|
||||
<input type="button" class="btnType1" value="검색" onclick="fn_search(); return false;">
|
||||
</div>
|
||||
<div class="listTop">
|
||||
<p class="tType5">
|
||||
총 <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${paginationInfo.totalRecordCount}" pattern="#,###" /></span>건
|
||||
* 누적결제액은 할인이벤트 결제금액, 환불금액을 제외한 합계금액입니다.
|
||||
</p>
|
||||
<div class="rightWrap">
|
||||
<!-- <input type="button" class="printBtn" > -->
|
||||
<select name="pageUnit" id="pageUnit" class="select" title="검색조건선택" onchange="linkPage(1);">
|
||||
<option value='10' <c:if test="${searchVO.pageUnit == '10' or searchVO.pageUnit == ''}">selected</c:if>>10줄</option>
|
||||
<option value='20' <c:if test="${searchVO.pageUnit == '20'}">selected</c:if>>20줄</option>
|
||||
<option value='30' <c:if test="${searchVO.pageUnit == '30'}">selected</c:if>>30줄</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tableWrap">
|
||||
<table class="tbType1">
|
||||
<colgroup>
|
||||
<col style="width: 5%">
|
||||
<col style="width: auto;">
|
||||
<col style="width: 10%;">
|
||||
<col style="width: 7%;">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 9%">
|
||||
<col style="width: 8%">
|
||||
<col style="width: 8%">
|
||||
<col style="width: 12%">
|
||||
<col style="width: 12%">
|
||||
<col style="width: 5%">
|
||||
<col style="width: 5%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>아이디<input type="button" class="sortBtn sort" id="sort_mberId"></th>
|
||||
<th>이름<input type="button" class="sortBtn sort" id="sort_mberNm"></th>
|
||||
<th>등급<input type="button" class="sortBtn sort" id="sort_grdSetNo"></th>
|
||||
<th>누적결제액<input type="button" class="sortBtn sort" id="sort_totAmt"></th>
|
||||
<th>등급제 시행일<input type="button" class="sortBtn sort" id="sort_grdDate"></th>
|
||||
<th>시작일<input type="button" class="sortBtn sort" id="sort_grdStartDate"></th>
|
||||
<th>종료일 <input type="button" class="sortBtn sort" id="sort_grdEndDate"></th>
|
||||
<th>등록일 <input type="button" class="sortBtn sort" id="sort_regDate"></th>
|
||||
<th>수정일 <input type="button" class="sortBtn sort" id="sort_editDate"></th>
|
||||
<th>상태<input type="button" class="sortBtn sort" id="sort_grdStatusNm"></th>
|
||||
<th>관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="result" items="${resultList}" varStatus="status">
|
||||
<tr id="tr_${result.mberId}">
|
||||
<td>
|
||||
<c:if test="${searchVO.searchSortOrd eq 'desc' }">
|
||||
<c:out value="${ ( paginationInfo.totalRecordCount - ((paginationInfo.currentPageNo -1)*paginationInfo.recordCountPerPage) ) - status.index }"/>
|
||||
</c:if>
|
||||
<c:if test="${searchVO.searchSortOrd eq 'asc' }">
|
||||
<c:out value="${(paginationInfo.currentPageNo - 1) * paginationInfo.recordCountPerPage + status.count}"/>
|
||||
</c:if>
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<a href="#" onclick="javascript:fnSelectMber('<c:out value="${result.mberId}"/>'); return false;">
|
||||
<c:out value="${result.mberId}"/>
|
||||
</a>
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<c:out value="${result.mberNm}"/>
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<c:out value="${result.grdSetNm}"/>(<c:out value="${result.grdSetNo}"/>)
|
||||
</td>
|
||||
<td nowrap="nowrap" class="right">
|
||||
<fmt:formatNumber value="${result.totAmt}" pattern="#,###" />
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<c:out value="${result.grdDate}"/>
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<c:out value="${result.grdStartDate}"/>
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<c:out value="${result.grdEndDate}"/>
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<c:out value="${result.regDate}"/>
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<c:out value="${result.editDate}"/>
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<c:out value="${result.grdStatusNm}"/>
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<c:choose>
|
||||
<c:when test="${result.grdStatusNm eq '종료'}">
|
||||
<input type="button" class="btnType1" onclick="setMberGrdRestoreByUser('${result.mberId}','${result.grdDate}')" value="복원">
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="button" class="btnType2" onclick="setMberGrdUpdateByUser('${result.mberId}')" value="갱신">
|
||||
<%--
|
||||
<input type="button" class="btnType1" onclick="setMberGrdEndByUser('${result.mberId}')" value="종료">
|
||||
--%>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
<c:if test="${empty resultList}">
|
||||
<tr><td colspan="12"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</table>
|
||||
</div>
|
||||
<div class="btnWrap">
|
||||
<input type="text" name="mberId" value="" style="height: 50px; width: 120px;" placeholder="아이디" />
|
||||
<input type="button" class="btnType2" value="등급 등록(테스트용)" onclick="javascript:setMberGrdSave(); return false;">
|
||||
</div>
|
||||
|
||||
<c:if test="${!empty resultList}">
|
||||
<div class="page">
|
||||
<ul class="inline">
|
||||
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
|
||||
</ul>
|
||||
</div>
|
||||
</c:if>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form name="modiForm2" id="modiForm2" method="post">
|
||||
<input name="mberId" type="hidden" />
|
||||
</form>
|
||||
|
||||
<form name="searchForm" method="get" action="<c:url value='/sym/grd/selectMberGrdList.do'/>">
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${searchVO.pageIndex}' default='1' />"/>
|
||||
<input name="searchCondition" type="hidden" />
|
||||
<input name="searchKeyword" type="hidden" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user