From bba76affe84399461f99e32a528917e71f58fb15 Mon Sep 17 00:00:00 2001 From: ijunho Date: Mon, 26 May 2025 17:54:20 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8D=EB=8F=84=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cmm/web/EgovImageProcessController.java | 76 +++++ .../let/mjo/msg/service/MjonMsgService.java | 2 + .../let/mjo/msg/service/impl/MjonMsgDAO.java | 5 + .../msg/service/impl/MjonMsgServiceImpl.java | 5 + .../let/mjo/msg/web/MjonMsgController.java | 2 +- .../gmt/service/EgovGroupManageService.java | 70 ----- .../itn/let/sec/gmt/service/GroupManage.java | 119 -------- .../let/sec/gmt/service/GroupManageVO.java | 72 ----- .../impl/EgovGroupManageServiceImpl.java | 98 ------ .../sec/gmt/service/impl/GroupManageDAO.java | 89 ------ .../gmt/web/EgovGroupManageController.java | 259 ---------------- .../ram/web/EgovAuthorManageController.java | 5 - .../sec/ram/web/EgovAuthorRoleController.java | 5 - .../mysql/sql-map-config-mysql-sec-gmt.xml | 6 - .../sqlmap/let/msg/MjonMsgData_SQL_mysql.xml | 280 ++++++++++++++++++ .../let/sec/gmt/EgovGroupManage_SQL_Mysql.xml | 78 ----- 16 files changed, 369 insertions(+), 802 deletions(-) delete mode 100644 src/main/java/itn/let/sec/gmt/service/EgovGroupManageService.java delete mode 100644 src/main/java/itn/let/sec/gmt/service/GroupManage.java delete mode 100644 src/main/java/itn/let/sec/gmt/service/GroupManageVO.java delete mode 100644 src/main/java/itn/let/sec/gmt/service/impl/EgovGroupManageServiceImpl.java delete mode 100644 src/main/java/itn/let/sec/gmt/service/impl/GroupManageDAO.java delete mode 100644 src/main/java/itn/let/sec/gmt/web/EgovGroupManageController.java delete mode 100644 src/main/resources/egovframework/sqlmap/config/mysql/sql-map-config-mysql-sec-gmt.xml delete mode 100644 src/main/resources/egovframework/sqlmap/let/sec/gmt/EgovGroupManage_SQL_Mysql.xml diff --git a/src/main/java/itn/com/cmm/web/EgovImageProcessController.java b/src/main/java/itn/com/cmm/web/EgovImageProcessController.java index 2f5bdc5..442a19c 100644 --- a/src/main/java/itn/com/cmm/web/EgovImageProcessController.java +++ b/src/main/java/itn/com/cmm/web/EgovImageProcessController.java @@ -265,4 +265,80 @@ public class EgovImageProcessController extends HttpServlet { } } } + + @SuppressWarnings("resource") + @RequestMapping("/cmm/fms/getImage_advc.do") + public void getImage_advc(SessionVO sessionVO, ModelMap model, @RequestParam Map commandMap, HttpServletResponse response) throws Exception { + + String filePath = (String) commandMap.get("filePath"); + + //파일 확장자명 + String fileExtsn = ""; + int lastDot = filePath.lastIndexOf('.'); + if (lastDot != -1 && lastDot < filePath.length() - 1) { + fileExtsn = filePath.substring(lastDot + 1); + } + + File file = new File(filePath); + + FileInputStream fis = null; + try { + new FileInputStream(file); + }catch(Exception e) {} + + BufferedInputStream in = null; + ByteArrayOutputStream bStream = null; + try { + fis = new FileInputStream(file); + in = new BufferedInputStream(fis); + bStream = new ByteArrayOutputStream(); + int imgByte; + + byte[] outputByte=new byte[104096]; + while ((imgByte =in.read(outputByte, 0, 4096 )) > 0 ) { + bStream.write(outputByte,0,imgByte); + } + String type = ""; + if (fileExtsn != null && !"".equals(fileExtsn)) { + if ("jpg".equals(fileExtsn.toLowerCase())) { + type = "image/jpeg"; + } else { + type = "image/" + fileExtsn.toLowerCase(); + } + } else { + LOGGER.debug("Image fileType is null."); + } + + response.setHeader("Content-Type", type); + response.setContentLength(bStream.size()); + bStream.writeTo(response.getOutputStream()); + response.getOutputStream().flush(); + response.getOutputStream().close(); + + } catch (Exception e) { + LOGGER.debug("{}", e); + } finally { + if (bStream != null) { + try { + bStream.close(); + } catch (Exception est) { + LOGGER.debug("IGNORED: {}", est.getMessage()); + } + } + if (in != null) { + try { + in.close(); + } catch (Exception ei) { + LOGGER.debug("IGNORED: {}", ei.getMessage()); + } + } + if (fis != null) { + try { + fis.close(); + } catch (Exception efis) { + LOGGER.debug("IGNORED: {}", efis.getMessage()); + } + } + } + } } diff --git a/src/main/java/itn/let/mjo/msg/service/MjonMsgService.java b/src/main/java/itn/let/mjo/msg/service/MjonMsgService.java index b2b5ddb..193a5c4 100644 --- a/src/main/java/itn/let/mjo/msg/service/MjonMsgService.java +++ b/src/main/java/itn/let/mjo/msg/service/MjonMsgService.java @@ -5,6 +5,7 @@ import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import itn.let.mjo.msgsent.service.MjonMsgSentVO; import itn.let.mjo.reservmsg.service.MjonResvMsgVO; public interface MjonMsgService { @@ -243,4 +244,5 @@ public interface MjonMsgService { //관리자 문자/알림톡 전송 결과 코드 엑셀다운로드 void getMsgResultCodeExcelDownload(String menuType, String[][] msgResultCodeExcelValue, MjonMsgResultCodeVO mjonMsgResultCodeVO, HttpServletRequest request, HttpServletResponse response); + List selectMjonMsgGroupCompleteList_advc(MjonMsgVO searchVO) throws Exception; } diff --git a/src/main/java/itn/let/mjo/msg/service/impl/MjonMsgDAO.java b/src/main/java/itn/let/mjo/msg/service/impl/MjonMsgDAO.java index 5108b0a..26f3537 100644 --- a/src/main/java/itn/let/mjo/msg/service/impl/MjonMsgDAO.java +++ b/src/main/java/itn/let/mjo/msg/service/impl/MjonMsgDAO.java @@ -522,4 +522,9 @@ public class MjonMsgDAO extends EgovAbstractDAO { update("mjonMsgDAO.updateHoliMsgResultYn", mjonMsgVO); } + @SuppressWarnings("unchecked") + public List selectMjonMsgGroupCompleteList_advc(MjonMsgVO mjonMsgVO) throws Exception{ + return (List)list("mjonMsgDAO.selectMjonMsgGroupCompleteList_advc", mjonMsgVO); + } + } diff --git a/src/main/java/itn/let/mjo/msg/service/impl/MjonMsgServiceImpl.java b/src/main/java/itn/let/mjo/msg/service/impl/MjonMsgServiceImpl.java index b8f417b..c70beb9 100644 --- a/src/main/java/itn/let/mjo/msg/service/impl/MjonMsgServiceImpl.java +++ b/src/main/java/itn/let/mjo/msg/service/impl/MjonMsgServiceImpl.java @@ -1283,4 +1283,9 @@ public class MjonMsgServiceImpl extends EgovAbstractServiceImpl implements MjonM } + @Override + public List selectMjonMsgGroupCompleteList_advc(MjonMsgVO mjonMsgVO) throws Exception { + return mjonMsgDAO.selectMjonMsgGroupCompleteList_advc(mjonMsgVO); + } + } diff --git a/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java b/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java index a222cd5..e9e74fd 100644 --- a/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java +++ b/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java @@ -199,7 +199,7 @@ public class MjonMsgController { } // 문자발송 완료건은 모두 보이도록 처리 - resultList = mjonMsgService.selectMjonMsgGroupCompleteList(searchVO); + resultList = mjonMsgService.selectMjonMsgGroupCompleteList_advc(searchVO); model.addAttribute("resultList", resultList); diff --git a/src/main/java/itn/let/sec/gmt/service/EgovGroupManageService.java b/src/main/java/itn/let/sec/gmt/service/EgovGroupManageService.java deleted file mode 100644 index 38a4f2c..0000000 --- a/src/main/java/itn/let/sec/gmt/service/EgovGroupManageService.java +++ /dev/null @@ -1,70 +0,0 @@ -package itn.let.sec.gmt.service; - -import java.util.List; - -/** - * 그룹관리에 관한 서비스 인터페이스 클래스를 정의한다. - * @author 공통서비스 개발팀 이문준 - * @since 2009.06.01 - * @version 1.0 - * @see - * - *
- * << 개정이력(Modification Information) >>
- *   
- *   수정일      수정자           수정내용
- *  -------    --------    ---------------------------
- *   2009.03.20  이문준          최초 생성
- *   2011.08.31  JJY            경량환경 템플릿 커스터마이징버전 생성 
- *
- * 
- */ - -public interface EgovGroupManageService { - - /** - * 검색조건에 따른 그룹정보를 조회 - * @param groupManageVO GroupManageVO - * @return GroupManageVO - * @exception Exception - */ - public GroupManageVO selectGroup(GroupManageVO groupManageVO) throws Exception; - - /** - * 시스템사용 목적별 그룹 목록 조회 - * @param groupManageVO GroupManageVO - * @return List - * @exception Exception - */ - public List selectGroupList(GroupManageVO groupManageVO) throws Exception; - - /** - * 그룹 기본정보를 화면에서 입력하여 항목의 정합성을 체크하고 데이터베이스에 저장 - * @param groupManage GroupManage - * @param groupManageVO GroupManageVO - * @return GroupManageVO - * @exception Exception - */ - public GroupManageVO insertGroup(GroupManage groupManage, GroupManageVO groupManageVO) throws Exception; - /** - * 화면에 조회된 그룹의 기본정보를 수정하여 항목의 정합성을 체크하고 수정된 데이터를 데이터베이스에 반영 - * @param groupManage GroupManage - * @exception Exception - */ - public void updateGroup(GroupManage groupManage) throws Exception; - - /** - * 불필요한 그룹정보를 화면에 조회하여 데이터베이스에서 삭제 - * @param groupManage GroupManage - * @exception Exception - */ - public void deleteGroup(GroupManage groupManage) throws Exception; - - /** - * 목록조회 카운트를 반환한다 - * @param groupManageVO GroupManageVO - * @return int - * @exception Exception - */ - public int selectGroupListTotCnt(GroupManageVO groupManageVO) throws Exception; -} \ No newline at end of file diff --git a/src/main/java/itn/let/sec/gmt/service/GroupManage.java b/src/main/java/itn/let/sec/gmt/service/GroupManage.java deleted file mode 100644 index b90e202..0000000 --- a/src/main/java/itn/let/sec/gmt/service/GroupManage.java +++ /dev/null @@ -1,119 +0,0 @@ -package itn.let.sec.gmt.service; - -import itn.com.cmm.ComDefaultVO; - -/** - * 그룹관리에 대한 model 클래스를 정의한다. - * @author 공통서비스 개발팀 이문준 - * @since 2009.06.01 - * @version 1.0 - * @see - * - *
- * << 개정이력(Modification Information) >>
- *   
- *   수정일      수정자           수정내용
- *  -------    --------    ---------------------------
- *   2009.03.20  이문준          최초 생성
- *   2011.08.31  JJY            경량환경 템플릿 커스터마이징버전 생성 
- *
- * 
- */ - -public class GroupManage extends ComDefaultVO { - /** - * serialVersionUID - */ - private static final long serialVersionUID = 1L; - /** - * 그룹 관리 - */ - private GroupManage groupManage; - /** - * 그룹 ID - */ - private String groupId; - /** - * 그룹명 - */ - private String groupNm; - /** - * 그룹등록일시 - */ - private String groupCreatDe; - /** - * 그룹설명 - */ - private String groupDc; - - /** - * groupManage attribute 를 리턴한다. - * @return GroupManage - */ - public GroupManage getGroupManage() { - return groupManage; - } - /** - * groupManage attribute 값을 설정한다. - * @param groupManage GroupManage - */ - public void setGroupManage(GroupManage groupManage) { - this.groupManage = groupManage; - } - /** - * groupId attribute 를 리턴한다. - * @return String - */ - public String getGroupId() { - return groupId; - } - /** - * groupId attribute 값을 설정한다. - * @param groupId String - */ - public void setGroupId(String groupId) { - this.groupId = groupId; - } - /** - * groupNm attribute 를 리턴한다. - * @return String - */ - public String getGroupNm() { - return groupNm; - } - /** - * groupNm attribute 값을 설정한다. - * @param groupNm String - */ - public void setGroupNm(String groupNm) { - this.groupNm = groupNm; - } - /** - * groupCreatDe attribute 를 리턴한다. - * @return String - */ - public String getGroupCreatDe() { - return groupCreatDe; - } - /** - * groupCreatDe attribute 값을 설정한다. - * @param groupCreatDe String - */ - public void setGroupCreatDe(String groupCreatDe) { - this.groupCreatDe = groupCreatDe; - } - /** - * groupDc attribute 를 리턴한다. - * @return String - */ - public String getGroupDc() { - return groupDc; - } - /** - * groupDc attribute 값을 설정한다. - * @param groupDc String - */ - public void setGroupDc(String groupDc) { - this.groupDc = groupDc; - } -} \ No newline at end of file diff --git a/src/main/java/itn/let/sec/gmt/service/GroupManageVO.java b/src/main/java/itn/let/sec/gmt/service/GroupManageVO.java deleted file mode 100644 index 3c2d3e1..0000000 --- a/src/main/java/itn/let/sec/gmt/service/GroupManageVO.java +++ /dev/null @@ -1,72 +0,0 @@ -package itn.let.sec.gmt.service; - -import java.util.List; - - - -/** - * 그룹관리에 대한 Vo 클래스를 정의한다. - * @author 공통서비스 개발팀 이문준 - * @since 2009.06.01 - * @version 1.0 - * @see - * - *
- * << 개정이력(Modification Information) >>
- *   
- *   수정일      수정자           수정내용
- *  -------    --------    ---------------------------
- *   2009.03.20  이문준          최초 생성
- *   2011.08.31  JJY            경량환경 템플릿 커스터마이징버전 생성 
- *
- * 
- */ - -public class GroupManageVO extends GroupManage { - - /** - * serialVersionUID - */ - private static final long serialVersionUID = 1L; - /** - * 그룹 목록 - */ - List groupManageList; - /** - * 삭제대상 목록 - */ - String[] delYn; - - /** - * groupManageList attribute 를 리턴한다. - * @return List - */ - public List getGroupManageList() { - return groupManageList; - } - - /** - * groupManageList attribute 값을 설정한다. - * @param groupManageList List - */ - public void setGroupManageList(List groupManageList) { - this.groupManageList = groupManageList; - } - - /** - * delYn attribute 를 리턴한다. - * @return String[] - */ - public String[] getDelYn() { - return delYn; - } - - /** - * delYn attribute 값을 설정한다. - * @param delYn String[] - */ - public void setDelYn(String[] delYn) { - this.delYn = delYn; - } - -} \ No newline at end of file diff --git a/src/main/java/itn/let/sec/gmt/service/impl/EgovGroupManageServiceImpl.java b/src/main/java/itn/let/sec/gmt/service/impl/EgovGroupManageServiceImpl.java deleted file mode 100644 index a55a211..0000000 --- a/src/main/java/itn/let/sec/gmt/service/impl/EgovGroupManageServiceImpl.java +++ /dev/null @@ -1,98 +0,0 @@ -package itn.let.sec.gmt.service.impl; - -import java.util.List; - -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; -import itn.let.sec.gmt.service.EgovGroupManageService; -import itn.let.sec.gmt.service.GroupManage; -import itn.let.sec.gmt.service.GroupManageVO; - -import javax.annotation.Resource; - -import org.springframework.stereotype.Service; - -/** - * 그룹관리에 관한 ServiceImpl 클래스를 정의한다. - * @author 공통서비스 개발팀 이문준 - * @since 2009.06.01 - * @version 1.0 - * @see - * - *
- * << 개정이력(Modification Information) >>
- *   
- *   수정일      수정자           수정내용
- *  -------    --------    ---------------------------
- *   2009.03.11  이문준          최초 생성
- *   2011.08.31  JJY            경량환경 템플릿 커스터마이징버전 생성 
- *
- * 
- */ - -@Service("egovGroupManageService") -public class EgovGroupManageServiceImpl extends EgovAbstractServiceImpl implements EgovGroupManageService { - - @Resource(name="groupManageDAO") - private GroupManageDAO groupManageDAO; - - /** - * 시스템사용 목적별 그룹 목록 조회 - * @param groupManageVO GroupManageVO - * @return List - * @exception Exception - */ - public List selectGroupList(GroupManageVO groupManageVO) throws Exception { - return groupManageDAO.selectGroupList(groupManageVO); - } - - /** - * 검색조건에 따른 그룹정보를 조회 - * @param groupManageVO GroupManageVO - * @return GroupManageVO - * @exception Exception - */ - public GroupManageVO selectGroup(GroupManageVO groupManageVO) throws Exception { - return groupManageDAO.selectGroup(groupManageVO); - } - - /** - * 그룹 기본정보를 화면에서 입력하여 항목의 정합성을 체크하고 데이터베이스에 저장 - * @param groupManage GroupManage - * @param groupManageVO GroupManageVO - * @return GroupManageVO - * @exception Exception - */ - public GroupManageVO insertGroup(GroupManage groupManage, GroupManageVO groupManageVO) throws Exception { - groupManageDAO.insertGroup(groupManage); - groupManageVO.setGroupId(groupManage.getGroupId()); - return groupManageDAO.selectGroup(groupManageVO); - } - - /** - * 화면에 조회된 그룹의 기본정보를 수정하여 항목의 정합성을 체크하고 수정된 데이터를 데이터베이스에 반영 - * @param groupManage GroupManage - * @exception Exception - */ - public void updateGroup(GroupManage groupManage) throws Exception { - groupManageDAO.updateGroup(groupManage); - } - - /** - * 불필요한 그룹정보를 화면에 조회하여 데이터베이스에서 삭제 - * @param groupManage GroupManage - * @exception Exception - */ - public void deleteGroup(GroupManage groupManage) throws Exception { - groupManageDAO.deleteGroup(groupManage); - } - - /** - * 목록조회 카운트를 반환한다 - * @param groupManageVO GroupManageVO - * @return int - * @exception Exception - */ - public int selectGroupListTotCnt(GroupManageVO groupManageVO) throws Exception { - return groupManageDAO.selectGroupListTotCnt(groupManageVO); - } -} \ No newline at end of file diff --git a/src/main/java/itn/let/sec/gmt/service/impl/GroupManageDAO.java b/src/main/java/itn/let/sec/gmt/service/impl/GroupManageDAO.java deleted file mode 100644 index 758e174..0000000 --- a/src/main/java/itn/let/sec/gmt/service/impl/GroupManageDAO.java +++ /dev/null @@ -1,89 +0,0 @@ -package itn.let.sec.gmt.service.impl; - -import java.util.List; - -import egovframework.rte.psl.dataaccess.EgovAbstractDAO; -import itn.let.sec.gmt.service.GroupManage; -import itn.let.sec.gmt.service.GroupManageVO; - -import org.springframework.stereotype.Repository; - -/** - * 그룹관리에 대한 DAO 클래스를 정의한다. - * @author 공통서비스 개발팀 이문준 - * @since 2009.06.01 - * @version 1.0 - * @see - * - *
- * << 개정이력(Modification Information) >>
- *
- *   수정일      수정자           수정내용
- *  -------    --------    ---------------------------
- *   2009.03.11  이문준          최초 생성
- *   2011.08.31  JJY            경량환경 템플릿 커스터마이징버전 생성
- *
- * 
- */ - -@Repository("groupManageDAO") -public class GroupManageDAO extends EgovAbstractDAO { - - /** - * 검색조건에 따른 그룹정보를 조회 - * @param groupManageVO GroupManageVO - * @return GroupManageVO - * @exception Exception - */ - public GroupManageVO selectGroup(GroupManageVO groupManageVO) throws Exception { - return (GroupManageVO) select("groupManageDAO.selectGroup", groupManageVO); - } - - /** - * 시스템사용 목적별 그룹 목록 조회 - * @param groupManageVO GroupManageVO - * @return GroupManageVO - * @exception Exception - */ - @SuppressWarnings("unchecked") - public List selectGroupList(GroupManageVO groupManageVO) throws Exception { - return (List) list("groupManageDAO.selectGroupList", groupManageVO); - } - - /** - * 그룹 기본정보를 화면에서 입력하여 항목의 정합성을 체크하고 데이터베이스에 저장 - * @param groupManage GroupManage - * @exception Exception - */ - public void insertGroup(GroupManage groupManage) throws Exception { - insert("groupManageDAO.insertGroup", groupManage); - } - - /** - * 화면에 조회된 그룹의 기본정보를 수정하여 항목의 정합성을 체크하고 수정된 데이터를 데이터베이스에 반영 - * @param groupManage GroupManage - * @exception Exception - */ - public void updateGroup(GroupManage groupManage) throws Exception { - update("groupManageDAO.updateGroup", groupManage); - } - - /** - * 불필요한 그룹정보를 화면에 조회하여 데이터베이스에서 삭제 - * @param groupManage GroupManage - * @exception Exception - */ - public void deleteGroup(GroupManage groupManage) throws Exception { - delete("groupManageDAO.deleteGroup", groupManage); - } - - /** - * 롤목록 총 갯수를 조회한다. - * @param groupManageVO GroupManageVO - * @return int - * @exception Exception - */ - public int selectGroupListTotCnt(GroupManageVO groupManageVO) throws Exception { - return (Integer)select("groupManageDAO.selectGroupListTotCnt", groupManageVO); - } -} \ No newline at end of file diff --git a/src/main/java/itn/let/sec/gmt/web/EgovGroupManageController.java b/src/main/java/itn/let/sec/gmt/web/EgovGroupManageController.java deleted file mode 100644 index 3c777bd..0000000 --- a/src/main/java/itn/let/sec/gmt/web/EgovGroupManageController.java +++ /dev/null @@ -1,259 +0,0 @@ -package itn.let.sec.gmt.web; - -import egovframework.rte.fdl.idgnr.EgovIdGnrService; -import egovframework.rte.fdl.property.EgovPropertyService; -import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; -import itn.com.cmm.EgovMessageSource; -import itn.let.sec.gmt.service.EgovGroupManageService; -import itn.let.sec.gmt.service.GroupManage; -import itn.let.sec.gmt.service.GroupManageVO; - -import javax.annotation.Resource; - -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.bind.support.SessionStatus; -import org.springmodules.validation.commons.DefaultBeanValidator; - -/** - * 그룹관리에 관한 controller 클래스를 정의한다. - * @author 공통서비스 개발팀 이문준 - * @since 2009.06.01 - * @version 1.0 - * @see - * - *
- * << 개정이력(Modification Information) >>
- *   
- *   수정일      수정자           수정내용
- *  -------    --------    ---------------------------
- *   2009.03.11  이문준          최초 생성
- *   2011.08.31  JJY            경량환경 템플릿 커스터마이징버전 생성 
- *
- * 
- */ - -@Controller -public class EgovGroupManageController { - - @Resource(name="egovMessageSource") - EgovMessageSource egovMessageSource; - - @Resource(name = "egovGroupManageService") - private EgovGroupManageService egovGroupManageService; - - /** EgovPropertyService */ - @Resource(name = "propertiesService") - protected EgovPropertyService propertiesService; - - /** Message ID Generation */ - @Resource(name="egovGroupIdGnrService") - private EgovIdGnrService egovGroupIdGnrService; - - @Autowired - private DefaultBeanValidator beanValidator; - - /** - * 그룹 목록화면 이동 - * @return String - * @exception Exception - */ - @RequestMapping("/sec/gmt/EgovGroupListView.do") - public String selectGroupListView() - throws Exception { - return "/sec/gmt/EgovGroupManage"; - } - - /** - * 시스템사용 목적별 그룹 목록 조회 - * @param groupManageVO GroupManageVO - * @return String - * @exception Exception - */ - @RequestMapping(value="/sec/gmt/EgovGroupList.do") - public String selectGroupList(@ModelAttribute("groupManageVO") GroupManageVO groupManageVO, - ModelMap model) throws Exception { - /** paging */ - PaginationInfo paginationInfo = new PaginationInfo(); - paginationInfo.setCurrentPageNo(groupManageVO.getPageIndex()); - paginationInfo.setRecordCountPerPage(groupManageVO.getPageUnit()); - paginationInfo.setPageSize(groupManageVO.getPageSize()); - - groupManageVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); - groupManageVO.setLastIndex(paginationInfo.getLastRecordIndex()); - groupManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); - - groupManageVO.setGroupManageList(egovGroupManageService.selectGroupList(groupManageVO)); - model.addAttribute("groupList", groupManageVO.getGroupManageList()); - - int totCnt = egovGroupManageService.selectGroupListTotCnt(groupManageVO); - paginationInfo.setTotalRecordCount(totCnt); - model.addAttribute("paginationInfo", paginationInfo); - model.addAttribute("message", egovMessageSource.getMessage("success.common.select")); - - return "/sec/gmt/EgovGroupManage"; - } - - /** - * 검색조건에 따른 그룹정보를 조회 - * @param groupManageVO GroupManageVO - * @return String - * @exception Exception - */ - @RequestMapping(value="/sec/gmt/EgovGroup.do") - public String selectGroup(@ModelAttribute("groupManageVO") GroupManageVO groupManageVO, - ModelMap model) throws Exception { - - model.addAttribute("groupManage", egovGroupManageService.selectGroup(groupManageVO)); - return "/sec/gmt/EgovGroupUpdate"; - } - - /** - * 그룹 등록화면 이동 - * @return String - * @exception Exception - */ - @RequestMapping(value="/sec/gmt/EgovGroupInsertView.do") - public String insertGroupView() - throws Exception { - return "/sec/gmt/EgovGroupInsert"; - } - - /** - * 그룹 기본정보를 화면에서 입력하여 항목의 정합성을 체크하고 데이터베이스에 저장 - * @param groupManage GroupManage - * @param groupManageVO GroupManageVO - * @return String - * @exception Exception - */ - @RequestMapping(value="/sec/gmt/EgovGroupInsert.do") - public String insertGroup(@ModelAttribute("groupManage") GroupManage groupManage, - @ModelAttribute("groupManageVO") GroupManageVO groupManageVO, - BindingResult bindingResult, - SessionStatus status, - ModelMap model) throws Exception { - - beanValidator.validate(groupManage, bindingResult); //validation 수행 - - if (bindingResult.hasErrors()) { - return "/sec/gmt/EgovGroupInsert"; - } else { - groupManage.setGroupId(egovGroupIdGnrService.getNextStringId()); - groupManageVO.setGroupId(groupManage.getGroupId()); - - status.setComplete(); - model.addAttribute("message", egovMessageSource.getMessage("success.common.insert")); - model.addAttribute("groupManage", egovGroupManageService.insertGroup(groupManage, groupManageVO)); - return "/sec/gmt/EgovGroupUpdate"; - } - } - - /** - * 화면에 조회된 그룹의 기본정보를 수정하여 항목의 정합성을 체크하고 수정된 데이터를 데이터베이스에 반영 - * @param groupManage GroupManage - * @return String - * @exception Exception - */ - @RequestMapping(value="/sec/gmt/EgovGroupUpdate.do") - public String updateGroup(@ModelAttribute("groupManage") GroupManage groupManage, - BindingResult bindingResult, - SessionStatus status, - Model model) throws Exception { - - beanValidator.validate(groupManage, bindingResult); //validation 수행 - - if (bindingResult.hasErrors()) { - return "/sec/gmt/EgovGroupUpdate"; - } else { - egovGroupManageService.updateGroup(groupManage); - status.setComplete(); - model.addAttribute("message", egovMessageSource.getMessage("success.common.update")); - return "forward:/sec/gmt/EgovGroup.do"; - } - } - - /** - * 불필요한 그룹정보를 화면에 조회하여 데이터베이스에서 삭제 - * @param groupManage GroupManage - * @return String - * @exception Exception - */ - @RequestMapping(value="/sec/gmt/EgovGroupDelete.do") - public String deleteGroup(@ModelAttribute("groupManage") GroupManage groupManage, - SessionStatus status, - Model model) throws Exception { - egovGroupManageService.deleteGroup(groupManage); - status.setComplete(); - model.addAttribute("message", egovMessageSource.getMessage("success.common.delete")); - return "forward:/sec/gmt/EgovGroupList.do"; - } - - /** - * 불필요한 그룹정보 목록을 화면에 조회하여 데이터베이스에서 삭제 - * @param groupIds String - * @param groupManage GroupManage - * @return String - * @exception Exception - */ - @RequestMapping(value="/sec/gmt/EgovGroupListDelete.do") - public String deleteGroupList(@RequestParam("groupIds") String groupIds, - @ModelAttribute("groupManage") GroupManage groupManage, - SessionStatus status, - Model model) throws Exception { - String [] strGroupIds = groupIds.split(";"); - for(int i=0; i - - - - diff --git a/src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml b/src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml index e924647..895f703 100644 --- a/src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml +++ b/src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml @@ -8244,5 +8244,285 @@ + + + diff --git a/src/main/resources/egovframework/sqlmap/let/sec/gmt/EgovGroupManage_SQL_Mysql.xml b/src/main/resources/egovframework/sqlmap/let/sec/gmt/EgovGroupManage_SQL_Mysql.xml deleted file mode 100644 index 2fd5c6d..0000000 --- a/src/main/resources/egovframework/sqlmap/let/sec/gmt/EgovGroupManage_SQL_Mysql.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -