--- base/src/main/java/egovframework/com/cop/bbs/service/EgovBBSAttributeManageService.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/BBSAttributeManageService.java
... | ... | @@ -1,37 +1,37 @@ |
| 1 |
-package egovframework.com.cop.bbs.service; |
|
| 2 |
- |
|
| 3 |
-import java.util.List; |
|
| 4 |
-import java.util.Map; |
|
| 5 |
- |
|
| 6 |
- |
|
| 7 |
-//게시판 속성관리를 위한 서비스 인터페이스 클래스 |
|
| 8 |
-public interface EgovBBSAttributeManageService {
|
|
| 9 |
- |
|
| 10 |
- //등록된 게시판 속성정보를 삭제한다. |
|
| 11 |
- public void deleteBBSMasterInf(BoardMasterVO boardMaster) throws Exception; |
|
| 12 |
- |
|
| 13 |
- //신규 게시판 속성정보를 생성한다. |
|
| 14 |
- public String insertBBSMastetInf(BoardMasterVO boardMaster) throws Exception; |
|
| 15 |
- |
|
| 16 |
- //게시판 속성정보 한 건을 상세조회한다. |
|
| 17 |
- public BoardMasterVO selectBBSMasterInf(BoardMasterVO searchVO) throws Exception; |
|
| 18 |
- |
|
| 19 |
- |
|
| 20 |
- //게시판 속성 정보의 목록을 조회 한다. |
|
| 21 |
- public Map<String, Object> selectBBSMasterInfs(BoardMasterVO searchVO) throws Exception; |
|
| 22 |
- |
|
| 23 |
- //게시판 속성 정보의 전체 목록을 조회 한다. |
|
| 24 |
- public List<BoardMasterVO> selectBBSMasterList(BoardMasterVO searchVO) throws Exception; |
|
| 25 |
- |
|
| 26 |
- //게시판 속성정보를 수정한다. |
|
| 27 |
- public void updateBBSMasterInf(BoardMasterVO boardMaster) throws Exception; |
|
| 28 |
- |
|
| 29 |
- //유효한 게시판 마스터 정보를 호출한다. |
|
| 30 |
- public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception; |
|
| 31 |
- |
|
| 32 |
- //사용등록이 된 게시판 목록 전체를 불러온다. |
|
| 33 |
- public List<BoardMasterVO> selectAllBBSMasterManageInfs(BoardMasterVO vo) throws Exception ; |
|
| 34 |
- |
|
| 35 |
- //사용등록이 된 게시판 목록 숫자를 조회한다 |
|
| 36 |
- public int selectAllBBSMasterManageInfsCnt(BoardMasterVO vo) throws Exception; |
|
| 37 |
-} |
|
| 1 |
+package egovframework.com.cop.bbs.service; |
|
| 2 |
+ |
|
| 3 |
+import java.util.List; |
|
| 4 |
+import java.util.Map; |
|
| 5 |
+ |
|
| 6 |
+ |
|
| 7 |
+//게시판 속성관리를 위한 서비스 인터페이스 클래스 |
|
| 8 |
+public interface BBSAttributeManageService {
|
|
| 9 |
+ |
|
| 10 |
+ //등록된 게시판 속성정보를 삭제한다. |
|
| 11 |
+ public void deleteBBSMasterInf(BoardMasterVO boardMaster) throws Exception; |
|
| 12 |
+ |
|
| 13 |
+ //신규 게시판 속성정보를 생성한다. |
|
| 14 |
+ public String insertBBSMastetInf(BoardMasterVO boardMaster) throws Exception; |
|
| 15 |
+ |
|
| 16 |
+ //게시판 속성정보 한 건을 상세조회한다. |
|
| 17 |
+ public BoardMasterVO selectBBSMasterInf(BoardMasterVO searchVO) throws Exception; |
|
| 18 |
+ |
|
| 19 |
+ |
|
| 20 |
+ //게시판 속성 정보의 목록을 조회 한다. |
|
| 21 |
+ public Map<String, Object> selectBBSMasterInfs(BoardMasterVO searchVO) throws Exception; |
|
| 22 |
+ |
|
| 23 |
+ //게시판 속성 정보의 전체 목록을 조회 한다. |
|
| 24 |
+ public List<BoardMasterVO> selectBBSMasterList(BoardMasterVO searchVO) throws Exception; |
|
| 25 |
+ |
|
| 26 |
+ //게시판 속성정보를 수정한다. |
|
| 27 |
+ public void updateBBSMasterInf(BoardMasterVO boardMaster) throws Exception; |
|
| 28 |
+ |
|
| 29 |
+ //유효한 게시판 마스터 정보를 호출한다. |
|
| 30 |
+ public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception; |
|
| 31 |
+ |
|
| 32 |
+ //사용등록이 된 게시판 목록 전체를 불러온다. |
|
| 33 |
+ public List<BoardMasterVO> selectAllBBSMasterManageInfs(BoardMasterVO vo) throws Exception ; |
|
| 34 |
+ |
|
| 35 |
+ //사용등록이 된 게시판 목록 숫자를 조회한다 |
|
| 36 |
+ public int selectAllBBSMasterManageInfsCnt(BoardMasterVO vo) throws Exception; |
|
| 37 |
+} |
--- base/src/main/java/egovframework/com/cop/bbs/service/EgovBBSCommentService.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/BBSCommentService.java
... | ... | @@ -1,107 +1,107 @@ |
| 1 |
-package egovframework.com.cop.bbs.service; |
|
| 2 |
- |
|
| 3 |
-import java.util.List; |
|
| 4 |
-import java.util.Map; |
|
| 5 |
- |
|
| 6 |
-/** |
|
| 7 |
- * 댓글관리를 위한 서비스 인터페이스 클래스 |
|
| 8 |
- * @author 공통컴포넌트개발팀 한성곤 |
|
| 9 |
- * @since 2009.06.29 |
|
| 10 |
- * @version 1.0 |
|
| 11 |
- * @see |
|
| 12 |
- * |
|
| 13 |
- * <pre> |
|
| 14 |
- * << 개정이력(Modification Information) >> |
|
| 15 |
- * |
|
| 16 |
- * 수정일 수정자 수정내용 |
|
| 17 |
- * ------- -------- --------------------------- |
|
| 18 |
- * 2009.06.29 한성곤 최초 생성 |
|
| 19 |
- * |
|
| 20 |
- * </pre> |
|
| 21 |
- */ |
|
| 22 |
-public interface EgovBBSCommentService {
|
|
| 23 |
- |
|
| 24 |
- |
|
| 25 |
- /** |
|
| 26 |
- * 댓글에 대한 목록을 조회 한다. |
|
| 27 |
- * |
|
| 28 |
- * @param commentVO |
|
| 29 |
- * @return |
|
| 30 |
- * @throws Exception |
|
| 31 |
- */ |
|
| 32 |
- public Map<String, Object> selectCommentList(CommentVO commentVO) throws Exception; |
|
| 33 |
- |
|
| 34 |
- /** |
|
| 35 |
- * 댓글을 등록한다. |
|
| 36 |
- * |
|
| 37 |
- * @param comment |
|
| 38 |
- * @throws Exception |
|
| 39 |
- */ |
|
| 40 |
- public void insertComment(Comment comment) throws Exception; |
|
| 41 |
- |
|
| 42 |
- /** |
|
| 43 |
- * 댓글의 댓글을 등록한다 |
|
| 44 |
- * @param comment |
|
| 45 |
- * @throws Exception |
|
| 46 |
- */ |
|
| 47 |
- public void insertReplyComment(CommentVO commentVO) throws Exception; |
|
| 48 |
- |
|
| 49 |
- /** |
|
| 50 |
- * 댓글을 삭제한다. |
|
| 51 |
- * |
|
| 52 |
- * @param commentVO |
|
| 53 |
- * @throws Exception |
|
| 54 |
- */ |
|
| 55 |
- public void deleteComment(CommentVO commentVO) throws Exception; |
|
| 56 |
- |
|
| 57 |
- /** |
|
| 58 |
- * 모든 댓글을 삭제한다. |
|
| 59 |
- * |
|
| 60 |
- * @param commentVO |
|
| 61 |
- * @throws Exception |
|
| 62 |
- */ |
|
| 63 |
- public void deleteAllComment(CommentVO commentVO) throws Exception; |
|
| 64 |
- |
|
| 65 |
- /** |
|
| 66 |
- * 댓글에 대한 내용을 조회한다. |
|
| 67 |
- * |
|
| 68 |
- * @param commentVO |
|
| 69 |
- * @return |
|
| 70 |
- * @throws Exception |
|
| 71 |
- */ |
|
| 72 |
- public Comment selectComment(CommentVO commentVO) throws Exception; |
|
| 73 |
- |
|
| 74 |
- /** |
|
| 75 |
- * 댓글에 대한 내용을 수정한다. |
|
| 76 |
- * |
|
| 77 |
- * @param comment |
|
| 78 |
- * @throws Exception |
|
| 79 |
- */ |
|
| 80 |
- public void updateComment(Comment comment) throws Exception; |
|
| 81 |
- |
|
| 82 |
- /** |
|
| 83 |
- * 댓글 패스워드를 가져온다. |
|
| 84 |
- * |
|
| 85 |
- * @param comment |
|
| 86 |
- * @return |
|
| 87 |
- * @throws Exception |
|
| 88 |
- */ |
|
| 89 |
- public String getCommentPassword(Comment comment) throws Exception; |
|
| 90 |
- |
|
| 91 |
- /** |
|
| 92 |
- * 내가 작성한 댓글에 대한 목록 건수를 조회 한다. |
|
| 93 |
- * |
|
| 94 |
- * @param commentVO |
|
| 95 |
- * @return |
|
| 96 |
- * @throws Exception |
|
| 97 |
- */ |
|
| 98 |
- public int selectMyCommentListCnt(CommentVO commentVO) throws Exception; |
|
| 99 |
- |
|
| 100 |
- /** |
|
| 101 |
- * 관리용 댓글을 복사한다. |
|
| 102 |
- * |
|
| 103 |
- * @param board |
|
| 104 |
- * @throws Exception |
|
| 105 |
- */ |
|
| 106 |
- public void updateCommentManageCopy(List<String> nttNoArr, List<BoardVO> articleList) throws Exception; |
|
| 107 |
-} |
|
| 1 |
+package egovframework.com.cop.bbs.service; |
|
| 2 |
+ |
|
| 3 |
+import java.util.List; |
|
| 4 |
+import java.util.Map; |
|
| 5 |
+ |
|
| 6 |
+/** |
|
| 7 |
+ * 댓글관리를 위한 서비스 인터페이스 클래스 |
|
| 8 |
+ * @author 공통컴포넌트개발팀 한성곤 |
|
| 9 |
+ * @since 2009.06.29 |
|
| 10 |
+ * @version 1.0 |
|
| 11 |
+ * @see |
|
| 12 |
+ * |
|
| 13 |
+ * <pre> |
|
| 14 |
+ * << 개정이력(Modification Information) >> |
|
| 15 |
+ * |
|
| 16 |
+ * 수정일 수정자 수정내용 |
|
| 17 |
+ * ------- -------- --------------------------- |
|
| 18 |
+ * 2009.06.29 한성곤 최초 생성 |
|
| 19 |
+ * |
|
| 20 |
+ * </pre> |
|
| 21 |
+ */ |
|
| 22 |
+public interface BBSCommentService {
|
|
| 23 |
+ |
|
| 24 |
+ |
|
| 25 |
+ /** |
|
| 26 |
+ * 댓글에 대한 목록을 조회 한다. |
|
| 27 |
+ * |
|
| 28 |
+ * @param commentVO |
|
| 29 |
+ * @return |
|
| 30 |
+ * @throws Exception |
|
| 31 |
+ */ |
|
| 32 |
+ public Map<String, Object> selectCommentList(CommentVO commentVO) throws Exception; |
|
| 33 |
+ |
|
| 34 |
+ /** |
|
| 35 |
+ * 댓글을 등록한다. |
|
| 36 |
+ * |
|
| 37 |
+ * @param comment |
|
| 38 |
+ * @throws Exception |
|
| 39 |
+ */ |
|
| 40 |
+ public void insertComment(Comment comment) throws Exception; |
|
| 41 |
+ |
|
| 42 |
+ /** |
|
| 43 |
+ * 댓글의 댓글을 등록한다 |
|
| 44 |
+ * @param comment |
|
| 45 |
+ * @throws Exception |
|
| 46 |
+ */ |
|
| 47 |
+ public void insertReplyComment(CommentVO commentVO) throws Exception; |
|
| 48 |
+ |
|
| 49 |
+ /** |
|
| 50 |
+ * 댓글을 삭제한다. |
|
| 51 |
+ * |
|
| 52 |
+ * @param commentVO |
|
| 53 |
+ * @throws Exception |
|
| 54 |
+ */ |
|
| 55 |
+ public void deleteComment(CommentVO commentVO) throws Exception; |
|
| 56 |
+ |
|
| 57 |
+ /** |
|
| 58 |
+ * 모든 댓글을 삭제한다. |
|
| 59 |
+ * |
|
| 60 |
+ * @param commentVO |
|
| 61 |
+ * @throws Exception |
|
| 62 |
+ */ |
|
| 63 |
+ public void deleteAllComment(CommentVO commentVO) throws Exception; |
|
| 64 |
+ |
|
| 65 |
+ /** |
|
| 66 |
+ * 댓글에 대한 내용을 조회한다. |
|
| 67 |
+ * |
|
| 68 |
+ * @param commentVO |
|
| 69 |
+ * @return |
|
| 70 |
+ * @throws Exception |
|
| 71 |
+ */ |
|
| 72 |
+ public Comment selectComment(CommentVO commentVO) throws Exception; |
|
| 73 |
+ |
|
| 74 |
+ /** |
|
| 75 |
+ * 댓글에 대한 내용을 수정한다. |
|
| 76 |
+ * |
|
| 77 |
+ * @param comment |
|
| 78 |
+ * @throws Exception |
|
| 79 |
+ */ |
|
| 80 |
+ public void updateComment(Comment comment) throws Exception; |
|
| 81 |
+ |
|
| 82 |
+ /** |
|
| 83 |
+ * 댓글 패스워드를 가져온다. |
|
| 84 |
+ * |
|
| 85 |
+ * @param comment |
|
| 86 |
+ * @return |
|
| 87 |
+ * @throws Exception |
|
| 88 |
+ */ |
|
| 89 |
+ public String getCommentPassword(Comment comment) throws Exception; |
|
| 90 |
+ |
|
| 91 |
+ /** |
|
| 92 |
+ * 내가 작성한 댓글에 대한 목록 건수를 조회 한다. |
|
| 93 |
+ * |
|
| 94 |
+ * @param commentVO |
|
| 95 |
+ * @return |
|
| 96 |
+ * @throws Exception |
|
| 97 |
+ */ |
|
| 98 |
+ public int selectMyCommentListCnt(CommentVO commentVO) throws Exception; |
|
| 99 |
+ |
|
| 100 |
+ /** |
|
| 101 |
+ * 관리용 댓글을 복사한다. |
|
| 102 |
+ * |
|
| 103 |
+ * @param board |
|
| 104 |
+ * @throws Exception |
|
| 105 |
+ */ |
|
| 106 |
+ public void updateCommentManageCopy(List<String> nttNoArr, List<BoardVO> articleList) throws Exception; |
|
| 107 |
+} |
+++ base/src/main/java/egovframework/com/cop/bbs/service/BBSCtgryMasterService.java
... | ... | @@ -0,0 +1,30 @@ |
| 1 | +package egovframework.com.cop.bbs.service; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +//카테고리마스터 Service | |
| 6 | +public interface BBSCtgryMasterService { | |
| 7 | + | |
| 8 | + //COMTNBBSCTGRYMASTER을 등록한다. | |
| 9 | + String insertComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 10 | + | |
| 11 | + //COMTNBBSCTGRYMASTER을 수정한다. | |
| 12 | + void updateComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 13 | + | |
| 14 | + //COMTNBBSCTGRYMASTER을 삭제한다. | |
| 15 | + void deleteComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 16 | + | |
| 17 | + //COMTNBBSCTGRYMASTER을 조회한다. | |
| 18 | + CtgryMasterVO selectComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 19 | + | |
| 20 | + //카테고리마스터Id검색 | |
| 21 | + CtgryMasterVO selectCtgrymasterId(CtgryMasterVO vo) throws Exception; | |
| 22 | + | |
| 23 | + //COMTNBBSCTGRYMASTER 목록을 조회한다. | |
| 24 | + List<CtgryMasterVO> selectComtnbbsctgrymasterList(CtgryMasterVO searchVO) throws Exception; | |
| 25 | + | |
| 26 | + //COMTNBBSCTGRYMASTER 총 갯수를 조회한다. | |
| 27 | + int selectComtnbbsctgrymasterListTotCnt(CtgryMasterVO searchVO); | |
| 28 | + | |
| 29 | + List<CtgryMasterVO> selectCtgrymasterList(CtgryMasterVO searchVO) throws Exception; | |
| 30 | +} |
+++ base/src/main/java/egovframework/com/cop/bbs/service/BBSCtgryService.java
... | ... | @@ -0,0 +1,32 @@ |
| 1 | +package egovframework.com.cop.bbs.service; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +//카테고리 | |
| 6 | +public interface BBSCtgryService { | |
| 7 | + | |
| 8 | + //COMTNBBSCTGRY을 등록한다. | |
| 9 | + String insertComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 10 | + | |
| 11 | + //COMTNBBSCTGRY을 수정한다. | |
| 12 | + void updateComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 13 | + | |
| 14 | + //COMTNBBSCTGRY을 삭제한다. | |
| 15 | + void deleteComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 16 | + | |
| 17 | + //COMTNBBSCTGRY을 조회한다. | |
| 18 | + CtgryVO selectComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 19 | + | |
| 20 | + //COMTNBBSCTGRY 목록을 조회한다. | |
| 21 | + List<CtgryVO> selectComtnbbsctgryList(CtgryVO searchVO) throws Exception; | |
| 22 | + | |
| 23 | + //COMTNBBSCTGRY 총 갯수를 조회한다. | |
| 24 | + int selectComtnbbsctgryListTotCnt(CtgryVO searchVO); | |
| 25 | + | |
| 26 | + //COMTNBBSCTGRY DEPTH를 조회한다. | |
| 27 | + public int selectComtnbbsctgryLevel(CtgryVO searchVO); | |
| 28 | + | |
| 29 | + //정렬순서를 수정한다. | |
| 30 | + public void updateSortOrdr(CtgryVO vo) throws Exception; | |
| 31 | + | |
| 32 | +} |
--- base/src/main/java/egovframework/com/cop/bbs/service/EgovBBSManageService.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/BBSManageService.java
... | ... | @@ -1,53 +1,51 @@ |
| 1 |
-package egovframework.com.cop.bbs.service; |
|
| 2 |
- |
|
| 3 |
-import java.util.List; |
|
| 4 |
- |
|
| 5 |
-import egovframework.rte.psl.dataaccess.util.EgovMap; |
|
| 6 |
- |
|
| 7 |
- |
|
| 8 |
-//게시물 관리를 위한 서비스 인터페이스 클래스 |
|
| 9 |
-public interface EgovBBSManageService {
|
|
| 10 |
- |
|
| 11 |
- //게시물 한 건을 삭제 한다. |
|
| 12 |
- public void deleteBoardArticle(BoardVO Board, BoardMasterVO master) throws Exception; |
|
| 13 |
- |
|
| 14 |
- //게시판에 게시물을 등록 한다. |
|
| 15 |
- public void insertBoardArticle(BoardVO board, BoardMasterVO master) throws Exception ; |
|
| 16 |
- |
|
| 17 |
- //게시판에 답변 게시물을 등록 한다. |
|
| 18 |
- public void replyBoardArticle(BoardVO board, BoardMasterVO master) throws Exception ; |
|
| 19 |
- |
|
| 20 |
- //게시물 대하여 상세 내용을 조회 한다. |
|
| 21 |
- public BoardVO selectBoardArticle(BoardVO boardVO) throws Exception; |
|
| 22 |
- |
|
| 23 |
- //조건에 맞는 게시물 목록을 조회 한다. |
|
| 24 |
- public List<BoardVO> selectBoardArticles(BoardVO boardVO) throws Exception; |
|
| 25 |
- |
|
| 26 |
- //조건에 맞는 게시물 목록건수를 조회 한다. |
|
| 27 |
- public int selectBoardArticlesCnt(BoardVO boardVO) throws Exception; |
|
| 28 |
- |
|
| 29 |
- //게시물 한 건의 내용을 수정 한다. |
|
| 30 |
- public void updateBoardArticle(BoardVO Board, BoardMasterVO master, boolean isEstn) throws Exception; |
|
| 31 |
- |
|
| 32 |
- //조건에 맞는 게시물 목록을 조회 한다. |
|
| 33 |
- public List<BoardVO> selectSearchBoardArticleList(BoardVO boardVO) throws Exception ; |
|
| 34 |
- |
|
| 35 |
- //조건에 맞는 게시물 목록에 대한 전체 건수를 조회 한다. |
|
| 36 |
- public int selectSearchBoardArticleListCnt(BoardVO boardVO) throws Exception ; |
|
| 37 |
- |
|
| 38 |
- //관리용 게시물을 이동시킨다. |
|
| 39 |
- public void updateBoardArticlesManageMove(BoardVO board) throws Exception ; |
|
| 40 |
- |
|
| 41 |
- //관리용 게시물을 복사한다. |
|
| 42 |
- public void updateBoardArticlesManageCopy(BoardVO board) throws Exception; |
|
| 43 |
- |
|
| 44 |
- //관리용 게시물을 삭제한다. |
|
| 45 |
- public void updateBoardArticlesManageHide(BoardVO board) throws Exception ; |
|
| 46 |
- |
|
| 47 |
- //게시물 한 건을 완전삭제 한다. |
|
| 48 |
- public void deleteCompleteBoardArticle(BoardVO board) throws Exception ; |
|
| 49 |
- |
|
| 50 |
- //게시물 한 건을 복구 한다. |
|
| 51 |
- public void repairBoardArticle(BoardVO board) throws Exception ; |
|
| 52 |
- |
|
| 53 |
-} |
|
| 1 |
+package egovframework.com.cop.bbs.service; |
|
| 2 |
+ |
|
| 3 |
+import java.util.List; |
|
| 4 |
+ |
|
| 5 |
+ |
|
| 6 |
+//게시물 관리를 위한 서비스 인터페이스 클래스 |
|
| 7 |
+public interface BBSManageService {
|
|
| 8 |
+ |
|
| 9 |
+ //게시물 한 건을 삭제 한다. |
|
| 10 |
+ public void deleteBoardArticle(BoardVO Board, BoardMasterVO master) throws Exception; |
|
| 11 |
+ |
|
| 12 |
+ //게시판에 게시물을 등록 한다. |
|
| 13 |
+ public void insertBoardArticle(BoardVO board, BoardMasterVO master) throws Exception ; |
|
| 14 |
+ |
|
| 15 |
+ //게시판에 답변 게시물을 등록 한다. |
|
| 16 |
+ public void replyBoardArticle(BoardVO board, BoardMasterVO master) throws Exception ; |
|
| 17 |
+ |
|
| 18 |
+ //게시물 대하여 상세 내용을 조회 한다. |
|
| 19 |
+ public BoardVO selectBoardArticle(BoardVO boardVO) throws Exception; |
|
| 20 |
+ |
|
| 21 |
+ //조건에 맞는 게시물 목록을 조회 한다. |
|
| 22 |
+ public List<BoardVO> selectBoardArticles(BoardVO boardVO) throws Exception; |
|
| 23 |
+ |
|
| 24 |
+ //조건에 맞는 게시물 목록건수를 조회 한다. |
|
| 25 |
+ public int selectBoardArticlesCnt(BoardVO boardVO) throws Exception; |
|
| 26 |
+ |
|
| 27 |
+ //게시물 한 건의 내용을 수정 한다. |
|
| 28 |
+ public void updateBoardArticle(BoardVO Board, BoardMasterVO master, boolean isEstn) throws Exception; |
|
| 29 |
+ |
|
| 30 |
+ //조건에 맞는 게시물 목록을 조회 한다. |
|
| 31 |
+ public List<BoardVO> selectSearchBoardArticleList(BoardVO boardVO) throws Exception ; |
|
| 32 |
+ |
|
| 33 |
+ //조건에 맞는 게시물 목록에 대한 전체 건수를 조회 한다. |
|
| 34 |
+ public int selectSearchBoardArticleListCnt(BoardVO boardVO) throws Exception ; |
|
| 35 |
+ |
|
| 36 |
+ //관리용 게시물을 이동시킨다. |
|
| 37 |
+ public void updateBoardArticlesManageMove(BoardVO board) throws Exception ; |
|
| 38 |
+ |
|
| 39 |
+ //관리용 게시물을 복사한다. |
|
| 40 |
+ public void updateBoardArticlesManageCopy(BoardVO board) throws Exception; |
|
| 41 |
+ |
|
| 42 |
+ //관리용 게시물을 삭제한다. |
|
| 43 |
+ public void updateBoardArticlesManageHide(BoardVO board) throws Exception ; |
|
| 44 |
+ |
|
| 45 |
+ //게시물 한 건을 완전삭제 한다. |
|
| 46 |
+ public void deleteCompleteBoardArticle(BoardVO board) throws Exception ; |
|
| 47 |
+ |
|
| 48 |
+ //게시물 한 건을 복구 한다. |
|
| 49 |
+ public void repairBoardArticle(BoardVO board) throws Exception ; |
|
| 50 |
+ |
|
| 51 |
+} |
--- base/src/main/java/egovframework/com/cop/bbs/service/BoardMasterVO.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/BoardMasterVO.java
... | ... | @@ -81,9 +81,9 @@ |
| 81 | 81 |
private String answerAuthor = "02"; |
| 82 | 82 |
|
| 83 | 83 |
//카테고리리스트 |
| 84 |
- private List<Ctgry> ctgryList = ListUtils.lazyList(new ArrayList<Ctgry>(), new Factory() {
|
|
| 85 |
- public Ctgry create() {
|
|
| 86 |
- return new Ctgry(); |
|
| 84 |
+ private List<CtgryVO> ctgryList = ListUtils.lazyList(new ArrayList<CtgryVO>(), new Factory() {
|
|
| 85 |
+ public CtgryVO create() {
|
|
| 86 |
+ return new CtgryVO(); |
|
| 87 | 87 |
} |
| 88 | 88 |
}); |
| 89 | 89 |
|
... | ... | @@ -283,11 +283,11 @@ |
| 283 | 283 |
this.answerAuthor = answerAuthor; |
| 284 | 284 |
} |
| 285 | 285 |
|
| 286 |
- public List<Ctgry> getCtgryList() {
|
|
| 286 |
+ public List<CtgryVO> getCtgryList() {
|
|
| 287 | 287 |
return ctgryList; |
| 288 | 288 |
} |
| 289 | 289 |
|
| 290 |
- public void setCtgryList(List<Ctgry> ctgryList) {
|
|
| 290 |
+ public void setCtgryList(List<CtgryVO> ctgryList) {
|
|
| 291 | 291 |
this.ctgryList = ctgryList; |
| 292 | 292 |
} |
| 293 | 293 |
|
--- base/src/main/java/egovframework/com/cop/bbs/service/Ctgry.java
... | ... | @@ -1,145 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * @Class Name : ComtnbbsctgryVO.java | |
| 5 | - * @Description : Comtnbbsctgry VO class | |
| 6 | - * @Modification Information | |
| 7 | - * | |
| 8 | - * @author 정정욱 | |
| 9 | - * @since 20110907 | |
| 10 | - * @version 1.0 | |
| 11 | - * @see | |
| 12 | - * | |
| 13 | - * Copyright (C) All right reserved. | |
| 14 | - */ | |
| 15 | -@SuppressWarnings("serial")
| |
| 16 | -public class Ctgry extends CtgryVO {
| |
| 17 | - | |
| 18 | - /** CTGRY_ID */ | |
| 19 | - private java.lang.String ctgryId; | |
| 20 | - | |
| 21 | - /** CTGRYMASTER_ID */ | |
| 22 | - private java.lang.String ctgrymasterId; | |
| 23 | - | |
| 24 | - /** UPPER_CTGRY_ID */ | |
| 25 | - private java.lang.String upperCtgryId; | |
| 26 | - | |
| 27 | - /** CTGRY_NM */ | |
| 28 | - private java.lang.String ctgryNm; | |
| 29 | - | |
| 30 | - /** CTGRY_CN */ | |
| 31 | - private java.lang.String ctgryCn; | |
| 32 | - | |
| 33 | - /** CTGRY_VAL */ | |
| 34 | - private java.lang.String ctgryVal; | |
| 35 | - | |
| 36 | - /** SORT_ORDR */ | |
| 37 | - private int sortOrdr = 0; | |
| 38 | - | |
| 39 | - /** USE_AT */ | |
| 40 | - private java.lang.String useAt; | |
| 41 | - | |
| 42 | - /** | |
| 43 | - * 경로 - 명 | |
| 44 | - */ | |
| 45 | - private String ctgryPathByName = ""; | |
| 46 | - | |
| 47 | - /** | |
| 48 | - * 경로 - ID | |
| 49 | - */ | |
| 50 | - private String ctgryPathById = ""; | |
| 51 | - | |
| 52 | - /** | |
| 53 | - * 레벨 | |
| 54 | - */ | |
| 55 | - private int ctgryLevel = 1; | |
| 56 | - | |
| 57 | - public java.lang.String getCtgryId() {
| |
| 58 | - return this.ctgryId; | |
| 59 | - } | |
| 60 | - | |
| 61 | - public void setCtgryId(java.lang.String ctgryId) {
| |
| 62 | - this.ctgryId = ctgryId; | |
| 63 | - } | |
| 64 | - | |
| 65 | - public java.lang.String getCtgrymasterId() {
| |
| 66 | - return this.ctgrymasterId; | |
| 67 | - } | |
| 68 | - | |
| 69 | - public void setCtgrymasterId(java.lang.String ctgrymasterId) {
| |
| 70 | - this.ctgrymasterId = ctgrymasterId; | |
| 71 | - } | |
| 72 | - | |
| 73 | - public java.lang.String getUpperCtgryId() {
| |
| 74 | - return upperCtgryId; | |
| 75 | - } | |
| 76 | - | |
| 77 | - public void setUpperCtgryId(java.lang.String upperCtgryId) {
| |
| 78 | - this.upperCtgryId = upperCtgryId; | |
| 79 | - } | |
| 80 | - | |
| 81 | - public java.lang.String getCtgryNm() {
| |
| 82 | - return this.ctgryNm; | |
| 83 | - } | |
| 84 | - | |
| 85 | - public void setCtgryNm(java.lang.String ctgryNm) {
| |
| 86 | - this.ctgryNm = ctgryNm; | |
| 87 | - } | |
| 88 | - | |
| 89 | - public int getSortOrdr() {
| |
| 90 | - return sortOrdr; | |
| 91 | - } | |
| 92 | - | |
| 93 | - public void setSortOrdr(int sortOrdr) {
| |
| 94 | - this.sortOrdr = sortOrdr; | |
| 95 | - } | |
| 96 | - | |
| 97 | - public java.lang.String getUseAt() {
| |
| 98 | - return this.useAt; | |
| 99 | - } | |
| 100 | - | |
| 101 | - public void setUseAt(java.lang.String useAt) {
| |
| 102 | - this.useAt = useAt; | |
| 103 | - } | |
| 104 | - | |
| 105 | - public String getCtgryPathByName() {
| |
| 106 | - return ctgryPathByName; | |
| 107 | - } | |
| 108 | - | |
| 109 | - public void setCtgryPathByName(String ctgryPathByName) {
| |
| 110 | - this.ctgryPathByName = ctgryPathByName; | |
| 111 | - } | |
| 112 | - | |
| 113 | - public String getCtgryPathById() {
| |
| 114 | - return ctgryPathById; | |
| 115 | - } | |
| 116 | - | |
| 117 | - public void setCtgryPathById(String ctgryPathById) {
| |
| 118 | - this.ctgryPathById = ctgryPathById; | |
| 119 | - } | |
| 120 | - | |
| 121 | - public int getCtgryLevel() {
| |
| 122 | - return ctgryLevel; | |
| 123 | - } | |
| 124 | - | |
| 125 | - public void setCtgryLevel(int ctgryLevel) {
| |
| 126 | - this.ctgryLevel = ctgryLevel; | |
| 127 | - } | |
| 128 | - | |
| 129 | - public java.lang.String getCtgryCn() {
| |
| 130 | - return ctgryCn; | |
| 131 | - } | |
| 132 | - | |
| 133 | - public void setCtgryCn(java.lang.String ctgryCn) {
| |
| 134 | - this.ctgryCn = ctgryCn; | |
| 135 | - } | |
| 136 | - | |
| 137 | - public java.lang.String getCtgryVal() {
| |
| 138 | - return ctgryVal; | |
| 139 | - } | |
| 140 | - | |
| 141 | - public void setCtgryVal(java.lang.String ctgryVal) {
| |
| 142 | - this.ctgryVal = ctgryVal; | |
| 143 | - } | |
| 144 | - | |
| 145 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/CtgryMaster.java
... | ... | @@ -1,88 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * @Class Name : CtgryMasterVO.java | |
| 5 | - * @Description : CtgryMaster VO class | |
| 6 | - * @Modification Information | |
| 7 | - * | |
| 8 | - * @author 정정욱 | |
| 9 | - * @since 20110907 | |
| 10 | - * @version 1.0 | |
| 11 | - * @see | |
| 12 | - * | |
| 13 | - * Copyright (C) All right reserved. | |
| 14 | - */ | |
| 15 | -@SuppressWarnings("serial")
| |
| 16 | -public class CtgryMaster extends CtgryMasterVO{
| |
| 17 | - | |
| 18 | - /** | |
| 19 | - * SITEID | |
| 20 | - */ | |
| 21 | - private String siteId = ""; | |
| 22 | - | |
| 23 | - /** | |
| 24 | - * 시스템구분코드 | |
| 25 | - */ | |
| 26 | - private String sysTyCode = ""; | |
| 27 | - | |
| 28 | - /** CTGRYMASTER_ID */ | |
| 29 | - private java.lang.String ctgrymasterId; | |
| 30 | - | |
| 31 | - /** CTGRYMASTER_NM */ | |
| 32 | - private java.lang.String ctgrymasterNm; | |
| 33 | - | |
| 34 | - /** CREAT_DT */ | |
| 35 | - private java.sql.Date creatDt; | |
| 36 | - | |
| 37 | - /** USE_AT */ | |
| 38 | - private java.lang.String useAt; | |
| 39 | - | |
| 40 | - public String getSiteId() {
| |
| 41 | - return siteId; | |
| 42 | - } | |
| 43 | - | |
| 44 | - public void setSiteId(String siteId) {
| |
| 45 | - this.siteId = siteId; | |
| 46 | - } | |
| 47 | - | |
| 48 | - public String getSysTyCode() {
| |
| 49 | - return sysTyCode; | |
| 50 | - } | |
| 51 | - | |
| 52 | - public void setSysTyCode(String sysTyCode) {
| |
| 53 | - this.sysTyCode = sysTyCode; | |
| 54 | - } | |
| 55 | - | |
| 56 | - public java.lang.String getCtgrymasterId() {
| |
| 57 | - return this.ctgrymasterId; | |
| 58 | - } | |
| 59 | - | |
| 60 | - public void setCtgrymasterId(java.lang.String ctgrymasterId) {
| |
| 61 | - this.ctgrymasterId = ctgrymasterId; | |
| 62 | - } | |
| 63 | - | |
| 64 | - public java.lang.String getCtgrymasterNm() {
| |
| 65 | - return this.ctgrymasterNm; | |
| 66 | - } | |
| 67 | - | |
| 68 | - public void setCtgrymasterNm(java.lang.String ctgrymasterNm) {
| |
| 69 | - this.ctgrymasterNm = ctgrymasterNm; | |
| 70 | - } | |
| 71 | - | |
| 72 | - public java.sql.Date getCreatDt() {
| |
| 73 | - return this.creatDt; | |
| 74 | - } | |
| 75 | - | |
| 76 | - public void setCreatDt(java.sql.Date creatDt) {
| |
| 77 | - this.creatDt = creatDt; | |
| 78 | - } | |
| 79 | - | |
| 80 | - public java.lang.String getUseAt() {
| |
| 81 | - return this.useAt; | |
| 82 | - } | |
| 83 | - | |
| 84 | - public void setUseAt(java.lang.String useAt) {
| |
| 85 | - this.useAt = useAt; | |
| 86 | - } | |
| 87 | - | |
| 88 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/CtgryMasterVO.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/CtgryMasterVO.java
... | ... | @@ -1,125 +1,56 @@ |
| 1 | 1 |
package egovframework.com.cop.bbs.service; |
| 2 | 2 |
|
| 3 | 3 |
import java.io.Serializable; |
| 4 |
+import java.sql.Date; |
|
| 5 |
+ |
|
| 6 |
+import egovframework.com.cmm.ComDefaultVO; |
|
| 4 | 7 |
import org.apache.commons.lang.builder.ToStringBuilder; |
| 5 | 8 |
|
| 6 |
-/** |
|
| 7 |
- * @Class Name : ComtnbbsctgrymasterDefaultVO.java |
|
| 8 |
- * @Description : Comtnbbsctgrymaster Default VO class |
|
| 9 |
- * @Modification Information |
|
| 10 |
- * |
|
| 11 |
- * @author 정정욱 |
|
| 12 |
- * @since 20110907 |
|
| 13 |
- * @version 1.0 |
|
| 14 |
- * @see |
|
| 15 |
- * |
|
| 16 |
- * Copyright (C) All right reserved. |
|
| 17 |
- */ |
|
| 9 |
+ |
|
| 18 | 10 |
@SuppressWarnings("serial")
|
| 19 |
-public class CtgryMasterVO implements Serializable {
|
|
| 20 |
- |
|
| 21 |
- /** 검색조건 */ |
|
| 22 |
- private String searchCondition = ""; |
|
| 23 |
- |
|
| 24 |
- /** 검색Keyword */ |
|
| 25 |
- private String searchKeyword = ""; |
|
| 26 |
- |
|
| 27 |
- /** 검색사용여부 */ |
|
| 28 |
- private String searchUseYn = ""; |
|
| 29 |
- |
|
| 30 |
- /** 현재페이지 */ |
|
| 31 |
- private int pageIndex = 1; |
|
| 32 |
- |
|
| 33 |
- /** 페이지갯수 */ |
|
| 34 |
- private int pageUnit = 10; |
|
| 35 |
- |
|
| 36 |
- /** 페이지사이즈 */ |
|
| 37 |
- private int pageSize = 10; |
|
| 11 |
+public class CtgryMasterVO extends ComDefaultVO {
|
|
| 38 | 12 |
|
| 39 |
- /** firstIndex */ |
|
| 40 |
- private int firstIndex = 1; |
|
| 13 |
+ //시스템구분코드 |
|
| 14 |
+ private String sysTyCode = ""; |
|
| 41 | 15 |
|
| 42 |
- /** lastIndex */ |
|
| 43 |
- private int lastIndex = 1; |
|
| 16 |
+ //CTGRYMASTER_ID |
|
| 17 |
+ private java.lang.String ctgrymasterId; |
|
| 44 | 18 |
|
| 45 |
- /** recordCountPerPage */ |
|
| 46 |
- private int recordCountPerPage = 10; |
|
| 47 |
- |
|
| 48 |
- |
|
| 49 |
- public int getFirstIndex() {
|
|
| 50 |
- return firstIndex; |
|
| 51 |
- } |
|
| 19 |
+ //CTGRYMASTER_NM |
|
| 20 |
+ private java.lang.String ctgrymasterNm; |
|
| 52 | 21 |
|
| 53 |
- public void setFirstIndex(int firstIndex) {
|
|
| 54 |
- this.firstIndex = firstIndex; |
|
| 55 |
- } |
|
| 22 |
+ // CREAT_DT |
|
| 23 |
+ private java.sql.Date creatDt; |
|
| 56 | 24 |
|
| 57 |
- public int getLastIndex() {
|
|
| 58 |
- return lastIndex; |
|
| 59 |
- } |
|
| 60 |
- |
|
| 61 |
- public void setLastIndex(int lastIndex) {
|
|
| 62 |
- this.lastIndex = lastIndex; |
|
| 63 |
- } |
|
| 64 |
- |
|
| 65 |
- public int getRecordCountPerPage() {
|
|
| 66 |
- return recordCountPerPage; |
|
| 67 |
- } |
|
| 68 |
- |
|
| 69 |
- public void setRecordCountPerPage(int recordCountPerPage) {
|
|
| 70 |
- this.recordCountPerPage = recordCountPerPage; |
|
| 71 |
- } |
|
| 72 |
- |
|
| 73 |
- public String getSearchCondition() {
|
|
| 74 |
- return searchCondition; |
|
| 25 |
+ public String getSysTyCode() {
|
|
| 26 |
+ return sysTyCode; |
|
| 75 | 27 |
} |
| 76 | 28 |
|
| 77 |
- public void setSearchCondition(String searchCondition) {
|
|
| 78 |
- this.searchCondition = searchCondition; |
|
| 29 |
+ public void setSysTyCode(String sysTyCode) {
|
|
| 30 |
+ this.sysTyCode = sysTyCode; |
|
| 79 | 31 |
} |
| 80 | 32 |
|
| 81 |
- public String getSearchKeyword() {
|
|
| 82 |
- return searchKeyword; |
|
| 33 |
+ public String getCtgrymasterId() {
|
|
| 34 |
+ return ctgrymasterId; |
|
| 83 | 35 |
} |
| 84 | 36 |
|
| 85 |
- public void setSearchKeyword(String searchKeyword) {
|
|
| 86 |
- this.searchKeyword = searchKeyword; |
|
| 37 |
+ public void setCtgrymasterId(String ctgrymasterId) {
|
|
| 38 |
+ this.ctgrymasterId = ctgrymasterId; |
|
| 87 | 39 |
} |
| 88 | 40 |
|
| 89 |
- public String getSearchUseYn() {
|
|
| 90 |
- return searchUseYn; |
|
| 41 |
+ public String getCtgrymasterNm() {
|
|
| 42 |
+ return ctgrymasterNm; |
|
| 91 | 43 |
} |
| 92 | 44 |
|
| 93 |
- public void setSearchUseYn(String searchUseYn) {
|
|
| 94 |
- this.searchUseYn = searchUseYn; |
|
| 45 |
+ public void setCtgrymasterNm(String ctgrymasterNm) {
|
|
| 46 |
+ this.ctgrymasterNm = ctgrymasterNm; |
|
| 95 | 47 |
} |
| 96 | 48 |
|
| 97 |
- public int getPageIndex() {
|
|
| 98 |
- return pageIndex; |
|
| 49 |
+ public Date getCreatDt() {
|
|
| 50 |
+ return creatDt; |
|
| 99 | 51 |
} |
| 100 | 52 |
|
| 101 |
- public void setPageIndex(int pageIndex) {
|
|
| 102 |
- this.pageIndex = pageIndex; |
|
| 53 |
+ public void setCreatDt(Date creatDt) {
|
|
| 54 |
+ this.creatDt = creatDt; |
|
| 103 | 55 |
} |
| 104 |
- |
|
| 105 |
- public int getPageUnit() {
|
|
| 106 |
- return pageUnit; |
|
| 107 |
- } |
|
| 108 |
- |
|
| 109 |
- public void setPageUnit(int pageUnit) {
|
|
| 110 |
- this.pageUnit = pageUnit; |
|
| 111 |
- } |
|
| 112 |
- |
|
| 113 |
- public int getPageSize() {
|
|
| 114 |
- return pageSize; |
|
| 115 |
- } |
|
| 116 |
- |
|
| 117 |
- public void setPageSize(int pageSize) {
|
|
| 118 |
- this.pageSize = pageSize; |
|
| 119 |
- } |
|
| 120 |
- |
|
| 121 |
- public String toString() {
|
|
| 122 |
- return ToStringBuilder.reflectionToString(this); |
|
| 123 |
- } |
|
| 124 |
- |
|
| 125 | 56 |
} |
--- base/src/main/java/egovframework/com/cop/bbs/service/CtgryVO.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/CtgryVO.java
... | ... | @@ -1,149 +1,136 @@ |
| 1 | 1 |
package egovframework.com.cop.bbs.service; |
| 2 | 2 |
|
| 3 | 3 |
import java.io.Serializable; |
| 4 |
+ |
|
| 5 |
+import egovframework.com.cmm.ComDefaultVO; |
|
| 4 | 6 |
import org.apache.commons.lang.builder.ToStringBuilder; |
| 5 | 7 |
|
| 6 |
-/** |
|
| 7 |
- * @Class Name : ComtnbbsctgryDefaultVO.java |
|
| 8 |
- * @Description : Comtnbbsctgry Default VO class |
|
| 9 |
- * @Modification Information |
|
| 10 |
- * |
|
| 11 |
- * @author 정정욱 |
|
| 12 |
- * @since 20110907 |
|
| 13 |
- * @version 1.0 |
|
| 14 |
- * @see |
|
| 15 |
- * |
|
| 16 |
- * Copyright (C) All right reserved. |
|
| 17 |
- */ |
|
| 18 | 8 |
@SuppressWarnings("serial")
|
| 19 |
-public class CtgryVO implements Serializable {
|
|
| 20 |
- |
|
| 21 |
- /** 검색조건 */ |
|
| 22 |
- private String searchCondition = ""; |
|
| 23 |
- |
|
| 24 |
- /** 검색Keyword */ |
|
| 25 |
- private String searchKeyword = ""; |
|
| 26 |
- |
|
| 27 |
- /** 검색사용여부 */ |
|
| 28 |
- private String searchUseYn = ""; |
|
| 29 |
- |
|
| 30 |
- /** 검색대상 */ |
|
| 31 |
- private String searchTarget; |
|
| 32 |
- |
|
| 33 |
- /** |
|
| 34 |
- * 정렬순서코드 - U:위로, D:아래로 |
|
| 35 |
- */ |
|
| 9 |
+public class CtgryVO extends ComDefaultVO {
|
|
| 10 |
+ |
|
| 11 |
+ //카테고리ID |
|
| 12 |
+ private java.lang.String ctgryId; |
|
| 13 |
+ |
|
| 14 |
+ //카테고리마스터ID |
|
| 15 |
+ private java.lang.String ctgrymasterId; |
|
| 16 |
+ |
|
| 17 |
+ //상위카테고리ID |
|
| 18 |
+ private java.lang.String upperCtgryId; |
|
| 19 |
+ |
|
| 20 |
+ //카테고리명 |
|
| 21 |
+ private java.lang.String ctgryNm; |
|
| 22 |
+ |
|
| 23 |
+ //카테고리 설명 |
|
| 24 |
+ private java.lang.String ctgryCn; |
|
| 25 |
+ |
|
| 26 |
+ //카테고리 값 |
|
| 27 |
+ private java.lang.String ctgryVal; |
|
| 28 |
+ |
|
| 29 |
+ //SORT_ORDR |
|
| 30 |
+ private int sortOrdr = 0; |
|
| 31 |
+ |
|
| 32 |
+ //경로 - 명 |
|
| 33 |
+ private String ctgryPathByName = ""; |
|
| 34 |
+ |
|
| 35 |
+ //경로 - ID |
|
| 36 |
+ private String ctgryPathById = ""; |
|
| 37 |
+ |
|
| 38 |
+ //레벨 |
|
| 39 |
+ private int ctgryLevel = 1; |
|
| 40 |
+ |
|
| 41 |
+ //정렬순서코드 - U:위로, D:아래로 |
|
| 36 | 42 |
private String sortTyCode = ""; |
| 37 |
- |
|
| 38 |
- /** 현재페이지 */ |
|
| 39 |
- private int pageIndex = 1; |
|
| 40 |
- |
|
| 41 |
- /** 페이지갯수 */ |
|
| 42 |
- private int pageUnit = 10; |
|
| 43 |
- |
|
| 44 |
- /** 페이지사이즈 */ |
|
| 45 |
- private int pageSize = 10; |
|
| 46 | 43 |
|
| 47 |
- /** firstIndex */ |
|
| 48 |
- private int firstIndex = 1; |
|
| 49 | 44 |
|
| 50 |
- /** lastIndex */ |
|
| 51 |
- private int lastIndex = 1; |
|
| 52 |
- |
|
| 53 |
- /** recordCountPerPage */ |
|
| 54 |
- private int recordCountPerPage = 10; |
|
| 55 |
- |
|
| 56 |
- |
|
| 57 |
- public int getFirstIndex() {
|
|
| 58 |
- return firstIndex; |
|
| 59 |
- } |
|
| 60 |
- |
|
| 61 |
- public void setFirstIndex(int firstIndex) {
|
|
| 62 |
- this.firstIndex = firstIndex; |
|
| 63 |
- } |
|
| 64 |
- |
|
| 65 |
- public int getLastIndex() {
|
|
| 66 |
- return lastIndex; |
|
| 67 |
- } |
|
| 68 |
- |
|
| 69 |
- public void setLastIndex(int lastIndex) {
|
|
| 70 |
- this.lastIndex = lastIndex; |
|
| 71 |
- } |
|
| 72 |
- |
|
| 73 |
- public int getRecordCountPerPage() {
|
|
| 74 |
- return recordCountPerPage; |
|
| 75 |
- } |
|
| 76 |
- |
|
| 77 |
- public void setRecordCountPerPage(int recordCountPerPage) {
|
|
| 78 |
- this.recordCountPerPage = recordCountPerPage; |
|
| 79 |
- } |
|
| 80 |
- |
|
| 81 |
- public String getSearchCondition() {
|
|
| 82 |
- return searchCondition; |
|
| 45 |
+ public String getCtgryId() {
|
|
| 46 |
+ return ctgryId; |
|
| 83 | 47 |
} |
| 84 | 48 |
|
| 85 |
- public void setSearchCondition(String searchCondition) {
|
|
| 86 |
- this.searchCondition = searchCondition; |
|
| 49 |
+ public void setCtgryId(String ctgryId) {
|
|
| 50 |
+ this.ctgryId = ctgryId; |
|
| 87 | 51 |
} |
| 88 | 52 |
|
| 89 |
- public String getSearchKeyword() {
|
|
| 90 |
- return searchKeyword; |
|
| 53 |
+ public String getCtgrymasterId() {
|
|
| 54 |
+ return ctgrymasterId; |
|
| 91 | 55 |
} |
| 92 | 56 |
|
| 93 |
- public void setSearchKeyword(String searchKeyword) {
|
|
| 94 |
- this.searchKeyword = searchKeyword; |
|
| 57 |
+ public void setCtgrymasterId(String ctgrymasterId) {
|
|
| 58 |
+ this.ctgrymasterId = ctgrymasterId; |
|
| 95 | 59 |
} |
| 96 | 60 |
|
| 97 |
- public String getSearchUseYn() {
|
|
| 98 |
- return searchUseYn; |
|
| 61 |
+ public String getUpperCtgryId() {
|
|
| 62 |
+ return upperCtgryId; |
|
| 99 | 63 |
} |
| 100 | 64 |
|
| 101 |
- public void setSearchUseYn(String searchUseYn) {
|
|
| 102 |
- this.searchUseYn = searchUseYn; |
|
| 65 |
+ public void setUpperCtgryId(String upperCtgryId) {
|
|
| 66 |
+ this.upperCtgryId = upperCtgryId; |
|
| 103 | 67 |
} |
| 104 | 68 |
|
| 105 |
- public String getSearchTarget() {
|
|
| 106 |
- return searchTarget; |
|
| 107 |
- } |
|
| 108 |
- |
|
| 109 |
- public void setSearchTarget(String searchTarget) {
|
|
| 110 |
- this.searchTarget = searchTarget; |
|
| 111 |
- } |
|
| 112 |
- |
|
| 113 |
- public String getSortTyCode() {
|
|
| 114 |
- return sortTyCode; |
|
| 115 |
- } |
|
| 116 |
- |
|
| 117 |
- public void setSortTyCode(String sortTyCode) {
|
|
| 118 |
- this.sortTyCode = sortTyCode; |
|
| 119 |
- } |
|
| 120 |
- |
|
| 121 |
- public int getPageIndex() {
|
|
| 122 |
- return pageIndex; |
|
| 69 |
+ public String getCtgryNm() {
|
|
| 70 |
+ return ctgryNm; |
|
| 123 | 71 |
} |
| 124 | 72 |
|
| 125 |
- public void setPageIndex(int pageIndex) {
|
|
| 126 |
- this.pageIndex = pageIndex; |
|
| 73 |
+ public void setCtgryNm(String ctgryNm) {
|
|
| 74 |
+ this.ctgryNm = ctgryNm; |
|
| 127 | 75 |
} |
| 128 | 76 |
|
| 129 |
- public int getPageUnit() {
|
|
| 130 |
- return pageUnit; |
|
| 77 |
+ public String getCtgryCn() {
|
|
| 78 |
+ return ctgryCn; |
|
| 131 | 79 |
} |
| 132 | 80 |
|
| 133 |
- public void setPageUnit(int pageUnit) {
|
|
| 134 |
- this.pageUnit = pageUnit; |
|
| 81 |
+ public void setCtgryCn(String ctgryCn) {
|
|
| 82 |
+ this.ctgryCn = ctgryCn; |
|
| 135 | 83 |
} |
| 136 | 84 |
|
| 137 |
- public int getPageSize() {
|
|
| 138 |
- return pageSize; |
|
| 85 |
+ public String getCtgryVal() {
|
|
| 86 |
+ return ctgryVal; |
|
| 139 | 87 |
} |
| 140 | 88 |
|
| 141 |
- public void setPageSize(int pageSize) {
|
|
| 142 |
- this.pageSize = pageSize; |
|
| 89 |
+ public void setCtgryVal(String ctgryVal) {
|
|
| 90 |
+ this.ctgryVal = ctgryVal; |
|
| 143 | 91 |
} |
| 144 | 92 |
|
| 145 |
- public String toString() {
|
|
| 146 |
- return ToStringBuilder.reflectionToString(this); |
|
| 93 |
+ @Override |
|
| 94 |
+ public int getSortOrdr() {
|
|
| 95 |
+ return sortOrdr; |
|
| 147 | 96 |
} |
| 148 | 97 |
|
| 98 |
+ @Override |
|
| 99 |
+ public void setSortOrdr(int sortOrdr) {
|
|
| 100 |
+ this.sortOrdr = sortOrdr; |
|
| 101 |
+ } |
|
| 102 |
+ |
|
| 103 |
+ public String getCtgryPathByName() {
|
|
| 104 |
+ return ctgryPathByName; |
|
| 105 |
+ } |
|
| 106 |
+ |
|
| 107 |
+ public void setCtgryPathByName(String ctgryPathByName) {
|
|
| 108 |
+ this.ctgryPathByName = ctgryPathByName; |
|
| 109 |
+ } |
|
| 110 |
+ |
|
| 111 |
+ public String getCtgryPathById() {
|
|
| 112 |
+ return ctgryPathById; |
|
| 113 |
+ } |
|
| 114 |
+ |
|
| 115 |
+ public void setCtgryPathById(String ctgryPathById) {
|
|
| 116 |
+ this.ctgryPathById = ctgryPathById; |
|
| 117 |
+ } |
|
| 118 |
+ |
|
| 119 |
+ public int getCtgryLevel() {
|
|
| 120 |
+ return ctgryLevel; |
|
| 121 |
+ } |
|
| 122 |
+ |
|
| 123 |
+ public void setCtgryLevel(int ctgryLevel) {
|
|
| 124 |
+ this.ctgryLevel = ctgryLevel; |
|
| 125 |
+ } |
|
| 126 |
+ |
|
| 127 |
+ @Override |
|
| 128 |
+ public String getSortTyCode() {
|
|
| 129 |
+ return sortTyCode; |
|
| 130 |
+ } |
|
| 131 |
+ |
|
| 132 |
+ @Override |
|
| 133 |
+ public void setSortTyCode(String sortTyCode) {
|
|
| 134 |
+ this.sortTyCode = sortTyCode; |
|
| 135 |
+ } |
|
| 149 | 136 |
} |
--- base/src/main/java/egovframework/com/cop/bbs/service/EgovBBSCtgryMasterService.java
... | ... | @@ -1,33 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import egovframework.com.cop.bbs.service.CtgryMasterVO; | |
| 6 | -import egovframework.com.cop.bbs.service.CtgryMaster; | |
| 7 | - | |
| 8 | -//카테고리마스터 Service | |
| 9 | -public interface EgovBBSCtgryMasterService {
| |
| 10 | - | |
| 11 | - //COMTNBBSCTGRYMASTER을 등록한다. | |
| 12 | - String insertComtnbbsctgrymaster(CtgryMaster vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNBBSCTGRYMASTER을 수정한다. | |
| 15 | - void updateComtnbbsctgrymaster(CtgryMaster vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNBBSCTGRYMASTER을 삭제한다. | |
| 18 | - void deleteComtnbbsctgrymaster(CtgryMaster vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNBBSCTGRYMASTER을 조회한다. | |
| 21 | - CtgryMaster selectComtnbbsctgrymaster(CtgryMaster vo) throws Exception; | |
| 22 | - | |
| 23 | - //카테고리마스터Id검색 | |
| 24 | - CtgryMaster selectCtgrymasterId(CtgryMaster vo) throws Exception; | |
| 25 | - | |
| 26 | - //COMTNBBSCTGRYMASTER 목록을 조회한다. | |
| 27 | - List<CtgryMaster> selectComtnbbsctgrymasterList(CtgryMasterVO searchVO) throws Exception; | |
| 28 | - | |
| 29 | - //COMTNBBSCTGRYMASTER 총 갯수를 조회한다. | |
| 30 | - int selectComtnbbsctgrymasterListTotCnt(CtgryMasterVO searchVO); | |
| 31 | - | |
| 32 | - List<CtgryMaster> selectCtgrymasterList(CtgryMasterVO searchVO) throws Exception; | |
| 33 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/EgovBBSCtgryService.java
... | ... | @@ -1,85 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import egovframework.com.cop.bbs.service.CtgryVO; | |
| 5 | -import egovframework.com.cop.bbs.service.Ctgry; | |
| 6 | - | |
| 7 | -/** | |
| 8 | - * @Class Name : ComtnbbsctgryService.java | |
| 9 | - * @Description : Comtnbbsctgry Business class | |
| 10 | - * @Modification Information | |
| 11 | - * | |
| 12 | - * @author 정정욱 | |
| 13 | - * @since 20110907 | |
| 14 | - * @version 1.0 | |
| 15 | - * @see | |
| 16 | - * | |
| 17 | - * Copyright (C) All right reserved. | |
| 18 | - */ | |
| 19 | -public interface EgovBBSCtgryService {
| |
| 20 | - | |
| 21 | - /** | |
| 22 | - * COMTNBBSCTGRY을 등록한다. | |
| 23 | - * @param vo - 등록할 정보가 담긴 ComtnbbsctgryVO | |
| 24 | - * @return 등록 결과 | |
| 25 | - * @exception Exception | |
| 26 | - */ | |
| 27 | - String insertComtnbbsctgry(Ctgry vo) throws Exception; | |
| 28 | - | |
| 29 | - /** | |
| 30 | - * COMTNBBSCTGRY을 수정한다. | |
| 31 | - * @param vo - 수정할 정보가 담긴 ComtnbbsctgryVO | |
| 32 | - * @return void형 | |
| 33 | - * @exception Exception | |
| 34 | - */ | |
| 35 | - void updateComtnbbsctgry(Ctgry vo) throws Exception; | |
| 36 | - | |
| 37 | - /** | |
| 38 | - * COMTNBBSCTGRY을 삭제한다. | |
| 39 | - * @param vo - 삭제할 정보가 담긴 ComtnbbsctgryVO | |
| 40 | - * @return void형 | |
| 41 | - * @exception Exception | |
| 42 | - */ | |
| 43 | - void deleteComtnbbsctgry(Ctgry vo) throws Exception; | |
| 44 | - | |
| 45 | - /** | |
| 46 | - * COMTNBBSCTGRY을 조회한다. | |
| 47 | - * @param vo - 조회할 정보가 담긴 ComtnbbsctgryVO | |
| 48 | - * @return 조회한 COMTNBBSCTGRY | |
| 49 | - * @exception Exception | |
| 50 | - */ | |
| 51 | - Ctgry selectComtnbbsctgry(Ctgry vo) throws Exception; | |
| 52 | - | |
| 53 | - /** | |
| 54 | - * COMTNBBSCTGRY 목록을 조회한다. | |
| 55 | - * @param searchVO - 조회할 정보가 담긴 VO | |
| 56 | - * @return COMTNBBSCTGRY 목록 | |
| 57 | - * @exception Exception | |
| 58 | - */ | |
| 59 | - List<Ctgry> selectComtnbbsctgryList(CtgryVO searchVO) throws Exception; | |
| 60 | - | |
| 61 | - /** | |
| 62 | - * COMTNBBSCTGRY 총 갯수를 조회한다. | |
| 63 | - * @param searchVO - 조회할 정보가 담긴 VO | |
| 64 | - * @return COMTNBBSCTGRY 총 갯수 | |
| 65 | - * @exception | |
| 66 | - */ | |
| 67 | - int selectComtnbbsctgryListTotCnt(CtgryVO searchVO); | |
| 68 | - | |
| 69 | - /** | |
| 70 | - * COMTNBBSCTGRY DEPTH를 조회한다. | |
| 71 | - * @param searchMap - 조회할 정보가 담긴 Map | |
| 72 | - * @return COMTNBBSCTGRY 총 갯수 | |
| 73 | - * @exception | |
| 74 | - */ | |
| 75 | - public int selectComtnbbsctgryLevel(CtgryVO searchVO); | |
| 76 | - | |
| 77 | - /** | |
| 78 | - * 정렬순서를 수정한다. | |
| 79 | - * | |
| 80 | - * @param Ctgry | |
| 81 | - */ | |
| 82 | - public void updateSortOrdr(Ctgry vo) throws Exception; | |
| 83 | - | |
| 84 | - | |
| 85 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/EgovBBSAttributeManageServiceImpl.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSAttributeManageServiceImpl.java
... | ... | @@ -1,108 +1,108 @@ |
| 1 |
-package egovframework.com.cop.bbs.service.impl; |
|
| 2 |
- |
|
| 3 |
-import java.util.HashMap; |
|
| 4 |
-import java.util.List; |
|
| 5 |
-import java.util.Map; |
|
| 6 |
- |
|
| 7 |
-import javax.annotation.Resource; |
|
| 8 |
- |
|
| 9 |
-import egovframework.com.cop.com.service.BoardUseInfVO; |
|
| 10 |
-import egovframework.com.cop.com.service.impl.BBSUseInfoManageMapper; |
|
| 11 |
-import org.springframework.stereotype.Service; |
|
| 12 |
- |
|
| 13 |
-import egovframework.com.cop.bbs.service.BoardMasterVO; |
|
| 14 |
-import egovframework.com.cop.bbs.service.EgovBBSAttributeManageService; |
|
| 15 |
-import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 16 |
-import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
|
| 17 |
- |
|
| 18 |
-//게시판 속성관리를 위한 서비스 구현 클래스 |
|
| 19 |
-@Service("bbsAttributeManageService")
|
|
| 20 |
-public class EgovBBSAttributeManageServiceImpl extends EgovAbstractServiceImpl implements EgovBBSAttributeManageService {
|
|
| 21 |
- |
|
| 22 |
- |
|
| 23 |
- @Resource(name = "bbsAttributeManageMapper") |
|
| 24 |
- private BBSAttributeManageMapper attrbMngMapper; |
|
| 25 |
- |
|
| 26 |
- @Resource(name = "bbsUseInfoManageMapper") |
|
| 27 |
- private BBSUseInfoManageMapper bbsUseInfoManageMapper; |
|
| 28 |
- |
|
| 29 |
- @Resource(name = "egovBBSMstrIdGnrService") |
|
| 30 |
- private EgovIdGnrService idgenService; |
|
| 31 |
- |
|
| 32 |
- |
|
| 33 |
- //등록된 게시판 속성정보를 삭제한다. |
|
| 34 |
- public void deleteBBSMasterInf(BoardMasterVO boardMaster) throws Exception {
|
|
| 35 |
- attrbMngMapper.deleteBBSMasterInf(boardMaster); |
|
| 36 |
- |
|
| 37 |
- BoardUseInfVO bdUseInf = new BoardUseInfVO(); |
|
| 38 |
- bdUseInf.setBbsId(boardMaster.getBbsId()); |
|
| 39 |
- bdUseInf.setLastUpdusrId(boardMaster.getLastUpdusrId()); |
|
| 40 |
- bbsUseInfoManageMapper.deleteBBSUseInfByBoardId(bdUseInf); |
|
| 41 |
- } |
|
| 42 |
- |
|
| 43 |
- //신규 게시판 속성정보를 생성한다. |
|
| 44 |
- public String insertBBSMastetInf(BoardMasterVO boardMaster) throws Exception {
|
|
| 45 |
- String bbsId = idgenService.getNextStringId(); |
|
| 46 |
- |
|
| 47 |
- boardMaster.setBbsId(bbsId); |
|
| 48 |
- attrbMngMapper.insertBBSMasterInf(boardMaster); |
|
| 49 |
- |
|
| 50 |
- BoardUseInfVO bdUseInf = new BoardUseInfVO(); |
|
| 51 |
- bdUseInf.setBbsId(bbsId); |
|
| 52 |
- bdUseInf.setTrgetId(boardMaster.getTrgetId()); |
|
| 53 |
- bdUseInf.setRegistSeCode(boardMaster.getRegistSeCode()); |
|
| 54 |
- bdUseInf.setFrstRegisterId(boardMaster.getFrstRegisterId()); |
|
| 55 |
- bdUseInf.setUseAt("Y");
|
|
| 56 |
- bbsUseInfoManageMapper.insertBBSUseInf(bdUseInf); |
|
| 57 |
- |
|
| 58 |
- return bbsId; |
|
| 59 |
- } |
|
| 60 |
- |
|
| 61 |
- //게시판 속성 정보의 목록을 조회 한다. |
|
| 62 |
- public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception {
|
|
| 63 |
- return attrbMngMapper.selectAllBBSMasteInf(vo); |
|
| 64 |
- } |
|
| 65 |
- |
|
| 66 |
- //게시판 속성정보 한 건을 상세조회한다. |
|
| 67 |
- public BoardMasterVO selectBBSMasterInf(BoardMasterVO searchVO) throws Exception {
|
|
| 68 |
- |
|
| 69 |
- BoardMasterVO result = attrbMngMapper.selectBBSMasterInf(searchVO); |
|
| 70 |
- |
|
| 71 |
- return result; |
|
| 72 |
- } |
|
| 73 |
- |
|
| 74 |
- |
|
| 75 |
- //게시판 속성 정보의 목록을 조회 한다. |
|
| 76 |
- public Map<String, Object> selectBBSMasterInfs(BoardMasterVO searchVO) throws Exception {
|
|
| 77 |
- List<BoardMasterVO> result = attrbMngMapper.selectBBSMasterInfs(searchVO); |
|
| 78 |
- int cnt = attrbMngMapper.selectBBSMasterInfsCnt(searchVO); |
|
| 79 |
- |
|
| 80 |
- Map<String, Object> map = new HashMap<String, Object>(); |
|
| 81 |
- |
|
| 82 |
- map.put("resultList", result);
|
|
| 83 |
- map.put("resultCnt", Integer.toString(cnt));
|
|
| 84 |
- |
|
| 85 |
- return map; |
|
| 86 |
- } |
|
| 87 |
- |
|
| 88 |
- //게시판 속성 정보의 전체 목록을 조회 한다. |
|
| 89 |
- public List<BoardMasterVO> selectBBSMasterList(BoardMasterVO searchVO) throws Exception {
|
|
| 90 |
- return attrbMngMapper.selectBBSMasterInfs(searchVO); |
|
| 91 |
- } |
|
| 92 |
- |
|
| 93 |
- //게시판 속성정보를 수정한다. |
|
| 94 |
- public void updateBBSMasterInf(BoardMasterVO boardMaster) throws Exception {
|
|
| 95 |
- attrbMngMapper.updateBBSMasterInf(boardMaster); |
|
| 96 |
- } |
|
| 97 |
- |
|
| 98 |
- //사용등록이 된 게시판 목록 전체를 불러온다. |
|
| 99 |
- public List<BoardMasterVO> selectAllBBSMasterManageInfs(BoardMasterVO vo) throws Exception {
|
|
| 100 |
- return attrbMngMapper.selectAllBBSMasterManageInfs(vo); |
|
| 101 |
- } |
|
| 102 |
- |
|
| 103 |
- //사용등록이 된 게시판 목록 숫자를 조회한다 |
|
| 104 |
- public int selectAllBBSMasterManageInfsCnt(BoardMasterVO vo) throws Exception {
|
|
| 105 |
- return attrbMngMapper.selectAllBBSMasterManageInfsCnt(vo); |
|
| 106 |
- } |
|
| 107 |
- |
|
| 108 |
-} |
|
| 1 |
+package egovframework.com.cop.bbs.service.impl; |
|
| 2 |
+ |
|
| 3 |
+import java.util.HashMap; |
|
| 4 |
+import java.util.List; |
|
| 5 |
+import java.util.Map; |
|
| 6 |
+ |
|
| 7 |
+import javax.annotation.Resource; |
|
| 8 |
+ |
|
| 9 |
+import egovframework.com.cop.com.service.BoardUseInfVO; |
|
| 10 |
+import egovframework.com.cop.com.service.impl.BBSUseInfoManageMapper; |
|
| 11 |
+import org.springframework.stereotype.Service; |
|
| 12 |
+ |
|
| 13 |
+import egovframework.com.cop.bbs.service.BoardMasterVO; |
|
| 14 |
+import egovframework.com.cop.bbs.service.BBSAttributeManageService; |
|
| 15 |
+import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 16 |
+import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
|
| 17 |
+ |
|
| 18 |
+//게시판 속성관리를 위한 서비스 구현 클래스 |
|
| 19 |
+@Service("bbsAttributeManageService")
|
|
| 20 |
+public class BBSAttributeManageServiceImpl extends EgovAbstractServiceImpl implements BBSAttributeManageService {
|
|
| 21 |
+ |
|
| 22 |
+ |
|
| 23 |
+ @Resource(name = "bbsAttributeManageMapper") |
|
| 24 |
+ private BBSAttributeManageMapper attrbMngMapper; |
|
| 25 |
+ |
|
| 26 |
+ @Resource(name = "bbsUseInfoManageMapper") |
|
| 27 |
+ private BBSUseInfoManageMapper bbsUseInfoManageMapper; |
|
| 28 |
+ |
|
| 29 |
+ @Resource(name = "egovBBSMstrIdGnrService") |
|
| 30 |
+ private EgovIdGnrService idgenService; |
|
| 31 |
+ |
|
| 32 |
+ |
|
| 33 |
+ //등록된 게시판 속성정보를 삭제한다. |
|
| 34 |
+ public void deleteBBSMasterInf(BoardMasterVO boardMaster) throws Exception {
|
|
| 35 |
+ attrbMngMapper.deleteBBSMasterInf(boardMaster); |
|
| 36 |
+ |
|
| 37 |
+ BoardUseInfVO bdUseInf = new BoardUseInfVO(); |
|
| 38 |
+ bdUseInf.setBbsId(boardMaster.getBbsId()); |
|
| 39 |
+ bdUseInf.setLastUpdusrId(boardMaster.getLastUpdusrId()); |
|
| 40 |
+ bbsUseInfoManageMapper.deleteBBSUseInfByBoardId(bdUseInf); |
|
| 41 |
+ } |
|
| 42 |
+ |
|
| 43 |
+ //신규 게시판 속성정보를 생성한다. |
|
| 44 |
+ public String insertBBSMastetInf(BoardMasterVO boardMaster) throws Exception {
|
|
| 45 |
+ String bbsId = idgenService.getNextStringId(); |
|
| 46 |
+ |
|
| 47 |
+ boardMaster.setBbsId(bbsId); |
|
| 48 |
+ attrbMngMapper.insertBBSMasterInf(boardMaster); |
|
| 49 |
+ |
|
| 50 |
+ BoardUseInfVO bdUseInf = new BoardUseInfVO(); |
|
| 51 |
+ bdUseInf.setBbsId(bbsId); |
|
| 52 |
+ bdUseInf.setTrgetId(boardMaster.getTrgetId()); |
|
| 53 |
+ bdUseInf.setRegistSeCode(boardMaster.getRegistSeCode()); |
|
| 54 |
+ bdUseInf.setFrstRegisterId(boardMaster.getFrstRegisterId()); |
|
| 55 |
+ bdUseInf.setUseAt("Y");
|
|
| 56 |
+ bbsUseInfoManageMapper.insertBBSUseInf(bdUseInf); |
|
| 57 |
+ |
|
| 58 |
+ return bbsId; |
|
| 59 |
+ } |
|
| 60 |
+ |
|
| 61 |
+ //게시판 속성 정보의 목록을 조회 한다. |
|
| 62 |
+ public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception {
|
|
| 63 |
+ return attrbMngMapper.selectAllBBSMasteInf(vo); |
|
| 64 |
+ } |
|
| 65 |
+ |
|
| 66 |
+ //게시판 속성정보 한 건을 상세조회한다. |
|
| 67 |
+ public BoardMasterVO selectBBSMasterInf(BoardMasterVO searchVO) throws Exception {
|
|
| 68 |
+ |
|
| 69 |
+ BoardMasterVO result = attrbMngMapper.selectBBSMasterInf(searchVO); |
|
| 70 |
+ |
|
| 71 |
+ return result; |
|
| 72 |
+ } |
|
| 73 |
+ |
|
| 74 |
+ |
|
| 75 |
+ //게시판 속성 정보의 목록을 조회 한다. |
|
| 76 |
+ public Map<String, Object> selectBBSMasterInfs(BoardMasterVO searchVO) throws Exception {
|
|
| 77 |
+ List<BoardMasterVO> result = attrbMngMapper.selectBBSMasterInfs(searchVO); |
|
| 78 |
+ int cnt = attrbMngMapper.selectBBSMasterInfsCnt(searchVO); |
|
| 79 |
+ |
|
| 80 |
+ Map<String, Object> map = new HashMap<String, Object>(); |
|
| 81 |
+ |
|
| 82 |
+ map.put("resultList", result);
|
|
| 83 |
+ map.put("resultCnt", Integer.toString(cnt));
|
|
| 84 |
+ |
|
| 85 |
+ return map; |
|
| 86 |
+ } |
|
| 87 |
+ |
|
| 88 |
+ //게시판 속성 정보의 전체 목록을 조회 한다. |
|
| 89 |
+ public List<BoardMasterVO> selectBBSMasterList(BoardMasterVO searchVO) throws Exception {
|
|
| 90 |
+ return attrbMngMapper.selectBBSMasterInfs(searchVO); |
|
| 91 |
+ } |
|
| 92 |
+ |
|
| 93 |
+ //게시판 속성정보를 수정한다. |
|
| 94 |
+ public void updateBBSMasterInf(BoardMasterVO boardMaster) throws Exception {
|
|
| 95 |
+ attrbMngMapper.updateBBSMasterInf(boardMaster); |
|
| 96 |
+ } |
|
| 97 |
+ |
|
| 98 |
+ //사용등록이 된 게시판 목록 전체를 불러온다. |
|
| 99 |
+ public List<BoardMasterVO> selectAllBBSMasterManageInfs(BoardMasterVO vo) throws Exception {
|
|
| 100 |
+ return attrbMngMapper.selectAllBBSMasterManageInfs(vo); |
|
| 101 |
+ } |
|
| 102 |
+ |
|
| 103 |
+ //사용등록이 된 게시판 목록 숫자를 조회한다 |
|
| 104 |
+ public int selectAllBBSMasterManageInfsCnt(BoardMasterVO vo) throws Exception {
|
|
| 105 |
+ return attrbMngMapper.selectAllBBSMasterManageInfsCnt(vo); |
|
| 106 |
+ } |
|
| 107 |
+ |
|
| 108 |
+} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/EgovBBSCommentServiceImpl.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCommentServiceImpl.java
... | ... | @@ -1,216 +1,216 @@ |
| 1 |
-package egovframework.com.cop.bbs.service.impl; |
|
| 2 |
- |
|
| 3 |
-import java.math.BigDecimal; |
|
| 4 |
-import java.util.HashMap; |
|
| 5 |
-import java.util.List; |
|
| 6 |
-import java.util.Map; |
|
| 7 |
- |
|
| 8 |
-import javax.annotation.Resource; |
|
| 9 |
- |
|
| 10 |
-import org.springframework.stereotype.Service; |
|
| 11 |
- |
|
| 12 |
-import egovframework.com.cop.bbs.service.BoardVO; |
|
| 13 |
-import egovframework.com.cop.bbs.service.Comment; |
|
| 14 |
-import egovframework.com.cop.bbs.service.CommentVO; |
|
| 15 |
-import egovframework.com.cop.bbs.service.EgovBBSCommentService; |
|
| 16 |
-import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 17 |
-import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 18 |
-import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
|
| 19 |
- |
|
| 20 |
-/** |
|
| 21 |
- * 댓글관리를 위한 서비스 구현 클래스 |
|
| 22 |
- * @author 공통컴포넌트개발팀 한성곤 |
|
| 23 |
- * @since 2009.06.29 |
|
| 24 |
- * @version 1.0 |
|
| 25 |
- * @see |
|
| 26 |
- * |
|
| 27 |
- * <pre> |
|
| 28 |
- * << 개정이력(Modification Information) >> |
|
| 29 |
- * |
|
| 30 |
- * 수정일 수정자 수정내용 |
|
| 31 |
- * ------- -------- --------------------------- |
|
| 32 |
- * 2009.06.29 한성곤 최초 생성 |
|
| 33 |
- * |
|
| 34 |
- * </pre> |
|
| 35 |
- */ |
|
| 36 |
-@Service("EgovBBSCommentService")
|
|
| 37 |
-public class EgovBBSCommentServiceImpl extends EgovAbstractServiceImpl implements EgovBBSCommentService {
|
|
| 38 |
- |
|
| 39 |
- @Resource(name = "BBSCommentDAO") |
|
| 40 |
- private BBSCommentDAO bbsCommentDAO; |
|
| 41 |
- |
|
| 42 |
- @Resource(name = "egovBbsCommentNoGnrService") |
|
| 43 |
- private EgovIdGnrService idgenService; |
|
| 44 |
- |
|
| 45 |
- /** |
|
| 46 |
- * 댓글에 대한 목록을 조회 한다. |
|
| 47 |
- */ |
|
| 48 |
- public Map<String, Object> selectCommentList(CommentVO commentVO) throws Exception {
|
|
| 49 |
- List<CommentVO> result = bbsCommentDAO.selectCommentList(commentVO); |
|
| 50 |
- int cnt = bbsCommentDAO.selectCommentListCnt(commentVO); |
|
| 51 |
- |
|
| 52 |
- Map<String, Object> map = new HashMap<String, Object>(); |
|
| 53 |
- |
|
| 54 |
- map.put("resultList", result);
|
|
| 55 |
- map.put("resultCnt", Integer.toString(cnt));
|
|
| 56 |
- |
|
| 57 |
- return map; |
|
| 58 |
- } |
|
| 59 |
- |
|
| 60 |
- /** |
|
| 61 |
- * 댓글을 등록한다. |
|
| 62 |
- */ |
|
| 63 |
- public void insertComment(Comment comment) throws Exception {
|
|
| 64 |
- comment.setCommentNo(idgenService.getNextBigDecimalId()); |
|
| 65 |
- bbsCommentDAO.insertComment(comment); |
|
| 66 |
- |
|
| 67 |
- } |
|
| 68 |
- |
|
| 69 |
- /** |
|
| 70 |
- * 댓글의 댓글을 등록한다 |
|
| 71 |
- */ |
|
| 72 |
- public void insertReplyComment(CommentVO commentVO) throws Exception {
|
|
| 73 |
- commentVO.setCommentNo(idgenService.getNextBigDecimalId()); |
|
| 74 |
- commentVO.setPrntOrdrCode(commentVO.getOrdrCode()); |
|
| 75 |
- commentVO.setOrdrCodeDp(commentVO.getOrdrCodeDp() + 1); |
|
| 76 |
- bbsCommentDAO.insertReplyComment(commentVO); |
|
| 77 |
- } |
|
| 78 |
- |
|
| 79 |
- /** |
|
| 80 |
- * 댓글을 삭제한다. |
|
| 81 |
- */ |
|
| 82 |
- public void deleteComment(CommentVO commentVO) throws Exception {
|
|
| 83 |
- bbsCommentDAO.deleteComment(commentVO); |
|
| 84 |
- |
|
| 85 |
- } |
|
| 86 |
- |
|
| 87 |
- /** |
|
| 88 |
- * 모든 댓글을 삭제한다. |
|
| 89 |
- * |
|
| 90 |
- * @param commentVO |
|
| 91 |
- * @throws Exception |
|
| 92 |
- */ |
|
| 93 |
- public void deleteAllComment(CommentVO commentVO) throws Exception {
|
|
| 94 |
- bbsCommentDAO.deleteAllComment(commentVO); |
|
| 95 |
- } |
|
| 96 |
- |
|
| 97 |
- /** |
|
| 98 |
- * 댓글에 대한 내용을 조회한다. |
|
| 99 |
- */ |
|
| 100 |
- public Comment selectComment(CommentVO commentVO) throws Exception {
|
|
| 101 |
- return bbsCommentDAO.selectComment(commentVO); |
|
| 102 |
- } |
|
| 103 |
- |
|
| 104 |
- /** |
|
| 105 |
- * 댓글에 대한 내용을 수정한다. |
|
| 106 |
- */ |
|
| 107 |
- public void updateComment(Comment comment) throws Exception {
|
|
| 108 |
- bbsCommentDAO.updateComment(comment); |
|
| 109 |
- } |
|
| 110 |
- |
|
| 111 |
- /** |
|
| 112 |
- * 댓글 패스워드를 가져온다. |
|
| 113 |
- */ |
|
| 114 |
- public String getCommentPassword(Comment comment) throws Exception {
|
|
| 115 |
- return bbsCommentDAO.getCommentPassword(comment); |
|
| 116 |
- } |
|
| 117 |
- |
|
| 118 |
- /** |
|
| 119 |
- * 내가 작성한 댓글에 대한 목록 건수를 조회 한다. |
|
| 120 |
- * |
|
| 121 |
- * @param commentVO |
|
| 122 |
- * @return |
|
| 123 |
- * @throws Exception |
|
| 124 |
- */ |
|
| 125 |
- public int selectMyCommentListCnt(CommentVO commentVO) throws Exception {
|
|
| 126 |
- return bbsCommentDAO.selectMyCommentListCnt(commentVO); |
|
| 127 |
- } |
|
| 128 |
- |
|
| 129 |
- /** |
|
| 130 |
- * 관리용 댓글을 복사한다. |
|
| 131 |
- * |
|
| 132 |
- * @param board |
|
| 133 |
- * @throws Exception |
|
| 134 |
- */ |
|
| 135 |
- public void updateCommentManageCopy(List<String> nttNoArr, List<BoardVO> articleList) throws Exception {
|
|
| 136 |
- |
|
| 137 |
- CommentVO commentVO = new CommentVO(); |
|
| 138 |
- commentVO.setNttNoArr(nttNoArr); |
|
| 139 |
- |
|
| 140 |
- List<CommentVO> commentList = bbsCommentDAO.selectCommentManageCopyList(commentVO); |
|
| 141 |
- if(commentList != null && commentList.size() > 0) {
|
|
| 142 |
- commentList = updateNewCommentNoGen(commentList); |
|
| 143 |
- commentList = updateNewNttNo(commentList, articleList); |
|
| 144 |
- |
|
| 145 |
- bbsCommentDAO.insertCommentBatch(commentList); |
|
| 146 |
- } |
|
| 147 |
- } |
|
| 148 |
- |
|
| 149 |
- /** |
|
| 150 |
- * 게시물번호를 재배치한다. |
|
| 151 |
- * |
|
| 152 |
- * @param commentList |
|
| 153 |
- */ |
|
| 154 |
- public List<CommentVO> updateNewNttNo(List<CommentVO> commentList, List<BoardVO> articleList) throws Exception {
|
|
| 155 |
- |
|
| 156 |
- for(int i = 0; i < articleList.size(); i++) {
|
|
| 157 |
- updateNewNttNo(commentList, articleList.get(i).getOldNttNo(), articleList.get(i).getNttNo()); |
|
| 158 |
- } |
|
| 159 |
- |
|
| 160 |
- return commentList; |
|
| 161 |
- } |
|
| 162 |
- |
|
| 163 |
- /** |
|
| 164 |
- * 게시물번호를 재배치한다. |
|
| 165 |
- * |
|
| 166 |
- * @param commentList |
|
| 167 |
- * @param oldNttNo |
|
| 168 |
- * @param newNttNo |
|
| 169 |
- */ |
|
| 170 |
- public void updateNewNttNo(List<CommentVO> commentList, BigDecimal oldNttNo, BigDecimal newNttNo) throws Exception {
|
|
| 171 |
- |
|
| 172 |
- CommentVO comment = null; |
|
| 173 |
- for(int i = 0; i < commentList.size(); i++) {
|
|
| 174 |
- comment = commentList.get(i); |
|
| 175 |
- if(oldNttNo.equals(comment.getNttNo())) {
|
|
| 176 |
- comment.setNttNo(newNttNo); |
|
| 177 |
- } |
|
| 178 |
- } |
|
| 179 |
- } |
|
| 180 |
- |
|
| 181 |
- /** |
|
| 182 |
- * 댓글번호를 재배치한다. |
|
| 183 |
- * |
|
| 184 |
- * @param mpmList |
|
| 185 |
- */ |
|
| 186 |
- public List<CommentVO> updateNewCommentNoGen(List<CommentVO> commentList) throws Exception {
|
|
| 187 |
- |
|
| 188 |
- for(int i = 0; i < commentList.size(); i++) {
|
|
| 189 |
- updateNewCommentNoGen(commentList, commentList.get(i).getCommentNo(), idgenService.getNextBigDecimalId()); |
|
| 190 |
- } |
|
| 191 |
- |
|
| 192 |
- return commentList; |
|
| 193 |
- } |
|
| 194 |
- |
|
| 195 |
- /** |
|
| 196 |
- * 댓글번호를 재배치한다. |
|
| 197 |
- * |
|
| 198 |
- * @param mpmList |
|
| 199 |
- * @param oldMenuId |
|
| 200 |
- * @param newMenuId |
|
| 201 |
- */ |
|
| 202 |
- public void updateNewCommentNoGen(List<CommentVO> commentList, BigDecimal oldCommentNo, BigDecimal newCommentNo) throws Exception {
|
|
| 203 |
- |
|
| 204 |
- CommentVO comment = null; |
|
| 205 |
- String ordrCode = EgovStringUtil.lpad(oldCommentNo.toString(), 15, "0"); |
|
| 206 |
- for(int i = 0; i < commentList.size(); i++) {
|
|
| 207 |
- comment = commentList.get(i); |
|
| 208 |
- if(ordrCode.equals(comment.getOrdrCode().substring(0, 15))) {
|
|
| 209 |
- comment.setOrdrCode(EgovStringUtil.lpad(newCommentNo.toString(), 15, "0") + comment.getOrdrCode().substring(15)); |
|
| 210 |
- } |
|
| 211 |
- if(oldCommentNo.equals(comment.getCommentNo())) {
|
|
| 212 |
- comment.setCommentNo(newCommentNo); |
|
| 213 |
- } |
|
| 214 |
- } |
|
| 215 |
- } |
|
| 216 |
-} |
|
| 1 |
+package egovframework.com.cop.bbs.service.impl; |
|
| 2 |
+ |
|
| 3 |
+import java.math.BigDecimal; |
|
| 4 |
+import java.util.HashMap; |
|
| 5 |
+import java.util.List; |
|
| 6 |
+import java.util.Map; |
|
| 7 |
+ |
|
| 8 |
+import javax.annotation.Resource; |
|
| 9 |
+ |
|
| 10 |
+import org.springframework.stereotype.Service; |
|
| 11 |
+ |
|
| 12 |
+import egovframework.com.cop.bbs.service.BoardVO; |
|
| 13 |
+import egovframework.com.cop.bbs.service.Comment; |
|
| 14 |
+import egovframework.com.cop.bbs.service.CommentVO; |
|
| 15 |
+import egovframework.com.cop.bbs.service.BBSCommentService; |
|
| 16 |
+import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 17 |
+import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 18 |
+import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
|
| 19 |
+ |
|
| 20 |
+/** |
|
| 21 |
+ * 댓글관리를 위한 서비스 구현 클래스 |
|
| 22 |
+ * @author 공통컴포넌트개발팀 한성곤 |
|
| 23 |
+ * @since 2009.06.29 |
|
| 24 |
+ * @version 1.0 |
|
| 25 |
+ * @see |
|
| 26 |
+ * |
|
| 27 |
+ * <pre> |
|
| 28 |
+ * << 개정이력(Modification Information) >> |
|
| 29 |
+ * |
|
| 30 |
+ * 수정일 수정자 수정내용 |
|
| 31 |
+ * ------- -------- --------------------------- |
|
| 32 |
+ * 2009.06.29 한성곤 최초 생성 |
|
| 33 |
+ * |
|
| 34 |
+ * </pre> |
|
| 35 |
+ */ |
|
| 36 |
+@Service("EgovBBSCommentService")
|
|
| 37 |
+public class BBSCommentServiceImpl extends EgovAbstractServiceImpl implements BBSCommentService {
|
|
| 38 |
+ |
|
| 39 |
+ @Resource(name = "BBSCommentDAO") |
|
| 40 |
+ private BBSCommentDAO bbsCommentDAO; |
|
| 41 |
+ |
|
| 42 |
+ @Resource(name = "egovBbsCommentNoGnrService") |
|
| 43 |
+ private EgovIdGnrService idgenService; |
|
| 44 |
+ |
|
| 45 |
+ /** |
|
| 46 |
+ * 댓글에 대한 목록을 조회 한다. |
|
| 47 |
+ */ |
|
| 48 |
+ public Map<String, Object> selectCommentList(CommentVO commentVO) throws Exception {
|
|
| 49 |
+ List<CommentVO> result = bbsCommentDAO.selectCommentList(commentVO); |
|
| 50 |
+ int cnt = bbsCommentDAO.selectCommentListCnt(commentVO); |
|
| 51 |
+ |
|
| 52 |
+ Map<String, Object> map = new HashMap<String, Object>(); |
|
| 53 |
+ |
|
| 54 |
+ map.put("resultList", result);
|
|
| 55 |
+ map.put("resultCnt", Integer.toString(cnt));
|
|
| 56 |
+ |
|
| 57 |
+ return map; |
|
| 58 |
+ } |
|
| 59 |
+ |
|
| 60 |
+ /** |
|
| 61 |
+ * 댓글을 등록한다. |
|
| 62 |
+ */ |
|
| 63 |
+ public void insertComment(Comment comment) throws Exception {
|
|
| 64 |
+ comment.setCommentNo(idgenService.getNextBigDecimalId()); |
|
| 65 |
+ bbsCommentDAO.insertComment(comment); |
|
| 66 |
+ |
|
| 67 |
+ } |
|
| 68 |
+ |
|
| 69 |
+ /** |
|
| 70 |
+ * 댓글의 댓글을 등록한다 |
|
| 71 |
+ */ |
|
| 72 |
+ public void insertReplyComment(CommentVO commentVO) throws Exception {
|
|
| 73 |
+ commentVO.setCommentNo(idgenService.getNextBigDecimalId()); |
|
| 74 |
+ commentVO.setPrntOrdrCode(commentVO.getOrdrCode()); |
|
| 75 |
+ commentVO.setOrdrCodeDp(commentVO.getOrdrCodeDp() + 1); |
|
| 76 |
+ bbsCommentDAO.insertReplyComment(commentVO); |
|
| 77 |
+ } |
|
| 78 |
+ |
|
| 79 |
+ /** |
|
| 80 |
+ * 댓글을 삭제한다. |
|
| 81 |
+ */ |
|
| 82 |
+ public void deleteComment(CommentVO commentVO) throws Exception {
|
|
| 83 |
+ bbsCommentDAO.deleteComment(commentVO); |
|
| 84 |
+ |
|
| 85 |
+ } |
|
| 86 |
+ |
|
| 87 |
+ /** |
|
| 88 |
+ * 모든 댓글을 삭제한다. |
|
| 89 |
+ * |
|
| 90 |
+ * @param commentVO |
|
| 91 |
+ * @throws Exception |
|
| 92 |
+ */ |
|
| 93 |
+ public void deleteAllComment(CommentVO commentVO) throws Exception {
|
|
| 94 |
+ bbsCommentDAO.deleteAllComment(commentVO); |
|
| 95 |
+ } |
|
| 96 |
+ |
|
| 97 |
+ /** |
|
| 98 |
+ * 댓글에 대한 내용을 조회한다. |
|
| 99 |
+ */ |
|
| 100 |
+ public Comment selectComment(CommentVO commentVO) throws Exception {
|
|
| 101 |
+ return bbsCommentDAO.selectComment(commentVO); |
|
| 102 |
+ } |
|
| 103 |
+ |
|
| 104 |
+ /** |
|
| 105 |
+ * 댓글에 대한 내용을 수정한다. |
|
| 106 |
+ */ |
|
| 107 |
+ public void updateComment(Comment comment) throws Exception {
|
|
| 108 |
+ bbsCommentDAO.updateComment(comment); |
|
| 109 |
+ } |
|
| 110 |
+ |
|
| 111 |
+ /** |
|
| 112 |
+ * 댓글 패스워드를 가져온다. |
|
| 113 |
+ */ |
|
| 114 |
+ public String getCommentPassword(Comment comment) throws Exception {
|
|
| 115 |
+ return bbsCommentDAO.getCommentPassword(comment); |
|
| 116 |
+ } |
|
| 117 |
+ |
|
| 118 |
+ /** |
|
| 119 |
+ * 내가 작성한 댓글에 대한 목록 건수를 조회 한다. |
|
| 120 |
+ * |
|
| 121 |
+ * @param commentVO |
|
| 122 |
+ * @return |
|
| 123 |
+ * @throws Exception |
|
| 124 |
+ */ |
|
| 125 |
+ public int selectMyCommentListCnt(CommentVO commentVO) throws Exception {
|
|
| 126 |
+ return bbsCommentDAO.selectMyCommentListCnt(commentVO); |
|
| 127 |
+ } |
|
| 128 |
+ |
|
| 129 |
+ /** |
|
| 130 |
+ * 관리용 댓글을 복사한다. |
|
| 131 |
+ * |
|
| 132 |
+ * @param board |
|
| 133 |
+ * @throws Exception |
|
| 134 |
+ */ |
|
| 135 |
+ public void updateCommentManageCopy(List<String> nttNoArr, List<BoardVO> articleList) throws Exception {
|
|
| 136 |
+ |
|
| 137 |
+ CommentVO commentVO = new CommentVO(); |
|
| 138 |
+ commentVO.setNttNoArr(nttNoArr); |
|
| 139 |
+ |
|
| 140 |
+ List<CommentVO> commentList = bbsCommentDAO.selectCommentManageCopyList(commentVO); |
|
| 141 |
+ if(commentList != null && commentList.size() > 0) {
|
|
| 142 |
+ commentList = updateNewCommentNoGen(commentList); |
|
| 143 |
+ commentList = updateNewNttNo(commentList, articleList); |
|
| 144 |
+ |
|
| 145 |
+ bbsCommentDAO.insertCommentBatch(commentList); |
|
| 146 |
+ } |
|
| 147 |
+ } |
|
| 148 |
+ |
|
| 149 |
+ /** |
|
| 150 |
+ * 게시물번호를 재배치한다. |
|
| 151 |
+ * |
|
| 152 |
+ * @param commentList |
|
| 153 |
+ */ |
|
| 154 |
+ public List<CommentVO> updateNewNttNo(List<CommentVO> commentList, List<BoardVO> articleList) throws Exception {
|
|
| 155 |
+ |
|
| 156 |
+ for(int i = 0; i < articleList.size(); i++) {
|
|
| 157 |
+ updateNewNttNo(commentList, articleList.get(i).getOldNttNo(), articleList.get(i).getNttNo()); |
|
| 158 |
+ } |
|
| 159 |
+ |
|
| 160 |
+ return commentList; |
|
| 161 |
+ } |
|
| 162 |
+ |
|
| 163 |
+ /** |
|
| 164 |
+ * 게시물번호를 재배치한다. |
|
| 165 |
+ * |
|
| 166 |
+ * @param commentList |
|
| 167 |
+ * @param oldNttNo |
|
| 168 |
+ * @param newNttNo |
|
| 169 |
+ */ |
|
| 170 |
+ public void updateNewNttNo(List<CommentVO> commentList, BigDecimal oldNttNo, BigDecimal newNttNo) throws Exception {
|
|
| 171 |
+ |
|
| 172 |
+ CommentVO comment = null; |
|
| 173 |
+ for(int i = 0; i < commentList.size(); i++) {
|
|
| 174 |
+ comment = commentList.get(i); |
|
| 175 |
+ if(oldNttNo.equals(comment.getNttNo())) {
|
|
| 176 |
+ comment.setNttNo(newNttNo); |
|
| 177 |
+ } |
|
| 178 |
+ } |
|
| 179 |
+ } |
|
| 180 |
+ |
|
| 181 |
+ /** |
|
| 182 |
+ * 댓글번호를 재배치한다. |
|
| 183 |
+ * |
|
| 184 |
+ * @param mpmList |
|
| 185 |
+ */ |
|
| 186 |
+ public List<CommentVO> updateNewCommentNoGen(List<CommentVO> commentList) throws Exception {
|
|
| 187 |
+ |
|
| 188 |
+ for(int i = 0; i < commentList.size(); i++) {
|
|
| 189 |
+ updateNewCommentNoGen(commentList, commentList.get(i).getCommentNo(), idgenService.getNextBigDecimalId()); |
|
| 190 |
+ } |
|
| 191 |
+ |
|
| 192 |
+ return commentList; |
|
| 193 |
+ } |
|
| 194 |
+ |
|
| 195 |
+ /** |
|
| 196 |
+ * 댓글번호를 재배치한다. |
|
| 197 |
+ * |
|
| 198 |
+ * @param mpmList |
|
| 199 |
+ * @param oldMenuId |
|
| 200 |
+ * @param newMenuId |
|
| 201 |
+ */ |
|
| 202 |
+ public void updateNewCommentNoGen(List<CommentVO> commentList, BigDecimal oldCommentNo, BigDecimal newCommentNo) throws Exception {
|
|
| 203 |
+ |
|
| 204 |
+ CommentVO comment = null; |
|
| 205 |
+ String ordrCode = EgovStringUtil.lpad(oldCommentNo.toString(), 15, "0"); |
|
| 206 |
+ for(int i = 0; i < commentList.size(); i++) {
|
|
| 207 |
+ comment = commentList.get(i); |
|
| 208 |
+ if(ordrCode.equals(comment.getOrdrCode().substring(0, 15))) {
|
|
| 209 |
+ comment.setOrdrCode(EgovStringUtil.lpad(newCommentNo.toString(), 15, "0") + comment.getOrdrCode().substring(15)); |
|
| 210 |
+ } |
|
| 211 |
+ if(oldCommentNo.equals(comment.getCommentNo())) {
|
|
| 212 |
+ comment.setCommentNo(newCommentNo); |
|
| 213 |
+ } |
|
| 214 |
+ } |
|
| 215 |
+ } |
|
| 216 |
+} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCtgryDAO.java
... | ... | @@ -1,131 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import org.springframework.stereotype.Repository; | |
| 6 | - | |
| 7 | -import egovframework.rte.psl.dataaccess.EgovAbstractDAO; | |
| 8 | -import egovframework.com.cop.bbs.service.Ctgry; | |
| 9 | -import egovframework.com.cop.bbs.service.CtgryVO; | |
| 10 | - | |
| 11 | -/** | |
| 12 | - * @Class Name : ComtnbbsctgryDAO.java | |
| 13 | - * @Description : Comtnbbsctgry DAO Class | |
| 14 | - * @Modification Information | |
| 15 | - * | |
| 16 | - * @author 정정욱 | |
| 17 | - * @since 20110907 | |
| 18 | - * @version 1.0 | |
| 19 | - * @see | |
| 20 | - * | |
| 21 | - * Copyright (C) All right reserved. | |
| 22 | - */ | |
| 23 | - | |
| 24 | -@Repository("comtnbbsctgryDAO")
| |
| 25 | -public class BBSCtgryDAO extends EgovAbstractDAO {
| |
| 26 | - | |
| 27 | - /** | |
| 28 | - * COMTNBBSCTGRY을 등록한다. | |
| 29 | - * @param vo - 등록할 정보가 담긴 ComtnbbsctgryVO | |
| 30 | - * @return 등록 결과 | |
| 31 | - * @exception Exception | |
| 32 | - */ | |
| 33 | - public int insertComtnbbsctgry(Ctgry vo) throws Exception {
| |
| 34 | - return (Integer)insert("comtnbbsctgryDAO.insertComtnbbsctgry_S", vo);
| |
| 35 | - } | |
| 36 | - | |
| 37 | - /** | |
| 38 | - * COMTNBBSCTGRY을 수정한다. | |
| 39 | - * @param vo - 수정할 정보가 담긴 ComtnbbsctgryVO | |
| 40 | - * @return void형 | |
| 41 | - * @exception Exception | |
| 42 | - */ | |
| 43 | - public void updateComtnbbsctgry(Ctgry vo) throws Exception {
| |
| 44 | - update("comtnbbsctgryDAO.updateComtnbbsctgry_S", vo);
| |
| 45 | - } | |
| 46 | - | |
| 47 | - /** | |
| 48 | - * COMTNBBSCTGRY을 삭제한다. | |
| 49 | - * @param vo - 삭제할 정보가 담긴 ComtnbbsctgryVO | |
| 50 | - * @return void형 | |
| 51 | - * @exception Exception | |
| 52 | - */ | |
| 53 | - public void deleteComtnbbsctgry(Ctgry vo) throws Exception {
| |
| 54 | - delete("comtnbbsctgryDAO.deleteComtnbbsctgry_S", vo);
| |
| 55 | - } | |
| 56 | - | |
| 57 | - /** | |
| 58 | - * COMTNBBSCTGRY을 조회한다. | |
| 59 | - * @param vo - 조회할 정보가 담긴 ComtnbbsctgryVO | |
| 60 | - * @return 조회한 COMTNBBSCTGRY | |
| 61 | - * @exception Exception | |
| 62 | - */ | |
| 63 | - public Ctgry selectComtnbbsctgry(Ctgry vo) throws Exception {
| |
| 64 | - return (Ctgry) select("comtnbbsctgryDAO.selectComtnbbsctgry_S", vo);
| |
| 65 | - } | |
| 66 | - | |
| 67 | - /** | |
| 68 | - * COMTNBBSCTGRY 목록을 조회한다. | |
| 69 | - * @param searchMap - 조회할 정보가 담긴 Map | |
| 70 | - * @return COMTNBBSCTGRY 목록 | |
| 71 | - * @exception Exception | |
| 72 | - */ | |
| 73 | - @SuppressWarnings("unchecked")
| |
| 74 | - public List<Ctgry> selectComtnbbsctgryList(CtgryVO searchVO) throws Exception {
| |
| 75 | - return (List<Ctgry>)list("comtnbbsctgryDAO.selectComtnbbsctgryList_D", searchVO);
| |
| 76 | - } | |
| 77 | - | |
| 78 | - /** | |
| 79 | - * COMTNBBSCTGRY 총 갯수를 조회한다. | |
| 80 | - * @param searchMap - 조회할 정보가 담긴 Map | |
| 81 | - * @return COMTNBBSCTGRY 총 갯수 | |
| 82 | - * @exception | |
| 83 | - */ | |
| 84 | - public int selectComtnbbsctgryListTotCnt(CtgryVO searchVO) {
| |
| 85 | - return (Integer)select("comtnbbsctgryDAO.selectComtnbbsctgryListTotCnt_S", searchVO);
| |
| 86 | - } | |
| 87 | - | |
| 88 | - /** | |
| 89 | - * COMTNBBSCTGRY DEPTH를 조회한다. | |
| 90 | - * @param searchMap - 조회할 정보가 담긴 Map | |
| 91 | - * @return COMTNBBSCTGRY 총 갯수 | |
| 92 | - * @exception | |
| 93 | - */ | |
| 94 | - public int selectComtnbbsctgryLevel(CtgryVO searchVO) {
| |
| 95 | - return (Integer)select("comtnbbsctgryDAO.selectComtnbbsctgryLevel", searchVO);
| |
| 96 | - } | |
| 97 | - | |
| 98 | - /** | |
| 99 | - * 이동할 대상카테고리 정보를 조회 한다. | |
| 100 | - * | |
| 101 | - * @param searchVO | |
| 102 | - */ | |
| 103 | - public Ctgry selectTargetSortOrdr(CtgryVO searchVO) throws Exception {
| |
| 104 | - return (Ctgry)select("comtnbbsctgryDAO.selectTargetSortOrdr", searchVO);
| |
| 105 | - } | |
| 106 | - | |
| 107 | - /** | |
| 108 | - * 정렬순서를 수정한다. | |
| 109 | - * | |
| 110 | - * @param searchVO | |
| 111 | - */ | |
| 112 | - public void updateSortOrdr(CtgryVO searchVO) throws Exception {
| |
| 113 | - update("comtnbbsctgryDAO.updateSortOrdr", searchVO);
| |
| 114 | - } | |
| 115 | - | |
| 116 | - /** | |
| 117 | - * 정렬순서(다음&이전)를 수정한다. | |
| 118 | - * | |
| 119 | - * @param searchVO | |
| 120 | - */ | |
| 121 | - public void updateSiblingsSortOrdr(CtgryVO searchVO) throws Exception {
| |
| 122 | - update("comtnbbsctgryDAO.updateSiblingsSortOrdr", searchVO);
| |
| 123 | - } | |
| 124 | - | |
| 125 | - /** | |
| 126 | - * 카테고리 다음 레벨 값 | |
| 127 | - */ | |
| 128 | - public int selectComtnbbsctgryNextLevel(CtgryVO searchVO) {
| |
| 129 | - return (Integer)select("comtnbbsctgryDAO.selectComtnbbsctgryNextLevel", searchVO);
| |
| 130 | - } | |
| 131 | -} |
+++ base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCtgryMapper.java
... | ... | @@ -0,0 +1,46 @@ |
| 1 | +package egovframework.com.cop.bbs.service.impl; | |
| 2 | + | |
| 3 | +import egovframework.com.cop.bbs.service.CtgryMasterVO; | |
| 4 | +import egovframework.com.cop.bbs.service.CtgryVO; | |
| 5 | +import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 6 | + | |
| 7 | +import java.util.List; | |
| 8 | + | |
| 9 | +//카테고리 | |
| 10 | +@Mapper("bbsCtgryMapper") | |
| 11 | +public interface BBSCtgryMapper { | |
| 12 | + | |
| 13 | + //COMTNBBSCTGRY을 등록한다. 1 | |
| 14 | + public int insertComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 15 | + | |
| 16 | + //COMTNBBSCTGRY을 수정한다. 1 | |
| 17 | + public void updateComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 18 | + | |
| 19 | + //COMTNBBSCTGRY을 삭제한다. 1 | |
| 20 | + public void deleteComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 21 | + | |
| 22 | + //COMTNBBSCTGRY을 조회한다. 1 | |
| 23 | + public CtgryVO selectComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 24 | + | |
| 25 | + //COMTNBBSCTGRY 목록을 조회한다. 1 | |
| 26 | + public List<CtgryVO> selectComtnbbsctgryList(CtgryVO searchVO) throws Exception; | |
| 27 | + | |
| 28 | + //COMTNBBSCTGRY 총 갯수를 조회한다. 1 | |
| 29 | + public int selectComtnbbsctgryListTotCnt(CtgryVO searchVO); | |
| 30 | + | |
| 31 | + //COMTNBBSCTGRY DEPTH를 조회한다. 1 | |
| 32 | + public int selectComtnbbsctgryLevel(CtgryVO searchVO); | |
| 33 | + | |
| 34 | + //이동할 대상카테고리 정보를 조회 한다. 1 | |
| 35 | + public CtgryVO selectTargetSortOrdr(CtgryVO searchVO) throws Exception; | |
| 36 | + | |
| 37 | + //정렬순서를 수정한다. 1 | |
| 38 | + public void updateSortOrdr(CtgryVO searchVO) throws Exception; | |
| 39 | + | |
| 40 | + //정렬순서(다음&이전)를 수정한다. 1 | |
| 41 | + public void updateSiblingsSortOrdr(CtgryVO searchVO) throws Exception; | |
| 42 | + | |
| 43 | + //카테고리 다음 레벨 값 1 | |
| 44 | + public int selectComtnbbsctgryNextLevel(CtgryVO searchVO); | |
| 45 | + | |
| 46 | +} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCtgryMasterDAO.java
... | ... | @@ -1,98 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import org.springframework.stereotype.Repository; | |
| 6 | - | |
| 7 | -import egovframework.rte.psl.dataaccess.EgovAbstractDAO; | |
| 8 | -import egovframework.com.cop.bbs.service.CtgryMaster; | |
| 9 | -import egovframework.com.cop.bbs.service.CtgryMasterVO; | |
| 10 | - | |
| 11 | -/** | |
| 12 | - * @Class Name : ComtnbbsctgrymasterDAO.java | |
| 13 | - * @Description : Comtnbbsctgrymaster DAO Class | |
| 14 | - * @Modification Information | |
| 15 | - * | |
| 16 | - * @author 정정욱 | |
| 17 | - * @since 20110907 | |
| 18 | - * @version 1.0 | |
| 19 | - * @see | |
| 20 | - * | |
| 21 | - * Copyright (C) All right reserved. | |
| 22 | - */ | |
| 23 | - | |
| 24 | -@Repository("BBSCtgryMasterDAO")
| |
| 25 | -public class BBSCtgryMasterDAO extends EgovAbstractDAO {
| |
| 26 | - | |
| 27 | - /** | |
| 28 | - * COMTNBBSCTGRYMASTER을 등록한다. | |
| 29 | - * @param vo - 등록할 정보가 담긴 ComtnbbsctgrymasterVO | |
| 30 | - * @return 등록 결과 | |
| 31 | - * @exception Exception | |
| 32 | - */ | |
| 33 | - public String insertComtnbbsctgrymaster(CtgryMaster vo) throws Exception {
| |
| 34 | - return (String)insert("comtnbbsctgrymasterDAO.insertComtnbbsctgrymaster_S", vo);
| |
| 35 | - } | |
| 36 | - | |
| 37 | - /** | |
| 38 | - * COMTNBBSCTGRYMASTER을 수정한다. | |
| 39 | - * @param vo - 수정할 정보가 담긴 ComtnbbsctgrymasterVO | |
| 40 | - * @return void형 | |
| 41 | - * @exception Exception | |
| 42 | - */ | |
| 43 | - public void updateComtnbbsctgrymaster(CtgryMaster vo) throws Exception {
| |
| 44 | - update("comtnbbsctgrymasterDAO.updateComtnbbsctgrymaster_S", vo);
| |
| 45 | - } | |
| 46 | - | |
| 47 | - /** | |
| 48 | - * COMTNBBSCTGRYMASTER을 삭제한다. | |
| 49 | - * @param vo - 삭제할 정보가 담긴 ComtnbbsctgrymasterVO | |
| 50 | - * @return void형 | |
| 51 | - * @exception Exception | |
| 52 | - */ | |
| 53 | - public void deleteComtnbbsctgrymaster(CtgryMaster vo) throws Exception {
| |
| 54 | - delete("comtnbbsctgrymasterDAO.deleteComtnbbsctgrymaster_S", vo);
| |
| 55 | - } | |
| 56 | - | |
| 57 | - /** | |
| 58 | - * COMTNBBSCTGRYMASTER을 조회한다. | |
| 59 | - * @param vo - 조회할 정보가 담긴 ComtnbbsctgrymasterVO | |
| 60 | - * @return 조회한 COMTNBBSCTGRYMASTER | |
| 61 | - * @exception Exception | |
| 62 | - */ | |
| 63 | - public CtgryMaster selectComtnbbsctgrymaster(CtgryMaster vo) throws Exception {
| |
| 64 | - return (CtgryMaster) select("comtnbbsctgrymasterDAO.selectComtnbbsctgrymaster_S", vo);
| |
| 65 | - } | |
| 66 | - | |
| 67 | - //카테고리 마스터 Id검색 | |
| 68 | - public CtgryMaster selectCtgrymasterId(CtgryMaster vo) throws Exception {
| |
| 69 | - return (CtgryMaster) select("comtnbbsctgrymasterDAO.selectCtgrymasterId", vo);
| |
| 70 | - } | |
| 71 | - | |
| 72 | - /** | |
| 73 | - * COMTNBBSCTGRYMASTER 목록을 조회한다. | |
| 74 | - * @param searchMap - 조회할 정보가 담긴 Map | |
| 75 | - * @return COMTNBBSCTGRYMASTER 목록 | |
| 76 | - * @exception Exception | |
| 77 | - */ | |
| 78 | - @SuppressWarnings("unchecked")
| |
| 79 | - public List<CtgryMaster> selectComtnbbsctgrymasterList(CtgryMasterVO searchVO) throws Exception {
| |
| 80 | - return (List<CtgryMaster>)list("comtnbbsctgrymasterDAO.selectComtnbbsctgrymasterList_D", searchVO);
| |
| 81 | - } | |
| 82 | - | |
| 83 | - /** | |
| 84 | - * COMTNBBSCTGRYMASTER 총 갯수를 조회한다. | |
| 85 | - * @param searchMap - 조회할 정보가 담긴 Map | |
| 86 | - * @return COMTNBBSCTGRYMASTER 총 갯수 | |
| 87 | - * @exception | |
| 88 | - */ | |
| 89 | - public int selectComtnbbsctgrymasterListTotCnt(CtgryMasterVO searchVO) {
| |
| 90 | - return (Integer)select("comtnbbsctgrymasterDAO.selectComtnbbsctgrymasterListTotCnt_S", searchVO);
| |
| 91 | - } | |
| 92 | - | |
| 93 | - @SuppressWarnings("unchecked")
| |
| 94 | - public List<CtgryMaster> selectCtgrymasterList(CtgryMasterVO searchVO) throws Exception {
| |
| 95 | - return (List<CtgryMaster>)list("comtnbbsctgrymasterDAO.selectCtgrymasterList", searchVO);
| |
| 96 | - } | |
| 97 | - | |
| 98 | -} |
+++ base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCtgryMasterMapper.java
... | ... | @@ -0,0 +1,36 @@ |
| 1 | +package egovframework.com.cop.bbs.service.impl; | |
| 2 | + | |
| 3 | +import egovframework.com.cop.bbs.service.BoardMasterVO; | |
| 4 | +import egovframework.com.cop.bbs.service.CtgryMasterVO; | |
| 5 | +import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 6 | + | |
| 7 | +import java.util.List; | |
| 8 | + | |
| 9 | +//게시판 속성정보 관리를 위한 데이터 접근 클래스 | |
| 10 | +@Mapper("bbsCtgryMasterMapper") | |
| 11 | +public interface BBSCtgryMasterMapper { | |
| 12 | + | |
| 13 | + //COMTNBBSCTGRYMASTER을 등록한다. | |
| 14 | + public void insertComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 15 | + | |
| 16 | + //COMTNBBSCTGRYMASTER을 수정한다. | |
| 17 | + public void updateComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 18 | + | |
| 19 | + //COMTNBBSCTGRYMASTER을 삭제한다. | |
| 20 | + public void deleteComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 21 | + | |
| 22 | + //COMTNBBSCTGRYMASTER을 조회한다. | |
| 23 | + public CtgryMasterVO selectComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 24 | + | |
| 25 | + //카테고리 마스터 Id검색 | |
| 26 | + public CtgryMasterVO selectCtgrymasterId(CtgryMasterVO vo) throws Exception; | |
| 27 | + | |
| 28 | + //COMTNBBSCTGRYMASTER 목록을 조회한다. | |
| 29 | + public List<CtgryMasterVO> selectComtnbbsctgrymasterList(CtgryMasterVO searchVO) throws Exception; | |
| 30 | + | |
| 31 | + //COMTNBBSCTGRYMASTER 총 갯수를 조회한다. | |
| 32 | + public int selectComtnbbsctgrymasterListTotCnt(CtgryMasterVO searchVO); | |
| 33 | + | |
| 34 | + public List<CtgryMasterVO> selectCtgrymasterList(CtgryMasterVO searchVO) throws Exception; | |
| 35 | + | |
| 36 | +} |
+++ base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCtgryMasterServiceImpl.java
... | ... | @@ -0,0 +1,79 @@ |
| 1 | +package egovframework.com.cop.bbs.service.impl; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import javax.annotation.Resource; | |
| 6 | + | |
| 7 | +import egovframework.com.cop.bbs.service.*; | |
| 8 | +import org.springframework.stereotype.Service; | |
| 9 | + | |
| 10 | +import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 11 | +import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 12 | + | |
| 13 | + | |
| 14 | +@Service("bbsCtgryMasterService") | |
| 15 | +public class BBSCtgryMasterServiceImpl extends EgovAbstractServiceImpl implements BBSCtgryMasterService { | |
| 16 | + | |
| 17 | + @Resource(name="bbsCtgryMasterMapper") | |
| 18 | + private BBSCtgryMasterMapper bbsCtgryMasterMapper; | |
| 19 | + | |
| 20 | + @Resource(name = "bbsCtgryService") | |
| 21 | + private BBSCtgryService bbsCtgryService; | |
| 22 | + | |
| 23 | + /** ID Generation */ | |
| 24 | + @Resource(name="bbsCtgryMstrIdGnrService") | |
| 25 | + private EgovIdGnrService egovIdGnrService; | |
| 26 | + | |
| 27 | + //COMTNBBSCTGRYMASTER을 등록한다. | |
| 28 | + public String insertComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception { | |
| 29 | + /** ID Generation Service */ | |
| 30 | + String id = egovIdGnrService.getNextStringId(); | |
| 31 | + vo.setCtgrymasterId(id); | |
| 32 | + | |
| 33 | + bbsCtgryMasterMapper.insertComtnbbsctgrymaster(vo); | |
| 34 | + | |
| 35 | + CtgryVO ctgry = new CtgryVO(); | |
| 36 | + ctgry.setCtgrymasterId(id); | |
| 37 | + ctgry.setCtgryNm("대분류"); | |
| 38 | + bbsCtgryService.insertComtnbbsctgry(ctgry); | |
| 39 | + | |
| 40 | + return id; | |
| 41 | + } | |
| 42 | + | |
| 43 | + //COMTNBBSCTGRYMASTER을 수정한다. | |
| 44 | + public void updateComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception { | |
| 45 | + bbsCtgryMasterMapper.updateComtnbbsctgrymaster(vo); | |
| 46 | + } | |
| 47 | + | |
| 48 | + //COMTNBBSCTGRYMASTER을 삭제한다. | |
| 49 | + public void deleteComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception { | |
| 50 | + bbsCtgryMasterMapper.deleteComtnbbsctgrymaster(vo); | |
| 51 | + } | |
| 52 | + | |
| 53 | + //COMTNBBSCTGRYMASTER을 조회한다. | |
| 54 | + public CtgryMasterVO selectComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception { | |
| 55 | + CtgryMasterVO resultVO = bbsCtgryMasterMapper.selectComtnbbsctgrymaster(vo); | |
| 56 | + return resultVO; | |
| 57 | + } | |
| 58 | + | |
| 59 | + //카테고리마스터Id검색 | |
| 60 | + public CtgryMasterVO selectCtgrymasterId(CtgryMasterVO vo) throws Exception { | |
| 61 | + CtgryMasterVO resultVO = bbsCtgryMasterMapper.selectCtgrymasterId(vo); | |
| 62 | + return resultVO; | |
| 63 | + } | |
| 64 | + | |
| 65 | + //COMTNBBSCTGRYMASTER 목록을 조회한다. | |
| 66 | + public List<CtgryMasterVO> selectComtnbbsctgrymasterList(CtgryMasterVO searchVO) throws Exception { | |
| 67 | + return bbsCtgryMasterMapper.selectComtnbbsctgrymasterList(searchVO); | |
| 68 | + } | |
| 69 | + | |
| 70 | + //COMTNBBSCTGRYMASTER 총 갯수를 조회한다. | |
| 71 | + public int selectComtnbbsctgrymasterListTotCnt(CtgryMasterVO searchVO) { | |
| 72 | + return bbsCtgryMasterMapper.selectComtnbbsctgrymasterListTotCnt(searchVO); | |
| 73 | + } | |
| 74 | + | |
| 75 | + | |
| 76 | + public List<CtgryMasterVO> selectCtgrymasterList(CtgryMasterVO searchVO) throws Exception { | |
| 77 | + return bbsCtgryMasterMapper.selectCtgrymasterList(searchVO); | |
| 78 | + } | |
| 79 | +} |
+++ base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCtgryServiceImpl.java
... | ... | @@ -0,0 +1,99 @@ |
| 1 | +package egovframework.com.cop.bbs.service.impl; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import javax.annotation.Resource; | |
| 6 | + | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | + | |
| 9 | +import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | +import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | +import egovframework.com.cop.bbs.service.BBSCtgryService; | |
| 12 | +import egovframework.com.cop.bbs.service.CtgryVO; | |
| 13 | +import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 14 | + | |
| 15 | +//카테고리 | |
| 16 | +@Service("bbsCtgryService") | |
| 17 | +public class BBSCtgryServiceImpl extends EgovAbstractServiceImpl implements BBSCtgryService { | |
| 18 | + | |
| 19 | + @Resource(name="bbsCtgryMapper") | |
| 20 | + private BBSCtgryMapper bbsCtgryMapper; | |
| 21 | + | |
| 22 | + /** ID Generation */ | |
| 23 | + @Resource(name="egovBbsCtgryIdGnrService") | |
| 24 | + private EgovIdGnrService egovIdGnrService; | |
| 25 | + | |
| 26 | + //COMTNBBSCTGRY을 등록한다. | |
| 27 | + public String insertComtnbbsctgry(CtgryVO vo) throws Exception { | |
| 28 | + | |
| 29 | + /** ID Generation Service */ | |
| 30 | + String id = egovIdGnrService.getNextStringId(); | |
| 31 | + vo.setCtgryId(id); | |
| 32 | + | |
| 33 | + int ctgryLevel = 0; | |
| 34 | + if(!EgovStringUtil.isEmpty(vo.getUpperCtgryId())){ | |
| 35 | + ctgryLevel = bbsCtgryMapper.selectComtnbbsctgryNextLevel(vo); | |
| 36 | + } | |
| 37 | + | |
| 38 | + vo.setCtgryLevel(ctgryLevel); | |
| 39 | + bbsCtgryMapper.insertComtnbbsctgry(vo); | |
| 40 | + return null; | |
| 41 | + } | |
| 42 | + | |
| 43 | + //COMTNBBSCTGRY을 수정한다. | |
| 44 | + public void updateComtnbbsctgry(CtgryVO vo) throws Exception { | |
| 45 | + bbsCtgryMapper.updateComtnbbsctgry(vo); | |
| 46 | + } | |
| 47 | + | |
| 48 | + //COMTNBBSCTGRY을 삭제한다. | |
| 49 | + public void deleteComtnbbsctgry(CtgryVO vo) throws Exception { | |
| 50 | + bbsCtgryMapper.deleteComtnbbsctgry(vo); | |
| 51 | + } | |
| 52 | + | |
| 53 | + //COMTNBBSCTGRY을 조회한다. | |
| 54 | + public CtgryVO selectComtnbbsctgry(CtgryVO vo) throws Exception { | |
| 55 | + CtgryVO resultVO = bbsCtgryMapper.selectComtnbbsctgry(vo); | |
| 56 | + return resultVO; | |
| 57 | + } | |
| 58 | + | |
| 59 | + //COMTNBBSCTGRY 목록을 조회한다. | |
| 60 | + public List<CtgryVO> selectComtnbbsctgryList(CtgryVO searchVO) throws Exception { | |
| 61 | + return bbsCtgryMapper.selectComtnbbsctgryList(searchVO); | |
| 62 | + } | |
| 63 | + | |
| 64 | + //COMTNBBSCTGRY 총 갯수를 조회한다. | |
| 65 | + public int selectComtnbbsctgryListTotCnt(CtgryVO searchVO) { | |
| 66 | + return bbsCtgryMapper.selectComtnbbsctgryListTotCnt(searchVO); | |
| 67 | + } | |
| 68 | + | |
| 69 | + //COMTNBBSCTGRY DEPTH를 조회한다. | |
| 70 | + public int selectComtnbbsctgryLevel(CtgryVO searchVO) { | |
| 71 | + return bbsCtgryMapper.selectComtnbbsctgryLevel(searchVO); | |
| 72 | + } | |
| 73 | + | |
| 74 | + //정렬순서를 수정한다. | |
| 75 | + public void updateSortOrdr(CtgryVO vo) throws Exception { | |
| 76 | + //변경되야될 것 | |
| 77 | + bbsCtgryMapper.updateSortOrdr(vo); | |
| 78 | + | |
| 79 | + //다음 & 이전 꺼 | |
| 80 | + bbsCtgryMapper.updateSiblingsSortOrdr(vo); | |
| 81 | + /* | |
| 82 | + int sourceSortOrdr = vo.getSortOrdr(); | |
| 83 | + Ctgry targetCtgry = comtnbbsctgryDAO.selectTargetSortOrdr(vo); | |
| 84 | + | |
| 85 | + if(targetCtgry != null) { | |
| 86 | + vo.setSortOrdr(targetCtgry.getSortOrdr()); | |
| 87 | + comtnbbsctgryDAO.updateSortOrdr(vo); | |
| 88 | + | |
| 89 | + vo.setCtgryId(targetCtgry.getCtgryId()); | |
| 90 | + vo.setSortOrdr(sourceSortOrdr); | |
| 91 | + comtnbbsctgryDAO.updateSortOrdr(vo); | |
| 92 | + } | |
| 93 | + */ | |
| 94 | + } | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | +} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/EgovBBSManageServiceImpl.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSManageServiceImpl.java
... | ... | @@ -1,285 +1,285 @@ |
| 1 |
-package egovframework.com.cop.bbs.service.impl; |
|
| 2 |
- |
|
| 3 |
-import java.math.BigDecimal; |
|
| 4 |
-import java.util.List; |
|
| 5 |
- |
|
| 6 |
-import javax.annotation.Resource; |
|
| 7 |
- |
|
| 8 |
-import egovframework.com.cop.bbs.service.*; |
|
| 9 |
-import org.apache.log4j.Logger; |
|
| 10 |
-import org.springframework.stereotype.Service; |
|
| 11 |
- |
|
| 12 |
-import egovframework.com.cmm.service.EgovFileMngService; |
|
| 13 |
-import egovframework.com.cmm.service.FileVO; |
|
| 14 |
-import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 15 |
-import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 16 |
-import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
|
| 17 |
-import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 18 |
-import egovframework.rte.psl.dataaccess.util.EgovMap; |
|
| 19 |
- |
|
| 20 |
-//게시물 관리를 위한 서비스 구현 클래스 |
|
| 21 |
-@Service("EgovBBSManageService")
|
|
| 22 |
-public class EgovBBSManageServiceImpl extends EgovAbstractServiceImpl implements EgovBBSManageService {
|
|
| 23 |
- |
|
| 24 |
- @Resource(name = "BBSManageDAO") |
|
| 25 |
- private BBSManageDAO bbsMngDAO; |
|
| 26 |
- |
|
| 27 |
- @Resource(name = "EgovBBSCommentService") |
|
| 28 |
- protected EgovBBSCommentService bbsCommentService; |
|
| 29 |
- |
|
| 30 |
- @Resource(name = "EgovFileMngService") |
|
| 31 |
- private EgovFileMngService fileMngService; |
|
| 32 |
- |
|
| 33 |
- @Resource(name = "egovBbsNttNoGnrService") |
|
| 34 |
- private EgovIdGnrService idgenService; |
|
| 35 |
- |
|
| 36 |
- @Resource(name = "propertiesService") |
|
| 37 |
- protected EgovPropertyService propertyService; |
|
| 38 |
- |
|
| 39 |
- Logger log = Logger.getLogger(this.getClass()); |
|
| 40 |
- |
|
| 41 |
- //게시물 한 건을 삭제 한다. |
|
| 42 |
- public void deleteBoardArticle(BoardVO board, BoardMasterVO master) throws Exception {
|
|
| 43 |
- |
|
| 44 |
- if(master != null) {
|
|
| 45 |
- board.setBbsAttrbCode(master.getBbsAttrbCode()); |
|
| 46 |
- } |
|
| 47 |
- |
|
| 48 |
- FileVO fvo = new FileVO(); |
|
| 49 |
- |
|
| 50 |
- fvo.setAtchFileId(board.getAtchFileId()); |
|
| 51 |
- |
|
| 52 |
- //board.setNttSj("이 글은 작성자에 의해서 삭제되었습니다.");
|
|
| 53 |
- |
|
| 54 |
- bbsMngDAO.deleteBoardArticle(board); |
|
| 55 |
- |
|
| 56 |
- //if(!"".equals(fvo.getAtchFileId()) || fvo.getAtchFileId() != null) {
|
|
| 57 |
- // fileService.deleteAllFileInf(fvo); |
|
| 58 |
- //} |
|
| 59 |
- } |
|
| 60 |
- |
|
| 61 |
- //임시첨부파일을 정식으로 등록 한다. |
|
| 62 |
- public String insertFileInfsByTemp(BoardVO board) throws Exception {
|
|
| 63 |
- FileVO fvo = new FileVO(); |
|
| 64 |
- fvo.setAtchFileId(board.getAtchFileId()); |
|
| 65 |
- fvo.setFileGroupId(board.getFileGroupId()); |
|
| 66 |
- return fileMngService.insertFileInfsByTemp(fvo).getAtchFileId(); |
|
| 67 |
- } |
|
| 68 |
- |
|
| 69 |
- //게시판에 게시물을 등록 한다. |
|
| 70 |
- public void insertBoardArticle(BoardVO board, BoardMasterVO master) throws Exception {
|
|
| 71 |
- if(board.getNttNo() == null) {
|
|
| 72 |
- board.setNttNo(idgenService.getNextBigDecimalId()); |
|
| 73 |
- } |
|
| 74 |
- |
|
| 75 |
- if(master != null) {
|
|
| 76 |
- board.setBbsAttrbCode(master.getBbsAttrbCode()); |
|
| 77 |
- } |
|
| 78 |
- |
|
| 79 |
- board.setAtchFileId(this.insertFileInfsByTemp(board)); |
|
| 80 |
- |
|
| 81 |
- bbsMngDAO.insertBoardArticle(board); |
|
| 82 |
- |
|
| 83 |
- } |
|
| 84 |
- |
|
| 85 |
- //게시판에 답변 게시물을 등록 한다. |
|
| 86 |
- public void replyBoardArticle(BoardVO board, BoardMasterVO master) throws Exception {
|
|
| 87 |
- if(board.getNttNo() == null) {
|
|
| 88 |
- board.setNttNo(idgenService.getNextBigDecimalId()); |
|
| 89 |
- } |
|
| 90 |
- |
|
| 91 |
- if(master != null) {
|
|
| 92 |
- board.setBbsAttrbCode(master.getBbsAttrbCode()); |
|
| 93 |
- } |
|
| 94 |
- |
|
| 95 |
- board.setAtchFileId(this.insertFileInfsByTemp(board)); |
|
| 96 |
- |
|
| 97 |
- bbsMngDAO.replyBoardArticle(board); |
|
| 98 |
- |
|
| 99 |
- } |
|
| 100 |
- |
|
| 101 |
- //게시물 대하여 상세 내용을 조회 한다. |
|
| 102 |
- public BoardVO selectBoardArticle(BoardVO boardVO) throws Exception {
|
|
| 103 |
- if(boardVO.isPlusCount()) {
|
|
| 104 |
- bbsMngDAO.updateInqireCo(boardVO); |
|
| 105 |
- } |
|
| 106 |
- |
|
| 107 |
- BoardVO resultVO = bbsMngDAO.selectBoardArticle(boardVO); |
|
| 108 |
- |
|
| 109 |
- if (resultVO == null) |
|
| 110 |
- throw processException("info.nodata.msg");
|
|
| 111 |
- |
|
| 112 |
- |
|
| 113 |
- return resultVO; |
|
| 114 |
- } |
|
| 115 |
- |
|
| 116 |
- //조건에 맞는 게시물 목록을 조회 한다. |
|
| 117 |
- public List<BoardVO> selectBoardArticles(BoardVO boardVO) throws Exception {
|
|
| 118 |
- return bbsMngDAO.selectBoardArticleList(boardVO); |
|
| 119 |
- } |
|
| 120 |
- |
|
| 121 |
- //조건에 맞는 게시물 목록건수를 조회 한다. |
|
| 122 |
- public int selectBoardArticlesCnt(BoardVO boardVO) throws Exception {
|
|
| 123 |
- return bbsMngDAO.selectBoardArticleListCnt(boardVO); |
|
| 124 |
- } |
|
| 125 |
- |
|
| 126 |
- //게시물 한 건의 내용을 수정 한다. |
|
| 127 |
- public void updateBoardArticle(BoardVO board, BoardMasterVO master, boolean isEstn) throws Exception {
|
|
| 128 |
- if(master != null) {
|
|
| 129 |
- board.setBbsAttrbCode(master.getBbsAttrbCode()); |
|
| 130 |
- } |
|
| 131 |
- |
|
| 132 |
- String atchFileId = this.insertFileInfsByTemp(board); |
|
| 133 |
- if(isEstn) {
|
|
| 134 |
- board.setEstnAtchFileId(atchFileId); |
|
| 135 |
- } else {
|
|
| 136 |
- board.setAtchFileId(atchFileId); |
|
| 137 |
- } |
|
| 138 |
- |
|
| 139 |
- //bbsMngDAO.updateBoardArticle(board); |
|
| 140 |
- if(!"BBSA11".equals(board.getBbsAttrbCode())) {
|
|
| 141 |
- bbsMngDAO.updateBoardArticleByNormal(board); |
|
| 142 |
- } else {
|
|
| 143 |
- if(EgovStringUtil.isEmpty(board.getProcessSttusCode())) {
|
|
| 144 |
- bbsMngDAO.updateBoardArticleByEmptyProcessSttusCode(board); |
|
| 145 |
- } else {
|
|
| 146 |
- bbsMngDAO.updateBoardArticleByProcessSttusCode(board); |
|
| 147 |
- } |
|
| 148 |
- } |
|
| 149 |
- } |
|
| 150 |
- |
|
| 151 |
- //조건에 맞는 게시물 목록을 조회 한다. |
|
| 152 |
- public List<BoardVO> selectSearchBoardArticleList(BoardVO boardVO) throws Exception {
|
|
| 153 |
- return bbsMngDAO.selectSearchBoardArticleList(boardVO); |
|
| 154 |
- } |
|
| 155 |
- |
|
| 156 |
- //조건에 맞는 게시물 목록에 대한 전체 건수를 조회 한다. |
|
| 157 |
- public int selectSearchBoardArticleListCnt(BoardVO boardVO) throws Exception {
|
|
| 158 |
- return bbsMngDAO.selectSearchBoardArticleListCnt(boardVO); |
|
| 159 |
- } |
|
| 160 |
- |
|
| 161 |
- //관리용 게시물을 이동시킨다. |
|
| 162 |
- public void updateBoardArticlesManageMove(BoardVO board) throws Exception {
|
|
| 163 |
- bbsMngDAO.updateBoardArticlesManageMove(board); |
|
| 164 |
- } |
|
| 165 |
- |
|
| 166 |
- //관리용 게시물을 복사한다. |
|
| 167 |
- public void updateBoardArticlesManageCopy(BoardVO board) throws Exception {
|
|
| 168 |
- /* |
|
| 169 |
- List<BoardVO> articleList = bbsMngDAO.selectBoardArticlesManageCopyList(board); |
|
| 170 |
- if(articleList != null && articleList.size() > 0) {
|
|
| 171 |
- articleList = updateNewNttNoGen(articleList); |
|
| 172 |
- for(int i = 0; i < articleList.size(); i++) {
|
|
| 173 |
- articleList.get(i).setBbsId(board.getTrgetId()); |
|
| 174 |
- articleList.get(i).setCtgryId(board.getCtgryId()); |
|
| 175 |
- } |
|
| 176 |
- |
|
| 177 |
- articleList = fileMngService.updateFileManageCopy(articleList); |
|
| 178 |
- bbsMngDAO.insertBoardArticleBatch(articleList); |
|
| 179 |
- |
|
| 180 |
- bbsCommentService.updateCommentManageCopy(board.getNttNoArr(), articleList); |
|
| 181 |
- } |
|
| 182 |
- */ |
|
| 183 |
- } |
|
| 184 |
- |
|
| 185 |
- //게시물번호를 재배치한다. |
|
| 186 |
- public List<BoardVO> updateNewNttNoGen(List<BoardVO> articleList) throws Exception {
|
|
| 187 |
- /* |
|
| 188 |
- BoardVO article = null; |
|
| 189 |
- for(int i = 0; i < articleList.size(); i++) {
|
|
| 190 |
- article = articleList.get(i); |
|
| 191 |
- updateNewNttNoGen(articleList, article.getNttNo(), idgenService.getNextBigDecimalId()); |
|
| 192 |
- } |
|
| 193 |
- */ |
|
| 194 |
- return articleList; |
|
| 195 |
- |
|
| 196 |
- } |
|
| 197 |
- |
|
| 198 |
- //게시물번호를 재배치한다. |
|
| 199 |
- public void updateNewNttNoGen(List<BoardVO> articleList, BigDecimal oldNttNo, BigDecimal newNttNo) throws Exception {
|
|
| 200 |
- /* |
|
| 201 |
- BoardVO article = null; |
|
| 202 |
- String ordrCode = EgovStringUtil.lpad(oldNttNo.toString(), 15, "0"); |
|
| 203 |
- for(int i = 0; i < articleList.size(); i++) {
|
|
| 204 |
- article = articleList.get(i); |
|
| 205 |
- if(ordrCode.equals(article.getOrdrCode().substring(0, 15))) {
|
|
| 206 |
- article.setOrdrCode(EgovStringUtil.lpad(newNttNo.toString(), 15, "0") + article.getOrdrCode().substring(15)); |
|
| 207 |
- } |
|
| 208 |
- if(oldNttNo.equals(article.getNttNo())) {
|
|
| 209 |
- article.setNttNo(newNttNo); |
|
| 210 |
- article.setOldNttNo(oldNttNo); |
|
| 211 |
- } |
|
| 212 |
- } |
|
| 213 |
- */ |
|
| 214 |
- } |
|
| 215 |
- |
|
| 216 |
- //관리용 게시물을 삭제한다. |
|
| 217 |
- public void updateBoardArticlesManageHide(BoardVO board) throws Exception {
|
|
| 218 |
- bbsMngDAO.updateBoardArticlesManageHide(board); |
|
| 219 |
- } |
|
| 220 |
- |
|
| 221 |
- //게시물 한 건을 완전삭제 한다. |
|
| 222 |
- public void deleteCompleteBoardArticle(BoardVO board) throws Exception {
|
|
| 223 |
- List<BoardVO> articleList = bbsMngDAO.selectBoardArticlesManageSimpleList(board); |
|
| 224 |
- if(articleList != null && articleList.size() > 0) {
|
|
| 225 |
- //코멘트먼저 삭제 |
|
| 226 |
- CommentVO commentVO = new CommentVO(); |
|
| 227 |
- commentVO.setNttNoArr(board.getNttNoArr()); |
|
| 228 |
- bbsCommentService.deleteAllComment(commentVO); |
|
| 229 |
- //게시물삭제 |
|
| 230 |
- bbsMngDAO.deleteCompleteBoardArticle(board); |
|
| 231 |
- //파일 삭제 |
|
| 232 |
- BoardVO article = null; |
|
| 233 |
- for(int i = 0; i < articleList.size(); i++) {
|
|
| 234 |
- article = articleList.get(i); |
|
| 235 |
- if(!EgovStringUtil.isEmpty(article.getAtchFileId())) {
|
|
| 236 |
- fileMngService.deleteFileInfs(article.getAtchFileId()); |
|
| 237 |
- } |
|
| 238 |
- } |
|
| 239 |
- } |
|
| 240 |
- } |
|
| 241 |
- |
|
| 242 |
- //게시물 한 건을 복구 한다. |
|
| 243 |
- public void repairBoardArticle(BoardVO board) throws Exception {
|
|
| 244 |
- bbsMngDAO.repairBoardArticle(board); |
|
| 245 |
- } |
|
| 246 |
- |
|
| 247 |
- public List<EgovMap> selectBoardStatisticsPie(BoardVO boardVO) throws Exception {
|
|
| 248 |
- return this.bbsMngDAO.selectBoardStatisticsPie(boardVO); |
|
| 249 |
- } |
|
| 250 |
- |
|
| 251 |
- public EgovMap selectBoardStatisticsBar(BoardVO boardVO) throws Exception {
|
|
| 252 |
- return this.bbsMngDAO.selectBoardStatisticsBar(boardVO); |
|
| 253 |
- } |
|
| 254 |
- |
|
| 255 |
- public List<EgovMap> selectBoardStatisticsBarMemberList(BoardVO boardVO) throws Exception {
|
|
| 256 |
- return this.bbsMngDAO.selectBoardStatisticsBarMemberList(boardVO); |
|
| 257 |
- } |
|
| 258 |
- |
|
| 259 |
- public EgovMap selectStatistics(BoardVO boardVO) throws Exception {
|
|
| 260 |
- EgovMap resultMap = new EgovMap(); |
|
| 261 |
- List<?> StatisticsList = this.bbsMngDAO.selectStatisticsList(boardVO); |
|
| 262 |
- int StatisticsListCnt = this.bbsMngDAO.selectStatisticsListCnt(boardVO); |
|
| 263 |
- resultMap.put("resultList", StatisticsList);
|
|
| 264 |
- resultMap.put("resultCnt", StatisticsListCnt);
|
|
| 265 |
- return resultMap; |
|
| 266 |
- } |
|
| 267 |
- |
|
| 268 |
- public EgovMap selectAttendCollectCnt(BoardVO boardVO) throws Exception{
|
|
| 269 |
- return this.bbsMngDAO.selectAttendCollectCnt(boardVO); |
|
| 270 |
- } |
|
| 271 |
- |
|
| 272 |
- public EgovMap selectMemBoard(BoardVO boardVO) throws Exception {
|
|
| 273 |
- EgovMap resultMap = new EgovMap(); |
|
| 274 |
- List<?> resultList = this.bbsMngDAO.selectMemBoardList(boardVO); |
|
| 275 |
- int resultCnt = this.bbsMngDAO.selectMemBoardListCnt(boardVO); |
|
| 276 |
- resultMap.put("resultList", resultList);
|
|
| 277 |
- resultMap.put("resultCnt", resultCnt);
|
|
| 278 |
- return resultMap; |
|
| 279 |
- } |
|
| 280 |
- |
|
| 281 |
- public List<EgovMap> selectStaffMemBoardList(BoardVO boardVO) throws Exception {
|
|
| 282 |
- return this.bbsMngDAO.selectStaffMemBoardList(boardVO); |
|
| 283 |
- } |
|
| 284 |
- |
|
| 285 |
-} |
|
| 1 |
+package egovframework.com.cop.bbs.service.impl; |
|
| 2 |
+ |
|
| 3 |
+import java.math.BigDecimal; |
|
| 4 |
+import java.util.List; |
|
| 5 |
+ |
|
| 6 |
+import javax.annotation.Resource; |
|
| 7 |
+ |
|
| 8 |
+import egovframework.com.cop.bbs.service.*; |
|
| 9 |
+import org.apache.log4j.Logger; |
|
| 10 |
+import org.springframework.stereotype.Service; |
|
| 11 |
+ |
|
| 12 |
+import egovframework.com.cmm.service.EgovFileMngService; |
|
| 13 |
+import egovframework.com.cmm.service.FileVO; |
|
| 14 |
+import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 15 |
+import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 16 |
+import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
|
| 17 |
+import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 18 |
+import egovframework.rte.psl.dataaccess.util.EgovMap; |
|
| 19 |
+ |
|
| 20 |
+//게시물 관리를 위한 서비스 구현 클래스 |
|
| 21 |
+@Service("EgovBBSManageService")
|
|
| 22 |
+public class BBSManageServiceImpl extends EgovAbstractServiceImpl implements BBSManageService {
|
|
| 23 |
+ |
|
| 24 |
+ @Resource(name = "BBSManageDAO") |
|
| 25 |
+ private BBSManageDAO bbsMngDAO; |
|
| 26 |
+ |
|
| 27 |
+ @Resource(name = "EgovBBSCommentService") |
|
| 28 |
+ protected BBSCommentService bbsCommentService; |
|
| 29 |
+ |
|
| 30 |
+ @Resource(name = "EgovFileMngService") |
|
| 31 |
+ private EgovFileMngService fileMngService; |
|
| 32 |
+ |
|
| 33 |
+ @Resource(name = "egovBbsNttNoGnrService") |
|
| 34 |
+ private EgovIdGnrService idgenService; |
|
| 35 |
+ |
|
| 36 |
+ @Resource(name = "propertiesService") |
|
| 37 |
+ protected EgovPropertyService propertyService; |
|
| 38 |
+ |
|
| 39 |
+ Logger log = Logger.getLogger(this.getClass()); |
|
| 40 |
+ |
|
| 41 |
+ //게시물 한 건을 삭제 한다. |
|
| 42 |
+ public void deleteBoardArticle(BoardVO board, BoardMasterVO master) throws Exception {
|
|
| 43 |
+ |
|
| 44 |
+ if(master != null) {
|
|
| 45 |
+ board.setBbsAttrbCode(master.getBbsAttrbCode()); |
|
| 46 |
+ } |
|
| 47 |
+ |
|
| 48 |
+ FileVO fvo = new FileVO(); |
|
| 49 |
+ |
|
| 50 |
+ fvo.setAtchFileId(board.getAtchFileId()); |
|
| 51 |
+ |
|
| 52 |
+ //board.setNttSj("이 글은 작성자에 의해서 삭제되었습니다.");
|
|
| 53 |
+ |
|
| 54 |
+ bbsMngDAO.deleteBoardArticle(board); |
|
| 55 |
+ |
|
| 56 |
+ //if(!"".equals(fvo.getAtchFileId()) || fvo.getAtchFileId() != null) {
|
|
| 57 |
+ // fileService.deleteAllFileInf(fvo); |
|
| 58 |
+ //} |
|
| 59 |
+ } |
|
| 60 |
+ |
|
| 61 |
+ //임시첨부파일을 정식으로 등록 한다. |
|
| 62 |
+ public String insertFileInfsByTemp(BoardVO board) throws Exception {
|
|
| 63 |
+ FileVO fvo = new FileVO(); |
|
| 64 |
+ fvo.setAtchFileId(board.getAtchFileId()); |
|
| 65 |
+ fvo.setFileGroupId(board.getFileGroupId()); |
|
| 66 |
+ return fileMngService.insertFileInfsByTemp(fvo).getAtchFileId(); |
|
| 67 |
+ } |
|
| 68 |
+ |
|
| 69 |
+ //게시판에 게시물을 등록 한다. |
|
| 70 |
+ public void insertBoardArticle(BoardVO board, BoardMasterVO master) throws Exception {
|
|
| 71 |
+ if(board.getNttNo() == null) {
|
|
| 72 |
+ board.setNttNo(idgenService.getNextBigDecimalId()); |
|
| 73 |
+ } |
|
| 74 |
+ |
|
| 75 |
+ if(master != null) {
|
|
| 76 |
+ board.setBbsAttrbCode(master.getBbsAttrbCode()); |
|
| 77 |
+ } |
|
| 78 |
+ |
|
| 79 |
+ board.setAtchFileId(this.insertFileInfsByTemp(board)); |
|
| 80 |
+ |
|
| 81 |
+ bbsMngDAO.insertBoardArticle(board); |
|
| 82 |
+ |
|
| 83 |
+ } |
|
| 84 |
+ |
|
| 85 |
+ //게시판에 답변 게시물을 등록 한다. |
|
| 86 |
+ public void replyBoardArticle(BoardVO board, BoardMasterVO master) throws Exception {
|
|
| 87 |
+ if(board.getNttNo() == null) {
|
|
| 88 |
+ board.setNttNo(idgenService.getNextBigDecimalId()); |
|
| 89 |
+ } |
|
| 90 |
+ |
|
| 91 |
+ if(master != null) {
|
|
| 92 |
+ board.setBbsAttrbCode(master.getBbsAttrbCode()); |
|
| 93 |
+ } |
|
| 94 |
+ |
|
| 95 |
+ board.setAtchFileId(this.insertFileInfsByTemp(board)); |
|
| 96 |
+ |
|
| 97 |
+ bbsMngDAO.replyBoardArticle(board); |
|
| 98 |
+ |
|
| 99 |
+ } |
|
| 100 |
+ |
|
| 101 |
+ //게시물 대하여 상세 내용을 조회 한다. |
|
| 102 |
+ public BoardVO selectBoardArticle(BoardVO boardVO) throws Exception {
|
|
| 103 |
+ if(boardVO.isPlusCount()) {
|
|
| 104 |
+ bbsMngDAO.updateInqireCo(boardVO); |
|
| 105 |
+ } |
|
| 106 |
+ |
|
| 107 |
+ BoardVO resultVO = bbsMngDAO.selectBoardArticle(boardVO); |
|
| 108 |
+ |
|
| 109 |
+ if (resultVO == null) |
|
| 110 |
+ throw processException("info.nodata.msg");
|
|
| 111 |
+ |
|
| 112 |
+ |
|
| 113 |
+ return resultVO; |
|
| 114 |
+ } |
|
| 115 |
+ |
|
| 116 |
+ //조건에 맞는 게시물 목록을 조회 한다. |
|
| 117 |
+ public List<BoardVO> selectBoardArticles(BoardVO boardVO) throws Exception {
|
|
| 118 |
+ return bbsMngDAO.selectBoardArticleList(boardVO); |
|
| 119 |
+ } |
|
| 120 |
+ |
|
| 121 |
+ //조건에 맞는 게시물 목록건수를 조회 한다. |
|
| 122 |
+ public int selectBoardArticlesCnt(BoardVO boardVO) throws Exception {
|
|
| 123 |
+ return bbsMngDAO.selectBoardArticleListCnt(boardVO); |
|
| 124 |
+ } |
|
| 125 |
+ |
|
| 126 |
+ //게시물 한 건의 내용을 수정 한다. |
|
| 127 |
+ public void updateBoardArticle(BoardVO board, BoardMasterVO master, boolean isEstn) throws Exception {
|
|
| 128 |
+ if(master != null) {
|
|
| 129 |
+ board.setBbsAttrbCode(master.getBbsAttrbCode()); |
|
| 130 |
+ } |
|
| 131 |
+ |
|
| 132 |
+ String atchFileId = this.insertFileInfsByTemp(board); |
|
| 133 |
+ if(isEstn) {
|
|
| 134 |
+ board.setEstnAtchFileId(atchFileId); |
|
| 135 |
+ } else {
|
|
| 136 |
+ board.setAtchFileId(atchFileId); |
|
| 137 |
+ } |
|
| 138 |
+ |
|
| 139 |
+ //bbsMngDAO.updateBoardArticle(board); |
|
| 140 |
+ if(!"BBSA11".equals(board.getBbsAttrbCode())) {
|
|
| 141 |
+ bbsMngDAO.updateBoardArticleByNormal(board); |
|
| 142 |
+ } else {
|
|
| 143 |
+ if(EgovStringUtil.isEmpty(board.getProcessSttusCode())) {
|
|
| 144 |
+ bbsMngDAO.updateBoardArticleByEmptyProcessSttusCode(board); |
|
| 145 |
+ } else {
|
|
| 146 |
+ bbsMngDAO.updateBoardArticleByProcessSttusCode(board); |
|
| 147 |
+ } |
|
| 148 |
+ } |
|
| 149 |
+ } |
|
| 150 |
+ |
|
| 151 |
+ //조건에 맞는 게시물 목록을 조회 한다. |
|
| 152 |
+ public List<BoardVO> selectSearchBoardArticleList(BoardVO boardVO) throws Exception {
|
|
| 153 |
+ return bbsMngDAO.selectSearchBoardArticleList(boardVO); |
|
| 154 |
+ } |
|
| 155 |
+ |
|
| 156 |
+ //조건에 맞는 게시물 목록에 대한 전체 건수를 조회 한다. |
|
| 157 |
+ public int selectSearchBoardArticleListCnt(BoardVO boardVO) throws Exception {
|
|
| 158 |
+ return bbsMngDAO.selectSearchBoardArticleListCnt(boardVO); |
|
| 159 |
+ } |
|
| 160 |
+ |
|
| 161 |
+ //관리용 게시물을 이동시킨다. |
|
| 162 |
+ public void updateBoardArticlesManageMove(BoardVO board) throws Exception {
|
|
| 163 |
+ bbsMngDAO.updateBoardArticlesManageMove(board); |
|
| 164 |
+ } |
|
| 165 |
+ |
|
| 166 |
+ //관리용 게시물을 복사한다. |
|
| 167 |
+ public void updateBoardArticlesManageCopy(BoardVO board) throws Exception {
|
|
| 168 |
+ /* |
|
| 169 |
+ List<BoardVO> articleList = bbsMngDAO.selectBoardArticlesManageCopyList(board); |
|
| 170 |
+ if(articleList != null && articleList.size() > 0) {
|
|
| 171 |
+ articleList = updateNewNttNoGen(articleList); |
|
| 172 |
+ for(int i = 0; i < articleList.size(); i++) {
|
|
| 173 |
+ articleList.get(i).setBbsId(board.getTrgetId()); |
|
| 174 |
+ articleList.get(i).setCtgryId(board.getCtgryId()); |
|
| 175 |
+ } |
|
| 176 |
+ |
|
| 177 |
+ articleList = fileMngService.updateFileManageCopy(articleList); |
|
| 178 |
+ bbsMngDAO.insertBoardArticleBatch(articleList); |
|
| 179 |
+ |
|
| 180 |
+ bbsCommentService.updateCommentManageCopy(board.getNttNoArr(), articleList); |
|
| 181 |
+ } |
|
| 182 |
+ */ |
|
| 183 |
+ } |
|
| 184 |
+ |
|
| 185 |
+ //게시물번호를 재배치한다. |
|
| 186 |
+ public List<BoardVO> updateNewNttNoGen(List<BoardVO> articleList) throws Exception {
|
|
| 187 |
+ /* |
|
| 188 |
+ BoardVO article = null; |
|
| 189 |
+ for(int i = 0; i < articleList.size(); i++) {
|
|
| 190 |
+ article = articleList.get(i); |
|
| 191 |
+ updateNewNttNoGen(articleList, article.getNttNo(), idgenService.getNextBigDecimalId()); |
|
| 192 |
+ } |
|
| 193 |
+ */ |
|
| 194 |
+ return articleList; |
|
| 195 |
+ |
|
| 196 |
+ } |
|
| 197 |
+ |
|
| 198 |
+ //게시물번호를 재배치한다. |
|
| 199 |
+ public void updateNewNttNoGen(List<BoardVO> articleList, BigDecimal oldNttNo, BigDecimal newNttNo) throws Exception {
|
|
| 200 |
+ /* |
|
| 201 |
+ BoardVO article = null; |
|
| 202 |
+ String ordrCode = EgovStringUtil.lpad(oldNttNo.toString(), 15, "0"); |
|
| 203 |
+ for(int i = 0; i < articleList.size(); i++) {
|
|
| 204 |
+ article = articleList.get(i); |
|
| 205 |
+ if(ordrCode.equals(article.getOrdrCode().substring(0, 15))) {
|
|
| 206 |
+ article.setOrdrCode(EgovStringUtil.lpad(newNttNo.toString(), 15, "0") + article.getOrdrCode().substring(15)); |
|
| 207 |
+ } |
|
| 208 |
+ if(oldNttNo.equals(article.getNttNo())) {
|
|
| 209 |
+ article.setNttNo(newNttNo); |
|
| 210 |
+ article.setOldNttNo(oldNttNo); |
|
| 211 |
+ } |
|
| 212 |
+ } |
|
| 213 |
+ */ |
|
| 214 |
+ } |
|
| 215 |
+ |
|
| 216 |
+ //관리용 게시물을 삭제한다. |
|
| 217 |
+ public void updateBoardArticlesManageHide(BoardVO board) throws Exception {
|
|
| 218 |
+ bbsMngDAO.updateBoardArticlesManageHide(board); |
|
| 219 |
+ } |
|
| 220 |
+ |
|
| 221 |
+ //게시물 한 건을 완전삭제 한다. |
|
| 222 |
+ public void deleteCompleteBoardArticle(BoardVO board) throws Exception {
|
|
| 223 |
+ List<BoardVO> articleList = bbsMngDAO.selectBoardArticlesManageSimpleList(board); |
|
| 224 |
+ if(articleList != null && articleList.size() > 0) {
|
|
| 225 |
+ //코멘트먼저 삭제 |
|
| 226 |
+ CommentVO commentVO = new CommentVO(); |
|
| 227 |
+ commentVO.setNttNoArr(board.getNttNoArr()); |
|
| 228 |
+ bbsCommentService.deleteAllComment(commentVO); |
|
| 229 |
+ //게시물삭제 |
|
| 230 |
+ bbsMngDAO.deleteCompleteBoardArticle(board); |
|
| 231 |
+ //파일 삭제 |
|
| 232 |
+ BoardVO article = null; |
|
| 233 |
+ for(int i = 0; i < articleList.size(); i++) {
|
|
| 234 |
+ article = articleList.get(i); |
|
| 235 |
+ if(!EgovStringUtil.isEmpty(article.getAtchFileId())) {
|
|
| 236 |
+ fileMngService.deleteFileInfs(article.getAtchFileId()); |
|
| 237 |
+ } |
|
| 238 |
+ } |
|
| 239 |
+ } |
|
| 240 |
+ } |
|
| 241 |
+ |
|
| 242 |
+ //게시물 한 건을 복구 한다. |
|
| 243 |
+ public void repairBoardArticle(BoardVO board) throws Exception {
|
|
| 244 |
+ bbsMngDAO.repairBoardArticle(board); |
|
| 245 |
+ } |
|
| 246 |
+ |
|
| 247 |
+ public List<EgovMap> selectBoardStatisticsPie(BoardVO boardVO) throws Exception {
|
|
| 248 |
+ return this.bbsMngDAO.selectBoardStatisticsPie(boardVO); |
|
| 249 |
+ } |
|
| 250 |
+ |
|
| 251 |
+ public EgovMap selectBoardStatisticsBar(BoardVO boardVO) throws Exception {
|
|
| 252 |
+ return this.bbsMngDAO.selectBoardStatisticsBar(boardVO); |
|
| 253 |
+ } |
|
| 254 |
+ |
|
| 255 |
+ public List<EgovMap> selectBoardStatisticsBarMemberList(BoardVO boardVO) throws Exception {
|
|
| 256 |
+ return this.bbsMngDAO.selectBoardStatisticsBarMemberList(boardVO); |
|
| 257 |
+ } |
|
| 258 |
+ |
|
| 259 |
+ public EgovMap selectStatistics(BoardVO boardVO) throws Exception {
|
|
| 260 |
+ EgovMap resultMap = new EgovMap(); |
|
| 261 |
+ List<?> StatisticsList = this.bbsMngDAO.selectStatisticsList(boardVO); |
|
| 262 |
+ int StatisticsListCnt = this.bbsMngDAO.selectStatisticsListCnt(boardVO); |
|
| 263 |
+ resultMap.put("resultList", StatisticsList);
|
|
| 264 |
+ resultMap.put("resultCnt", StatisticsListCnt);
|
|
| 265 |
+ return resultMap; |
|
| 266 |
+ } |
|
| 267 |
+ |
|
| 268 |
+ public EgovMap selectAttendCollectCnt(BoardVO boardVO) throws Exception{
|
|
| 269 |
+ return this.bbsMngDAO.selectAttendCollectCnt(boardVO); |
|
| 270 |
+ } |
|
| 271 |
+ |
|
| 272 |
+ public EgovMap selectMemBoard(BoardVO boardVO) throws Exception {
|
|
| 273 |
+ EgovMap resultMap = new EgovMap(); |
|
| 274 |
+ List<?> resultList = this.bbsMngDAO.selectMemBoardList(boardVO); |
|
| 275 |
+ int resultCnt = this.bbsMngDAO.selectMemBoardListCnt(boardVO); |
|
| 276 |
+ resultMap.put("resultList", resultList);
|
|
| 277 |
+ resultMap.put("resultCnt", resultCnt);
|
|
| 278 |
+ return resultMap; |
|
| 279 |
+ } |
|
| 280 |
+ |
|
| 281 |
+ public List<EgovMap> selectStaffMemBoardList(BoardVO boardVO) throws Exception {
|
|
| 282 |
+ return this.bbsMngDAO.selectStaffMemBoardList(boardVO); |
|
| 283 |
+ } |
|
| 284 |
+ |
|
| 285 |
+} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/EgovBBSCtgryMasterServiceImpl.java
... | ... | @@ -1,90 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.com.cop.bbs.service.Ctgry; | |
| 12 | -import egovframework.com.cop.bbs.service.EgovBBSCtgryMasterService; | |
| 13 | -import egovframework.com.cop.bbs.service.CtgryMasterVO; | |
| 14 | -import egovframework.com.cop.bbs.service.CtgryMaster; | |
| 15 | -import egovframework.com.cop.bbs.service.EgovBBSCtgryService; | |
| 16 | -import egovframework.com.cop.bbs.service.impl.BBSCtgryMasterDAO; | |
| 17 | - | |
| 18 | - | |
| 19 | -@Service("EgovBBSCtgryMasterService")
| |
| 20 | -public class EgovBBSCtgryMasterServiceImpl extends EgovAbstractServiceImpl implements EgovBBSCtgryMasterService {
| |
| 21 | - | |
| 22 | - @Resource(name="BBSCtgryMasterDAO") | |
| 23 | - private BBSCtgryMasterDAO comtnbbsctgrymasterDAO; | |
| 24 | - | |
| 25 | - @Resource(name = "EgovBBSCtgryService") | |
| 26 | - private EgovBBSCtgryService egovBBSCtgryService; | |
| 27 | - | |
| 28 | - /** ID Generation */ | |
| 29 | - @Resource(name="egovBBSCtgryMstrIdGnrService") | |
| 30 | - private EgovIdGnrService egovIdGnrService; | |
| 31 | - | |
| 32 | - //COMTNBBSCTGRYMASTER을 등록한다. | |
| 33 | - public String insertComtnbbsctgrymaster(CtgryMaster vo) throws Exception {
| |
| 34 | - //log.debug(vo.toString()); | |
| 35 | - | |
| 36 | - /** ID Generation Service */ | |
| 37 | - //TODO 해당 테이블 속성에 따라 ID 제너레이션 서비스 사용 | |
| 38 | - String id = egovIdGnrService.getNextStringId(); | |
| 39 | - vo.setCtgrymasterId(id); | |
| 40 | - | |
| 41 | - comtnbbsctgrymasterDAO.insertComtnbbsctgrymaster(vo); | |
| 42 | - | |
| 43 | - Ctgry ctgry = new Ctgry(); | |
| 44 | - ctgry.setCtgrymasterId(id); | |
| 45 | - ctgry.setCtgryNm("대분류");
| |
| 46 | - egovBBSCtgryService.insertComtnbbsctgry(ctgry); | |
| 47 | - | |
| 48 | - //TODO 해당 테이블 정보에 맞게 수정 | |
| 49 | - return id; | |
| 50 | - } | |
| 51 | - | |
| 52 | - //COMTNBBSCTGRYMASTER을 수정한다. | |
| 53 | - public void updateComtnbbsctgrymaster(CtgryMaster vo) throws Exception {
| |
| 54 | - comtnbbsctgrymasterDAO.updateComtnbbsctgrymaster(vo); | |
| 55 | - } | |
| 56 | - | |
| 57 | - //COMTNBBSCTGRYMASTER을 삭제한다. | |
| 58 | - public void deleteComtnbbsctgrymaster(CtgryMaster vo) throws Exception {
| |
| 59 | - comtnbbsctgrymasterDAO.deleteComtnbbsctgrymaster(vo); | |
| 60 | - } | |
| 61 | - | |
| 62 | - //COMTNBBSCTGRYMASTER을 조회한다. | |
| 63 | - public CtgryMaster selectComtnbbsctgrymaster(CtgryMaster vo) throws Exception {
| |
| 64 | - CtgryMaster resultVO = comtnbbsctgrymasterDAO.selectComtnbbsctgrymaster(vo); | |
| 65 | - //if (resultVO == null) | |
| 66 | - // throw processException("info.nodata.msg");
| |
| 67 | - return resultVO; | |
| 68 | - } | |
| 69 | - | |
| 70 | - //카테고리마스터Id검색 | |
| 71 | - public CtgryMaster selectCtgrymasterId(CtgryMaster vo) throws Exception {
| |
| 72 | - CtgryMaster resultVO = comtnbbsctgrymasterDAO.selectCtgrymasterId(vo); | |
| 73 | - return resultVO; | |
| 74 | - } | |
| 75 | - | |
| 76 | - //COMTNBBSCTGRYMASTER 목록을 조회한다. | |
| 77 | - public List<CtgryMaster> selectComtnbbsctgrymasterList(CtgryMasterVO searchVO) throws Exception {
| |
| 78 | - return comtnbbsctgrymasterDAO.selectComtnbbsctgrymasterList(searchVO); | |
| 79 | - } | |
| 80 | - | |
| 81 | - //COMTNBBSCTGRYMASTER 총 갯수를 조회한다. | |
| 82 | - public int selectComtnbbsctgrymasterListTotCnt(CtgryMasterVO searchVO) {
| |
| 83 | - return comtnbbsctgrymasterDAO.selectComtnbbsctgrymasterListTotCnt(searchVO); | |
| 84 | - } | |
| 85 | - | |
| 86 | - | |
| 87 | - public List<CtgryMaster> selectCtgrymasterList(CtgryMasterVO searchVO) throws Exception {
| |
| 88 | - return comtnbbsctgrymasterDAO.selectCtgrymasterList(searchVO); | |
| 89 | - } | |
| 90 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/EgovBBSCtgryServiceImpl.java
... | ... | @@ -1,157 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.com.cop.bbs.service.EgovBBSCtgryService; | |
| 12 | -import egovframework.com.cop.bbs.service.CtgryVO; | |
| 13 | -import egovframework.com.cop.bbs.service.Ctgry; | |
| 14 | -import egovframework.com.cop.bbs.service.impl.BBSCtgryDAO; | |
| 15 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 16 | - | |
| 17 | -/** | |
| 18 | - * @Class Name : ComtnbbsctgryServiceImpl.java | |
| 19 | - * @Description : Comtnbbsctgry Business Implement class | |
| 20 | - * @Modification Information | |
| 21 | - * | |
| 22 | - * @author 정정욱 | |
| 23 | - * @since 20110907 | |
| 24 | - * @version 1.0 | |
| 25 | - * @see | |
| 26 | - * | |
| 27 | - * Copyright (C) All right reserved. | |
| 28 | - */ | |
| 29 | - | |
| 30 | -@Service("EgovBBSCtgryService")
| |
| 31 | -public class EgovBBSCtgryServiceImpl extends EgovAbstractServiceImpl implements | |
| 32 | - EgovBBSCtgryService {
| |
| 33 | - | |
| 34 | - @Resource(name="comtnbbsctgryDAO") | |
| 35 | - private BBSCtgryDAO comtnbbsctgryDAO; | |
| 36 | - | |
| 37 | - /** ID Generation */ | |
| 38 | - @Resource(name="egovBbsCtgryIdGnrService") | |
| 39 | - private EgovIdGnrService egovIdGnrService; | |
| 40 | - | |
| 41 | - /** | |
| 42 | - * COMTNBBSCTGRY을 등록한다. | |
| 43 | - * @param vo - 등록할 정보가 담긴 ComtnbbsctgryVO | |
| 44 | - * @return 등록 결과 | |
| 45 | - * @exception Exception | |
| 46 | - */ | |
| 47 | - public String insertComtnbbsctgry(Ctgry vo) throws Exception {
| |
| 48 | - | |
| 49 | - /** ID Generation Service */ | |
| 50 | - //TODO 해당 테이블 속성에 따라 ID 제너레이션 서비스 사용 | |
| 51 | - String id = egovIdGnrService.getNextStringId(); | |
| 52 | - vo.setCtgryId(id); | |
| 53 | - | |
| 54 | - int ctgryLevel = 0; | |
| 55 | - if(!EgovStringUtil.isEmpty(vo.getUpperCtgryId())){
| |
| 56 | - ctgryLevel = comtnbbsctgryDAO.selectComtnbbsctgryNextLevel(vo); | |
| 57 | - } | |
| 58 | - | |
| 59 | - vo.setCtgryLevel(ctgryLevel); | |
| 60 | - comtnbbsctgryDAO.insertComtnbbsctgry(vo); | |
| 61 | - //TODO 해당 테이블 정보에 맞게 수정 | |
| 62 | - return null; | |
| 63 | - } | |
| 64 | - | |
| 65 | - /** | |
| 66 | - * COMTNBBSCTGRY을 수정한다. | |
| 67 | - * @param vo - 수정할 정보가 담긴 ComtnbbsctgryVO | |
| 68 | - * @return void형 | |
| 69 | - * @exception Exception | |
| 70 | - */ | |
| 71 | - public void updateComtnbbsctgry(Ctgry vo) throws Exception {
| |
| 72 | - comtnbbsctgryDAO.updateComtnbbsctgry(vo); | |
| 73 | - } | |
| 74 | - | |
| 75 | - /** | |
| 76 | - * COMTNBBSCTGRY을 삭제한다. | |
| 77 | - * @param vo - 삭제할 정보가 담긴 ComtnbbsctgryVO | |
| 78 | - * @return void형 | |
| 79 | - * @exception Exception | |
| 80 | - */ | |
| 81 | - public void deleteComtnbbsctgry(Ctgry vo) throws Exception {
| |
| 82 | - comtnbbsctgryDAO.deleteComtnbbsctgry(vo); | |
| 83 | - } | |
| 84 | - | |
| 85 | - /** | |
| 86 | - * COMTNBBSCTGRY을 조회한다. | |
| 87 | - * @param vo - 조회할 정보가 담긴 ComtnbbsctgryVO | |
| 88 | - * @return 조회한 COMTNBBSCTGRY | |
| 89 | - * @exception Exception | |
| 90 | - */ | |
| 91 | - public Ctgry selectComtnbbsctgry(Ctgry vo) throws Exception {
| |
| 92 | - Ctgry resultVO = comtnbbsctgryDAO.selectComtnbbsctgry(vo); | |
| 93 | - //if (resultVO == null) | |
| 94 | - // throw processException("info.nodata.msg");
| |
| 95 | - return resultVO; | |
| 96 | - } | |
| 97 | - | |
| 98 | - /** | |
| 99 | - * COMTNBBSCTGRY 목록을 조회한다. | |
| 100 | - * @param searchVO - 조회할 정보가 담긴 VO | |
| 101 | - * @return COMTNBBSCTGRY 목록 | |
| 102 | - * @exception Exception | |
| 103 | - */ | |
| 104 | - public List<Ctgry> selectComtnbbsctgryList(CtgryVO searchVO) throws Exception {
| |
| 105 | - return comtnbbsctgryDAO.selectComtnbbsctgryList(searchVO); | |
| 106 | - } | |
| 107 | - | |
| 108 | - /** | |
| 109 | - * COMTNBBSCTGRY 총 갯수를 조회한다. | |
| 110 | - * @param searchVO - 조회할 정보가 담긴 VO | |
| 111 | - * @return COMTNBBSCTGRY 총 갯수 | |
| 112 | - * @exception | |
| 113 | - */ | |
| 114 | - public int selectComtnbbsctgryListTotCnt(CtgryVO searchVO) {
| |
| 115 | - return comtnbbsctgryDAO.selectComtnbbsctgryListTotCnt(searchVO); | |
| 116 | - } | |
| 117 | - | |
| 118 | - /** | |
| 119 | - * COMTNBBSCTGRY DEPTH를 조회한다. | |
| 120 | - * @param searchMap - 조회할 정보가 담긴 Map | |
| 121 | - * @return COMTNBBSCTGRY 총 갯수 | |
| 122 | - * @exception | |
| 123 | - */ | |
| 124 | - public int selectComtnbbsctgryLevel(CtgryVO searchVO) {
| |
| 125 | - return comtnbbsctgryDAO.selectComtnbbsctgryLevel(searchVO); | |
| 126 | - } | |
| 127 | - | |
| 128 | - /** | |
| 129 | - * 정렬순서를 수정한다. | |
| 130 | - * | |
| 131 | - * @param Ctgry | |
| 132 | - */ | |
| 133 | - public void updateSortOrdr(Ctgry vo) throws Exception {
| |
| 134 | - //변경되야될 것 | |
| 135 | - comtnbbsctgryDAO.updateSortOrdr(vo); | |
| 136 | - | |
| 137 | - //다음 & 이전 꺼 | |
| 138 | - comtnbbsctgryDAO.updateSiblingsSortOrdr(vo); | |
| 139 | - /* | |
| 140 | - int sourceSortOrdr = vo.getSortOrdr(); | |
| 141 | - Ctgry targetCtgry = comtnbbsctgryDAO.selectTargetSortOrdr(vo); | |
| 142 | - | |
| 143 | - if(targetCtgry != null) {
| |
| 144 | - vo.setSortOrdr(targetCtgry.getSortOrdr()); | |
| 145 | - comtnbbsctgryDAO.updateSortOrdr(vo); | |
| 146 | - | |
| 147 | - vo.setCtgryId(targetCtgry.getCtgryId()); | |
| 148 | - vo.setSortOrdr(sourceSortOrdr); | |
| 149 | - comtnbbsctgryDAO.updateSortOrdr(vo); | |
| 150 | - } | |
| 151 | - */ | |
| 152 | - } | |
| 153 | - | |
| 154 | - | |
| 155 | - | |
| 156 | - | |
| 157 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/web/EgovBBSCommentController.java
+++ base/src/main/java/egovframework/com/cop/bbs/web/EgovBBSCommentController.java
... | ... | @@ -18,7 +18,7 @@ |
| 18 | 18 |
import egovframework.com.cmm.EgovMessageSource; |
| 19 | 19 |
import egovframework.com.cop.bbs.service.Comment; |
| 20 | 20 |
import egovframework.com.cop.bbs.service.CommentVO; |
| 21 |
-import egovframework.com.cop.bbs.service.EgovBBSCommentService; |
|
| 21 |
+import egovframework.com.cop.bbs.service.BBSCommentService; |
|
| 22 | 22 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 23 | 23 |
import egovframework.com.uat.uia.service.LoginVO; |
| 24 | 24 |
import egovframework.rte.fdl.property.EgovPropertyService; |
... | ... | @@ -44,7 +44,7 @@ |
| 44 | 44 |
public class EgovBBSCommentController {
|
| 45 | 45 |
|
| 46 | 46 |
@Resource(name = "EgovBBSCommentService") |
| 47 |
- protected EgovBBSCommentService bbsCommentService; |
|
| 47 |
+ protected BBSCommentService bbsCommentService; |
|
| 48 | 48 |
|
| 49 | 49 |
@Resource(name = "propertiesService") |
| 50 | 50 |
protected EgovPropertyService propertyService; |
--- base/src/main/java/egovframework/com/cop/bbs/web/EgovBBSManageController.java
+++ base/src/main/java/egovframework/com/cop/bbs/web/EgovBBSManageController.java
... | ... | @@ -1,14 +1,12 @@ |
| 1 | 1 |
package egovframework.com.cop.bbs.web; |
| 2 | 2 |
|
| 3 | 3 |
import java.io.PrintWriter; |
| 4 |
-import java.math.BigDecimal; |
|
| 5 |
-import java.util.ArrayList; |
|
| 6 |
-import java.util.HashMap; |
|
| 7 | 4 |
import java.util.List; |
| 8 | 5 |
import java.util.Map; |
| 9 | 6 |
|
| 10 | 7 |
import javax.annotation.Resource; |
| 11 | 8 |
|
| 9 |
+import egovframework.com.cop.bbs.service.*; |
|
| 12 | 10 |
import net.sf.json.JSONObject; |
| 13 | 11 |
|
| 14 | 12 |
import org.apache.log4j.Logger; |
... | ... | @@ -27,15 +25,6 @@ |
| 27 | 25 |
import egovframework.com.cmm.service.EgovFileMngService; |
| 28 | 26 |
import egovframework.com.cmm.service.EgovFileMngUtil; |
| 29 | 27 |
import egovframework.com.cmm.service.FileVO; |
| 30 |
-import egovframework.com.cop.bbs.service.Board; |
|
| 31 |
-import egovframework.com.cop.bbs.service.BoardMasterVO; |
|
| 32 |
-import egovframework.com.cop.bbs.service.BoardVO; |
|
| 33 |
-import egovframework.com.cop.bbs.service.Ctgry; |
|
| 34 |
-import egovframework.com.cop.bbs.service.CtgryMaster; |
|
| 35 |
-import egovframework.com.cop.bbs.service.EgovBBSAttributeManageService; |
|
| 36 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryMasterService; |
|
| 37 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryService; |
|
| 38 |
-import egovframework.com.cop.bbs.service.EgovBBSManageService; |
|
| 39 | 28 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 40 | 29 |
import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
| 41 | 30 |
import egovframework.com.sym.sit.service.SiteManageService; |
... | ... | @@ -58,13 +47,13 @@ |
| 58 | 47 |
public class EgovBBSManageController {
|
| 59 | 48 |
|
| 60 | 49 |
@Resource(name = "EgovBBSManageService") |
| 61 |
- private EgovBBSManageService bbsMngService; |
|
| 50 |
+ private BBSManageService bbsMngService; |
|
| 62 | 51 |
|
| 63 | 52 |
@Resource(name = "bbsAttributeManageService") |
| 64 |
- private EgovBBSAttributeManageService bbsAttrbService; |
|
| 53 |
+ private BBSAttributeManageService bbsAttrbService; |
|
| 65 | 54 |
|
| 66 |
- @Resource(name = "EgovBBSCtgryService") |
|
| 67 |
- private EgovBBSCtgryService ctgryService; |
|
| 55 |
+ @Resource(name = "bbsCtgryService") |
|
| 56 |
+ private BBSCtgryService ctgryService; |
|
| 68 | 57 |
|
| 69 | 58 |
@Resource(name = "siteManageService") |
| 70 | 59 |
SiteManageService siteManageService; |
... | ... | @@ -87,11 +76,8 @@ |
| 87 | 76 |
@Resource(name = "IndvdlestbsService") |
| 88 | 77 |
private EgovIndvdlestbsService indvdlestbsService; |
| 89 | 78 |
|
| 90 |
- @Resource(name = "EgovBBSCtgryMasterService") |
|
| 91 |
- private EgovBBSCtgryMasterService egovBBSCtgryMasterService; |
|
| 92 |
- |
|
| 93 |
- @Resource(name = "EgovBBSCtgryService") |
|
| 94 |
- private EgovBBSCtgryService egovBBSCtgryService; |
|
| 79 |
+ @Resource(name = "bbsCtgryMasterService") |
|
| 80 |
+ private BBSCtgryMasterService bbsCtgryMasterService; |
|
| 95 | 81 |
|
| 96 | 82 |
/** EgovPropertyService */ |
| 97 | 83 |
@Resource(name = "propertiesService") |
... | ... | @@ -192,13 +178,7 @@ |
| 192 | 178 |
noticeVO.setBbsAttrbCode(master.getBbsAttrbCode()); |
| 193 | 179 |
noticeVO.setSearchNoticeAt("Y");
|
| 194 | 180 |
noticeVO.setFirstIndex(0); |
| 195 |
- //교재&사전 |
|
| 196 |
- if("BBSMSTR_000000000005".equals(boardVO.getBbsId())){
|
|
| 197 |
- noticeVO.setRecordCountPerPage(3); |
|
| 198 |
- }else {
|
|
| 199 |
- noticeVO.setRecordCountPerPage(9999); |
|
| 200 |
- } |
|
| 201 |
- |
|
| 181 |
+ |
|
| 202 | 182 |
model.addAttribute("noticeList", bbsMngService.selectBoardArticles(noticeVO));
|
| 203 | 183 |
|
| 204 | 184 |
paginationInfo.setCurrentPageNo(boardVO.getPageIndex()); |
... | ... | @@ -211,36 +191,19 @@ |
| 211 | 191 |
|
| 212 | 192 |
boardVO.setCommentUseAt(master.getCommentUseAt()); |
| 213 | 193 |
boardVO.setBbsAttrbCode(master.getBbsAttrbCode()); |
| 214 |
- |
|
| 215 |
- if("BBSMSTR_000000000010".equals(boardVO.getBbsId())){
|
|
| 216 |
- boardVO.setFirstIndex(0); |
|
| 217 |
- boardVO.setRecordCountPerPage(4); |
|
| 218 |
- boardVO.setCrclId(null); |
|
| 219 |
- boardVO.setIsMainFlag("Y");
|
|
| 220 |
- boardVO.setSysTyCode("ALL");
|
|
| 221 |
- } |
|
| 222 |
- |
|
| 223 |
- //양식자료 - 학생접근 시 |
|
| 224 |
- if(SE_CODE < 8 && "BBSMSTR_000000000023".equals(boardVO.getBbsId())){
|
|
| 225 |
- List<String> searchCateList = new ArrayList<String>(); |
|
| 226 |
- searchCateList.add("CTG_0000000000000272");
|
|
| 227 |
- boardVO.setSearchCateList(searchCateList); |
|
| 228 |
- } |
|
| 229 |
- |
|
| 194 |
+ |
|
| 230 | 195 |
List<BoardVO> resultList = bbsMngService.selectBoardArticles(boardVO); |
| 231 | 196 |
int totCnt = bbsMngService.selectBoardArticlesCnt(boardVO); |
| 232 | 197 |
|
| 233 | 198 |
paginationInfo.setTotalRecordCount(totCnt); |
| 234 | 199 |
|
| 235 | 200 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 236 |
- Ctgry ctgry = new Ctgry(); |
|
| 201 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 237 | 202 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 238 | 203 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 239 | 204 |
model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry));
|
| 240 | 205 |
} |
| 241 |
- |
|
| 242 |
- |
|
| 243 |
- |
|
| 206 |
+ |
|
| 244 | 207 |
model.addAttribute("resultList", resultList);
|
| 245 | 208 |
model.addAttribute("resultCnt", totCnt);
|
| 246 | 209 |
model.addAttribute("brdMstrVO", master);
|
... | ... | @@ -250,38 +213,11 @@ |
| 250 | 213 |
|
| 251 | 214 |
return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeList";
|
| 252 | 215 |
} |
| 253 |
- |
|
| 254 |
- if("BBSMSTR_000000000010".equals(boardVO.getBbsId())){
|
|
| 255 |
- boardVO.setFirstIndex(0); |
|
| 256 |
- boardVO.setRecordCountPerPage(1000); |
|
| 257 |
- boardVO.setCrclId(null); |
|
| 258 |
- boardVO.setIsMainFlag("Y");
|
|
| 259 |
- boardVO.setSysTyCode("ALL");
|
|
| 260 |
- boardVO.setBbsAttrbCode("BBSA02");
|
|
| 261 | 216 |
|
| 262 |
- List<BoardVO> resultList = bbsMngService.selectBoardArticles(boardVO); |
|
| 263 |
- model.addAttribute("resultList", resultList);
|
|
| 264 |
- |
|
| 265 |
- //언어코드 |
|
| 266 |
- Ctgry ctgry = new Ctgry(); |
|
| 267 |
- ctgry.setCtgrymasterId("CTGMST_0000000000002");
|
|
| 268 |
- model.addAttribute("languageList", egovBBSCtgryService.selectComtnbbsctgryList(ctgry));
|
|
| 269 |
- |
|
| 270 |
- return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + "BBSSRC_0000000000010/EgovNoticeList";
|
|
| 271 |
- } |
|
| 272 |
- |
|
| 273 | 217 |
return null; |
| 274 | 218 |
} |
| 275 | 219 |
|
| 276 |
- /** |
|
| 277 |
- * 게시물에 대한 상세 정보를 조회한다. |
|
| 278 |
- * |
|
| 279 |
- * @param boardVO |
|
| 280 |
- * @param sessionVO |
|
| 281 |
- * @param model |
|
| 282 |
- * @return |
|
| 283 |
- * @throws Exception |
|
| 284 |
- */ |
|
| 220 |
+ //게시물에 대한 상세 정보를 조회한다. |
|
| 285 | 221 |
@RequestMapping(value = "/cop/bbs/selectBoardArticle.do") |
| 286 | 222 |
public String selectBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 287 | 223 |
|
... | ... | @@ -341,19 +277,9 @@ |
| 341 | 277 |
return "forward:/cop/bbs/selectBoardList.do"; |
| 342 | 278 |
} |
| 343 | 279 |
|
| 344 |
- /** |
|
| 345 |
- * 게시물 등록을 위한 등록페이지로 이동한다. |
|
| 346 |
- * |
|
| 347 |
- * @param boardVO |
|
| 348 |
- * @param sessionVO |
|
| 349 |
- * @param model |
|
| 350 |
- * @return |
|
| 351 |
- * @throws Exception |
|
| 352 |
- */ |
|
| 280 |
+ //게시물 등록을 위한 등록페이지로 이동한다. |
|
| 353 | 281 |
@RequestMapping(value = "/cop/bbs/addBoardArticle.do") |
| 354 | 282 |
public String addBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 355 |
- |
|
| 356 |
- |
|
| 357 | 283 |
LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
| 358 | 284 |
if(user == null) {
|
| 359 | 285 |
return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); |
... | ... | @@ -378,7 +304,7 @@ |
| 378 | 304 |
int SE_CODE = Integer.parseInt(user.getUserSe()); |
| 379 | 305 |
if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){
|
| 380 | 306 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 381 |
- Ctgry ctgry = new Ctgry(); |
|
| 307 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 382 | 308 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 383 | 309 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 384 | 310 |
|
... | ... | @@ -408,33 +334,15 @@ |
| 408 | 334 |
return "forward:/cop/bbs/selectBoardList.do"; |
| 409 | 335 |
} |
| 410 | 336 |
|
| 411 |
- /** |
|
| 412 |
- * 게시물을 등록한다. |
|
| 413 |
- * |
|
| 414 |
- * @param boardVO |
|
| 415 |
- * @param board |
|
| 416 |
- * @param sessionVO |
|
| 417 |
- * @param model |
|
| 418 |
- * @return |
|
| 419 |
- * @throws Exception |
|
| 420 |
- */ |
|
| 421 |
- @SuppressWarnings("unchecked")
|
|
| 337 |
+ //게시물을 등록한다. |
|
| 422 | 338 |
@RequestMapping(value = "/cop/bbs/insertBoardArticle.do") |
| 423 |
- public String insertBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO,
|
|
| 424 |
- Board board, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
|
|
| 339 |
+ public String insertBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, Board board, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
|
|
| 425 | 340 |
|
| 426 | 341 |
if(request.getSession().getAttribute("sessionVO") == null) {
|
| 427 | 342 |
return "forward:/cop/bbs/selectBoardList.do"; |
| 428 | 343 |
} |
| 429 | 344 |
LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
| 430 |
- /* |
|
| 431 |
- LoginVO user = new LoginVO(); |
|
| 432 |
- user.setUserSe("10");
|
|
| 433 |
- user.setName("관리자");
|
|
| 434 |
- user.setId("admin");
|
|
| 435 |
- */ |
|
| 436 |
- //beanValidator.validate(board, bindingResult); |
|
| 437 |
- |
|
| 345 |
+ |
|
| 438 | 346 |
BoardMasterVO vo = new BoardMasterVO(); |
| 439 | 347 |
vo.setBbsId(boardVO.getBbsId()); |
| 440 | 348 |
|
... | ... | @@ -476,18 +384,9 @@ |
| 476 | 384 |
request.getSession().removeAttribute("sessionVO");
|
| 477 | 385 |
|
| 478 | 386 |
return "forward:/cop/bbs/selectBoardList.do"; |
| 479 |
- //return "test"; |
|
| 480 | 387 |
} |
| 481 | 388 |
|
| 482 |
- /** |
|
| 483 |
- * 게시물에 대한 답변 등록을 위한 등록페이지로 이동한다. |
|
| 484 |
- * |
|
| 485 |
- * @param boardVO |
|
| 486 |
- * @param sessionVO |
|
| 487 |
- * @param model |
|
| 488 |
- * @return |
|
| 489 |
- * @throws Exception |
|
| 490 |
- */ |
|
| 389 |
+ //게시물에 대한 답변 등록을 위한 등록페이지로 이동한다. |
|
| 491 | 390 |
@RequestMapping(value = "/cop/bbs/addReplyBoardArticle.do") |
| 492 | 391 |
public String addReplyBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 493 | 392 |
|
... | ... | @@ -559,20 +458,9 @@ |
| 559 | 458 |
return "forward:/cop/bbs/selectBoardList.do"; |
| 560 | 459 |
} |
| 561 | 460 |
|
| 562 |
- /** |
|
| 563 |
- * 게시물에 대한 답변을 등록한다. |
|
| 564 |
- * |
|
| 565 |
- * @param boardVO |
|
| 566 |
- * @param board |
|
| 567 |
- * @param sessionVO |
|
| 568 |
- * @param model |
|
| 569 |
- * @return |
|
| 570 |
- * @throws Exception |
|
| 571 |
- */ |
|
| 572 |
- @SuppressWarnings("unchecked")
|
|
| 461 |
+ //게시물에 대한 답변을 등록한다. |
|
| 573 | 462 |
@RequestMapping(value = "/cop/bbs/replyBoardArticle.do") |
| 574 |
- public String replyBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO,
|
|
| 575 |
- Board board, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 463 |
+ public String replyBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, Board board, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 576 | 464 |
|
| 577 | 465 |
if(request.getSession().getAttribute("sessionVO") == null) {
|
| 578 | 466 |
return "forward:/cop/bbs/selectBoardList.do"; |
... | ... | @@ -651,16 +539,7 @@ |
| 651 | 539 |
return "forward:/cop/bbs/selectBoardList.do"; |
| 652 | 540 |
} |
| 653 | 541 |
|
| 654 |
- /** |
|
| 655 |
- * 게시물 수정을 위한 수정페이지로 이동한다. |
|
| 656 |
- * |
|
| 657 |
- * @param boardVO |
|
| 658 |
- * @param vo |
|
| 659 |
- * @param sessionVO |
|
| 660 |
- * @param model |
|
| 661 |
- * @return |
|
| 662 |
- * @throws Exception |
|
| 663 |
- */ |
|
| 542 |
+ //게시물 수정을 위한 수정페이지로 이동한다. |
|
| 664 | 543 |
@RequestMapping(value = "/cop/bbs/forUpdateBoardArticle.do") |
| 665 | 544 |
public String selectBoardArticleForUpdt(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 666 | 545 |
|
... | ... | @@ -689,7 +568,7 @@ |
| 689 | 568 |
|
| 690 | 569 |
if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){
|
| 691 | 570 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 692 |
- Ctgry ctgry = new Ctgry(); |
|
| 571 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 693 | 572 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 694 | 573 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 695 | 574 |
|
... | ... | @@ -717,21 +596,9 @@ |
| 717 | 596 |
return "forward:/cop/bbs/selectBoardList.do"; |
| 718 | 597 |
} |
| 719 | 598 |
|
| 720 |
- /** |
|
| 721 |
- * 게시물에 대한 내용을 수정한다. |
|
| 722 |
- * |
|
| 723 |
- * @param boardVO |
|
| 724 |
- * @param board |
|
| 725 |
- * @param sessionVO |
|
| 726 |
- * @param model |
|
| 727 |
- * @return |
|
| 728 |
- * @throws Exception |
|
| 729 |
- */ |
|
| 730 |
- @SuppressWarnings("unchecked")
|
|
| 599 |
+ //게시물에 대한 내용을 수정한다. |
|
| 731 | 600 |
@RequestMapping(value = "/cop/bbs/updateBoardArticle.do") |
| 732 |
- public String updateBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO,
|
|
| 733 |
- Board board, BindingResult bindingResult, |
|
| 734 |
- ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 601 |
+ public String updateBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, Board board, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 735 | 602 |
|
| 736 | 603 |
if(request.getSession().getAttribute("sessionVO") == null) {
|
| 737 | 604 |
return "forward:/cop/bbs/selectBoardList.do"; |
... | ... | @@ -755,7 +622,7 @@ |
| 755 | 622 |
|
| 756 | 623 |
if(master != null) {
|
| 757 | 624 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 758 |
- Ctgry ctgry = new Ctgry(); |
|
| 625 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 759 | 626 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 760 | 627 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 761 | 628 |
|
... | ... | @@ -824,16 +691,7 @@ |
| 824 | 691 |
return "forward:/cop/bbs/selectBoardList.do"; |
| 825 | 692 |
} |
| 826 | 693 |
|
| 827 |
- /** |
|
| 828 |
- * 게시물에 대한 내용을 삭제한다. |
|
| 829 |
- * |
|
| 830 |
- * @param boardVO |
|
| 831 |
- * @param board |
|
| 832 |
- * @param sessionVO |
|
| 833 |
- * @param model |
|
| 834 |
- * @return |
|
| 835 |
- * @throws Exception |
|
| 836 |
- */ |
|
| 694 |
+ //게시물에 대한 내용을 삭제한다. |
|
| 837 | 695 |
@RequestMapping(value = "/cop/bbs/deleteBoardArticle.do") |
| 838 | 696 |
public String deleteBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 839 | 697 |
|
... | ... | @@ -867,14 +725,7 @@ |
| 867 | 725 |
} |
| 868 | 726 |
|
| 869 | 727 |
|
| 870 |
- /** |
|
| 871 |
- * [관리용-공통] 게시판 마스터 목록을 조회한다. |
|
| 872 |
- * |
|
| 873 |
- * @param boardMasterVO |
|
| 874 |
- * @param model |
|
| 875 |
- * @return |
|
| 876 |
- * @throws Exception |
|
| 877 |
- */ |
|
| 728 |
+ //[관리용-공통] 게시판 마스터 목록을 조회한다. |
|
| 878 | 729 |
@RequestMapping("/cop/com/selectAllBBSMasterManageInfs.do")
|
| 879 | 730 |
public String selectAllBBSMasterManageInfs(@ModelAttribute("searchVO") BoardMasterVO boardMasterVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 880 | 731 |
|
... | ... | @@ -911,16 +762,7 @@ |
| 911 | 762 |
return "cop/com/selectAllBBSMasterManageInfs"; |
| 912 | 763 |
} |
| 913 | 764 |
|
| 914 |
- /** |
|
| 915 |
- * 게시물을 관리한다. |
|
| 916 |
- * |
|
| 917 |
- * @param boardVO |
|
| 918 |
- * @param board |
|
| 919 |
- * @param sessionVO |
|
| 920 |
- * @param model |
|
| 921 |
- * @return |
|
| 922 |
- * @throws Exception |
|
| 923 |
- */ |
|
| 765 |
+ //게시물을 관리한다. |
|
| 924 | 766 |
@RequestMapping(value = "/cop/bbs/manageArticle.do") |
| 925 | 767 |
public void manageArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 926 | 768 |
|
... | ... | @@ -949,148 +791,6 @@ |
| 949 | 791 |
printwriter.flush(); |
| 950 | 792 |
printwriter.close(); |
| 951 | 793 |
} |
| 952 |
- |
|
| 953 |
- /** |
|
| 954 |
- * COMTNBBSCTGRYMASTER 목록을 조회한다. (pageing) |
|
| 955 |
- * @param searchVO - 조회할 정보가 담긴 CtgryMaster |
|
| 956 |
- * @exception Exception |
|
| 957 |
- */ |
|
| 958 |
- @RequestMapping(value="/cop/bbs/selectBBSCtgryMasterList.do") |
|
| 959 |
- public String selectBBSCtgryMasterList(@ModelAttribute("searchVO") CtgryMaster searchVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 960 |
- LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 961 |
- if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) {
|
|
| 962 |
- searchVO.setSiteId(loginVO.getSiteId()); |
|
| 963 |
- } |
|
| 964 |
- |
|
| 965 |
- searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
|
| 966 |
- searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
|
| 967 |
- |
|
| 968 |
- /** pageing */ |
|
| 969 |
- PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 970 |
- paginationInfo.setCurrentPageNo(searchVO.getPageIndex()); |
|
| 971 |
- paginationInfo.setRecordCountPerPage(searchVO.getPageUnit()); |
|
| 972 |
- paginationInfo.setPageSize(searchVO.getPageSize()); |
|
| 973 |
- |
|
| 974 |
- searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 975 |
- searchVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 976 |
- searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 977 | 794 |
|
| 978 |
- searchVO.setRecordCountPerPage(Integer.MAX_VALUE); |
|
| 979 |
- searchVO.setSysTyCode("SYS02");
|
|
| 980 |
- List<CtgryMaster> masterList = egovBBSCtgryMasterService.selectComtnbbsctgrymasterList(searchVO); |
|
| 981 |
- Ctgry ctgry = new Ctgry(); |
|
| 982 |
- HashMap map = new HashMap(); |
|
| 983 |
- int listSize = 0; |
|
| 984 |
- for(int i = 0; i < masterList.size(); i++){
|
|
| 985 |
- ctgry.setCtgrymasterId(masterList.get(i).getCtgrymasterId()); |
|
| 986 |
- List<Ctgry> ctgryList = egovBBSCtgryService.selectComtnbbsctgryList(ctgry); |
|
| 987 |
- map.put(masterList.get(i).getCtgrymasterId(), ctgryList); |
|
| 988 |
- |
|
| 989 |
- if(ctgryList.size() > listSize){
|
|
| 990 |
- listSize = ctgryList.size(); |
|
| 991 |
- } |
|
| 992 |
- } |
|
| 993 |
- |
|
| 994 |
- model.addAttribute("resultList", map);
|
|
| 995 |
- model.addAttribute("listSize", listSize);
|
|
| 996 |
- |
|
| 997 |
- return "/cop/ctg/EgovBBSCtgryMasterList02"; |
|
| 998 |
- |
|
| 999 |
- } |
|
| 1000 |
- |
|
| 1001 |
- /** |
|
| 1002 |
- * 마이페이지 > 관심리스트 > 교재/사전 |
|
| 1003 |
- */ |
|
| 1004 |
- @RequestMapping(value = "/cop/bbs/selectLikeBookList.do") |
|
| 1005 |
- public String selectLikeBookList(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 1006 |
- |
|
| 1007 |
- SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); |
|
| 1008 |
- model.addAttribute("siteInfo", siteVO);
|
|
| 1009 |
- |
|
| 1010 |
- boardVO.setBbsId("BBSMSTR_000000000005");
|
|
| 1011 |
- |
|
| 1012 |
- PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 1013 |
- |
|
| 1014 |
- BoardMasterVO vo = new BoardMasterVO(); |
|
| 1015 |
- vo.setBbsId(boardVO.getBbsId()); |
|
| 1016 |
- vo.setSiteId(siteVO.getSiteId()); |
|
| 1017 |
- vo.setSysTyCode(siteVO.getSysTyCode()); |
|
| 1018 |
- |
|
| 1019 |
- BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); |
|
| 1020 |
- |
|
| 1021 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 1022 |
- if(master != null) {
|
|
| 1023 |
- int SE_CODE = 1; |
|
| 1024 |
- if(user != null) {
|
|
| 1025 |
- SE_CODE = Integer.parseInt(user.getUserSe()); |
|
| 1026 |
- model.addAttribute("USER_INFO", user);
|
|
| 1027 |
- |
|
| 1028 |
- boardVO.setTrgetId(user.getId()); |
|
| 1029 |
- |
|
| 1030 |
- //교재&사전 |
|
| 1031 |
- if("BBSMSTR_000000000005".equals(boardVO.getBbsId())){
|
|
| 1032 |
- //좋아요 목록 |
|
| 1033 |
- IndvdlestbsVO indvdlestbsVO = new IndvdlestbsVO(); |
|
| 1034 |
- indvdlestbsVO.setUserId(user.getId()); |
|
| 1035 |
- indvdlestbsVO.setSiteId(siteVO.getSiteId()); |
|
| 1036 |
- indvdlestbsVO.setTrgetTyCode("BOOK_LIKE");
|
|
| 1037 |
- model.addAttribute("wishList", indvdlestbsService.selectIvpList(indvdlestbsVO));
|
|
| 1038 |
- } |
|
| 1039 |
- } |
|
| 1040 | 795 |
|
| 1041 |
- // 페이징 정보 설정 |
|
| 1042 |
- boardVO.setPageUnit(propertyService.getInt("pageUnit"));
|
|
| 1043 |
- boardVO.setPageSize(propertyService.getInt("pageSize"));
|
|
| 1044 |
- boardVO.setCtgrymasterId(master.getCtgrymasterId()); |
|
| 1045 |
- |
|
| 1046 |
- if("BBSA02".equals(master.getBbsAttrbCode())) {
|
|
| 1047 |
- if(EgovStringUtil.isEmpty(boardVO.getViewType())){
|
|
| 1048 |
- boardVO.setViewType("photo");
|
|
| 1049 |
- } |
|
| 1050 |
- |
|
| 1051 |
- if("photo".equals(boardVO.getViewType())){
|
|
| 1052 |
- // 페이징 정보 설정 |
|
| 1053 |
- boardVO.setPageUnit(propertyService.getInt("photoPageUnit"));
|
|
| 1054 |
- boardVO.setPageSize(propertyService.getInt("photoPageSize"));
|
|
| 1055 |
- } |
|
| 1056 |
- } |
|
| 1057 |
- |
|
| 1058 |
- paginationInfo.setCurrentPageNo(boardVO.getPageIndex()); |
|
| 1059 |
- paginationInfo.setRecordCountPerPage(boardVO.getPageUnit()); |
|
| 1060 |
- paginationInfo.setPageSize(boardVO.getPageSize()); |
|
| 1061 |
- |
|
| 1062 |
- boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 1063 |
- boardVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 1064 |
- boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 1065 |
- |
|
| 1066 |
- boardVO.setCommentUseAt(master.getCommentUseAt()); |
|
| 1067 |
- boardVO.setBbsAttrbCode(master.getBbsAttrbCode()); |
|
| 1068 |
- |
|
| 1069 |
- boardVO.setBookLikeAt("Y");
|
|
| 1070 |
- |
|
| 1071 |
- List<BoardVO> resultList = bbsMngService.selectBoardArticles(boardVO); |
|
| 1072 |
- int totCnt = bbsMngService.selectBoardArticlesCnt(boardVO); |
|
| 1073 |
- |
|
| 1074 |
- paginationInfo.setTotalRecordCount(totCnt); |
|
| 1075 |
- |
|
| 1076 |
- if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
|
| 1077 |
- Ctgry ctgry = new Ctgry(); |
|
| 1078 |
- ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
|
| 1079 |
- model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
|
| 1080 |
- model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry));
|
|
| 1081 |
- } |
|
| 1082 |
- |
|
| 1083 |
- model.addAttribute("resultList", resultList);
|
|
| 1084 |
- model.addAttribute("resultCnt", totCnt);
|
|
| 1085 |
- model.addAttribute("brdMstrVO", master);
|
|
| 1086 |
- model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile"));
|
|
| 1087 |
- model.addAttribute("paginationInfo", paginationInfo);
|
|
| 1088 |
- request.getSession().removeAttribute("sessionCommentVO");
|
|
| 1089 |
- |
|
| 1090 |
- return "usr/EgovLikeBookList"; |
|
| 1091 |
- } |
|
| 1092 |
- |
|
| 1093 |
- return null; |
|
| 1094 |
- } |
|
| 1095 |
- |
|
| 1096 | 796 |
} |
--- base/src/main/java/egovframework/com/cop/cmy/service/impl/EgovCommunityManageServiceImpl.java
+++ base/src/main/java/egovframework/com/cop/cmy/service/impl/EgovCommunityManageServiceImpl.java
... | ... | @@ -15,7 +15,7 @@ |
| 15 | 15 |
import org.springframework.stereotype.Service; |
| 16 | 16 |
|
| 17 | 17 |
import egovframework.com.cop.bbs.service.BoardVO; |
| 18 |
-import egovframework.com.cop.bbs.service.EgovBBSAttributeManageService; |
|
| 18 |
+import egovframework.com.cop.bbs.service.BBSAttributeManageService; |
|
| 19 | 19 |
|
| 20 | 20 |
import egovframework.com.cop.cmy.service.Community; |
| 21 | 21 |
import egovframework.com.cop.cmy.service.CommunityUser; |
... | ... | @@ -33,7 +33,7 @@ |
| 33 | 33 |
public class EgovCommunityManageServiceImpl extends EgovAbstractServiceImpl implements EgovCommunityManageService {
|
| 34 | 34 |
|
| 35 | 35 |
@Resource(name = "bbsAttributeManageService") |
| 36 |
- private EgovBBSAttributeManageService bbsAttrbService; |
|
| 36 |
+ private BBSAttributeManageService bbsAttrbService; |
|
| 37 | 37 |
|
| 38 | 38 |
@Resource(name = "communityManageMapper") |
| 39 | 39 |
private CommunityManageMapper communityManageMapper; |
--- base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSAttributeManageController.java
+++ base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSAttributeManageController.java
... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 |
import javax.servlet.http.HttpServletRequest; |
| 5 | 5 |
import javax.servlet.http.HttpServletResponse; |
| 6 | 6 |
|
| 7 |
+import egovframework.com.cop.bbs.service.CtgryMasterVO; |
|
| 7 | 8 |
import org.apache.log4j.Logger; |
| 8 | 9 |
import org.springframework.beans.factory.annotation.Autowired; |
| 9 | 10 |
import org.springframework.stereotype.Controller; |
... | ... | @@ -15,9 +16,8 @@ |
| 15 | 16 |
|
| 16 | 17 |
import egovframework.com.cmm.service.CmmUseService; |
| 17 | 18 |
import egovframework.com.cop.bbs.service.BoardMasterVO; |
| 18 |
-import egovframework.com.cop.bbs.service.CtgryMaster; |
|
| 19 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryMasterService; |
|
| 20 |
-import egovframework.com.cop.bbs.service.EgovBBSAttributeManageService; |
|
| 19 |
+import egovframework.com.cop.bbs.service.BBSCtgryMasterService; |
|
| 20 |
+import egovframework.com.cop.bbs.service.BBSAttributeManageService; |
|
| 21 | 21 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 22 | 22 |
import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
| 23 | 23 |
import egovframework.com.sym.sit.service.SiteManageService; |
... | ... | @@ -29,33 +29,18 @@ |
| 29 | 29 |
import egovframework.com.cop.cmy.service.CommunityUser; |
| 30 | 30 |
import egovframework.com.cop.cmy.service.EgovCommunityManageService; |
| 31 | 31 |
import egovframework.rte.fdl.cmmn.exception.EgovBizException; |
| 32 |
-/** |
|
| 33 |
- * 게시판 속성관리를 위한 컨트롤러 클래스 |
|
| 34 |
- * |
|
| 35 |
- * @author 공통서비스개발팀 이삼섭 |
|
| 36 |
- * @since 2009.06.01 |
|
| 37 |
- * @version 1.0 |
|
| 38 |
- * @see <pre> |
|
| 39 |
- * << 개정이력(Modification Information) >> |
|
| 40 |
- * |
|
| 41 |
- * 수정일 수정자 수정내용 |
|
| 42 |
- * ------- -------- --------------------------- |
|
| 43 |
- * 2009.3.12 이삼섭 최초 생성 |
|
| 44 |
- * 2009.06.26 한성곤 2단계 기능 추가 (댓글관리, 만족도조사) |
|
| 45 |
- * |
|
| 46 |
- * </pre> |
|
| 47 |
- */ |
|
| 32 |
+//게시판 속성관리를 위한 컨트롤러 클래스 |
|
| 48 | 33 |
@Controller("EgovBBSAttributeManageController")
|
| 49 | 34 |
public class EgovBBSAttributeManageController {
|
| 50 | 35 |
|
| 51 | 36 |
@Resource(name = "bbsAttributeManageService") |
| 52 |
- private EgovBBSAttributeManageService bbsAttrbService; |
|
| 37 |
+ private BBSAttributeManageService bbsAttrbService; |
|
| 53 | 38 |
|
| 54 | 39 |
@Resource(name = "cmmUseService") |
| 55 | 40 |
private CmmUseService cmmUseService; |
| 56 | 41 |
|
| 57 |
- @Resource(name = "EgovBBSCtgryMasterService") |
|
| 58 |
- private EgovBBSCtgryMasterService egovBBSCtgryMasterService; |
|
| 42 |
+ @Resource(name = "bbsCtgryMasterService") |
|
| 43 |
+ private BBSCtgryMasterService bbsCtgryMasterService; |
|
| 59 | 44 |
|
| 60 | 45 |
@Resource(name = "propertiesService") |
| 61 | 46 |
protected EgovPropertyService propertyService; |
... | ... | @@ -114,11 +99,11 @@ |
| 114 | 99 |
model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo));
|
| 115 | 100 |
|
| 116 | 101 |
model.addAttribute("authList", cmmntyService.selectAuthorAllList(null));
|
| 117 |
- |
|
| 118 |
- CtgryMaster ctgrymasterVO = new CtgryMaster(); |
|
| 102 |
+ |
|
| 103 |
+ CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); |
|
| 119 | 104 |
ctgrymasterVO.setFirstIndex(0); |
| 120 | 105 |
ctgrymasterVO.setRecordCountPerPage(999999999); |
| 121 |
- model.addAttribute("ctgrymasterList", egovBBSCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 106 |
+ model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 122 | 107 |
|
| 123 | 108 |
model.addAttribute("boardMaster", cmmntyMnu);
|
| 124 | 109 |
|
... | ... | @@ -151,11 +136,11 @@ |
| 151 | 136 |
model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo));
|
| 152 | 137 |
|
| 153 | 138 |
model.addAttribute("authList", cmmntyService.selectAuthorAllList(null));
|
| 154 |
- |
|
| 155 |
- CtgryMaster ctgrymasterVO = new CtgryMaster(); |
|
| 139 |
+ |
|
| 140 |
+ CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); |
|
| 156 | 141 |
ctgrymasterVO.setFirstIndex(0); |
| 157 | 142 |
ctgrymasterVO.setRecordCountPerPage(999999999); |
| 158 |
- model.addAttribute("ctgrymasterList", egovBBSCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 143 |
+ model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 159 | 144 |
|
| 160 | 145 |
model.addAttribute("siteInfo", siteVO);
|
| 161 | 146 |
model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile"));
|
... | ... | @@ -222,11 +207,11 @@ |
| 222 | 207 |
model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo));
|
| 223 | 208 |
|
| 224 | 209 |
model.addAttribute("authList", cmmntyService.selectAuthorAllList(null));
|
| 225 |
- |
|
| 226 |
- CtgryMaster ctgrymasterVO = new CtgryMaster(); |
|
| 210 |
+ |
|
| 211 |
+ CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); |
|
| 227 | 212 |
ctgrymasterVO.setFirstIndex(0); |
| 228 | 213 |
ctgrymasterVO.setRecordCountPerPage(999999999); |
| 229 |
- model.addAttribute("ctgrymasterList", egovBBSCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 214 |
+ model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 230 | 215 |
|
| 231 | 216 |
model.addAttribute("siteInfo", siteVO);
|
| 232 | 217 |
model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile"));
|
--- base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSCommentController.java
+++ base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSCommentController.java
... | ... | @@ -18,7 +18,7 @@ |
| 18 | 18 |
import egovframework.com.cmm.EgovMessageSource; |
| 19 | 19 |
import egovframework.com.cop.bbs.service.Comment; |
| 20 | 20 |
import egovframework.com.cop.bbs.service.CommentVO; |
| 21 |
-import egovframework.com.cop.bbs.service.EgovBBSCommentService; |
|
| 21 |
+import egovframework.com.cop.bbs.service.BBSCommentService; |
|
| 22 | 22 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 23 | 23 |
import egovframework.com.uat.uia.service.LoginVO; |
| 24 | 24 |
import egovframework.rte.fdl.property.EgovPropertyService; |
... | ... | @@ -44,7 +44,7 @@ |
| 44 | 44 |
public class EgovBBSCommentController {
|
| 45 | 45 |
|
| 46 | 46 |
@Resource(name = "EgovBBSCommentService") |
| 47 |
- protected EgovBBSCommentService bbsCommentService; |
|
| 47 |
+ protected BBSCommentService bbsCommentService; |
|
| 48 | 48 |
|
| 49 | 49 |
@Resource(name = "propertiesService") |
| 50 | 50 |
protected EgovPropertyService propertyService; |
--- base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSManageController.java
+++ base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSManageController.java
... | ... | @@ -1,11 +1,11 @@ |
| 1 | 1 |
package egovframework.com.cop.cmy.web; |
| 2 | 2 |
|
| 3 |
-import java.math.BigDecimal; |
|
| 4 | 3 |
import java.util.List; |
| 5 | 4 |
import java.util.Map; |
| 6 | 5 |
|
| 7 | 6 |
import javax.annotation.Resource; |
| 8 | 7 |
|
| 8 |
+import egovframework.com.cop.bbs.service.*; |
|
| 9 | 9 |
import org.apache.log4j.Logger; |
| 10 | 10 |
import net.sf.json.JSONObject; |
| 11 | 11 |
import org.springframework.beans.factory.annotation.Autowired; |
... | ... | @@ -23,13 +23,6 @@ |
| 23 | 23 |
import egovframework.com.cmm.service.EgovFileMngService; |
| 24 | 24 |
import egovframework.com.cmm.service.EgovFileMngUtil; |
| 25 | 25 |
import egovframework.com.cmm.service.FileVO; |
| 26 |
-import egovframework.com.cop.bbs.service.Board; |
|
| 27 |
-import egovframework.com.cop.bbs.service.BoardMasterVO; |
|
| 28 |
-import egovframework.com.cop.bbs.service.BoardVO; |
|
| 29 |
-import egovframework.com.cop.bbs.service.Ctgry; |
|
| 30 |
-import egovframework.com.cop.bbs.service.EgovBBSAttributeManageService; |
|
| 31 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryService; |
|
| 32 |
-import egovframework.com.cop.bbs.service.EgovBBSManageService; |
|
| 33 | 26 |
import egovframework.com.cop.cmy.service.CommunityUser; |
| 34 | 27 |
import egovframework.com.cop.cmy.service.EgovCommunityManageService; |
| 35 | 28 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
... | ... | @@ -47,33 +40,18 @@ |
| 47 | 40 |
import javax.servlet.http.HttpServletResponse; |
| 48 | 41 |
|
| 49 | 42 |
|
| 50 |
-/** |
|
| 51 |
- * 게시물 관리를 위한 컨트롤러 클래스 |
|
| 52 |
- * |
|
| 53 |
- * @author 공통서비스개발팀 이삼섭 |
|
| 54 |
- * @since 2009.06.01 |
|
| 55 |
- * @version 1.0 |
|
| 56 |
- * @see <pre> |
|
| 57 |
- * << 개정이력(Modification Information) >> |
|
| 58 |
- * |
|
| 59 |
- * 수정일 수정자 수정내용 |
|
| 60 |
- * ------- -------- --------------------------- |
|
| 61 |
- * 2009.3.19 이삼섭 최초 생성 |
|
| 62 |
- * 2009.06.29 한성곤 |
|
| 63 |
- * |
|
| 64 |
- * </pre> |
|
| 65 |
- */ |
|
| 43 |
+//게시물 관리를 위한 컨트롤러 클래스 |
|
| 66 | 44 |
@Controller("EgovCmyBBSManageController")
|
| 67 | 45 |
public class EgovBBSManageController {
|
| 68 | 46 |
|
| 69 | 47 |
@Resource(name = "EgovBBSManageService") |
| 70 |
- private EgovBBSManageService bbsMngService; |
|
| 48 |
+ private BBSManageService bbsMngService; |
|
| 71 | 49 |
|
| 72 | 50 |
@Resource(name = "bbsAttributeManageService") |
| 73 |
- private EgovBBSAttributeManageService bbsAttrbService; |
|
| 51 |
+ private BBSAttributeManageService bbsAttrbService; |
|
| 74 | 52 |
|
| 75 |
- @Resource(name = "EgovBBSCtgryService") |
|
| 76 |
- private EgovBBSCtgryService ctgryService; |
|
| 53 |
+ @Resource(name = "bbsCtgryService") |
|
| 54 |
+ private BBSCtgryService ctgryService; |
|
| 77 | 55 |
|
| 78 | 56 |
@Resource(name = "siteManageService") |
| 79 | 57 |
SiteManageService siteManageService; |
... | ... | @@ -101,12 +79,7 @@ |
| 101 | 79 |
|
| 102 | 80 |
Logger log = Logger.getLogger(this.getClass()); |
| 103 | 81 |
|
| 104 |
- /** |
|
| 105 |
- * XSS 방지 처리. |
|
| 106 |
- * |
|
| 107 |
- * @param data |
|
| 108 |
- * @return |
|
| 109 |
- */ |
|
| 82 |
+ //XSS 방지 처리. |
|
| 110 | 83 |
protected String unscript(String data) {
|
| 111 | 84 |
if(data == null || data.trim().equals("")) {
|
| 112 | 85 |
return ""; |
... | ... | @@ -133,15 +106,7 @@ |
| 133 | 106 |
} |
| 134 | 107 |
|
| 135 | 108 |
|
| 136 |
- /** |
|
| 137 |
- * 게시물에 대한 목록을 조회한다. |
|
| 138 |
- * |
|
| 139 |
- * @param boardVO |
|
| 140 |
- * @param sessionVO |
|
| 141 |
- * @param model |
|
| 142 |
- * @return |
|
| 143 |
- * @throws Exception |
|
| 144 |
- */ |
|
| 109 |
+ //게시물에 대한 목록을 조회한다. |
|
| 145 | 110 |
@RequestMapping(value = "/cop/cmy/bbs/selectBoardList.do") |
| 146 | 111 |
public String selectBoardArticles(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 147 | 112 |
|
... | ... | @@ -200,7 +165,7 @@ |
| 200 | 165 |
paginationInfo.setTotalRecordCount(totCnt); |
| 201 | 166 |
|
| 202 | 167 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 203 |
- Ctgry ctgry = new Ctgry(); |
|
| 168 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 204 | 169 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 205 | 170 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 206 | 171 |
model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry));
|
... | ... | @@ -228,15 +193,7 @@ |
| 228 | 193 |
return "cop/cmy/bbs/cmy_001/EgovNoticeList"; |
| 229 | 194 |
} |
| 230 | 195 |
|
| 231 |
- /** |
|
| 232 |
- * 게시물에 대한 상세 정보를 조회한다. |
|
| 233 |
- * |
|
| 234 |
- * @param boardVO |
|
| 235 |
- * @param sessionVO |
|
| 236 |
- * @param model |
|
| 237 |
- * @return |
|
| 238 |
- * @throws Exception |
|
| 239 |
- */ |
|
| 196 |
+ //게시물에 대한 상세 정보를 조회한다. |
|
| 240 | 197 |
@RequestMapping(value = "/cop/cmy/bbs/selectBoardArticle.do") |
| 241 | 198 |
public String selectBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 242 | 199 |
|
... | ... | @@ -293,15 +250,7 @@ |
| 293 | 250 |
return "forward:/cop/cmy/bbs/selectBoardList.do"; |
| 294 | 251 |
} |
| 295 | 252 |
|
| 296 |
- /** |
|
| 297 |
- * 게시물 등록을 위한 등록페이지로 이동한다. |
|
| 298 |
- * |
|
| 299 |
- * @param boardVO |
|
| 300 |
- * @param sessionVO |
|
| 301 |
- * @param model |
|
| 302 |
- * @return |
|
| 303 |
- * @throws Exception |
|
| 304 |
- */ |
|
| 253 |
+ //게시물 등록을 위한 등록페이지로 이동한다. |
|
| 305 | 254 |
@RequestMapping(value = "/cop/cmy/bbs/addBoardArticle.do") |
| 306 | 255 |
public String addBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 307 | 256 |
|
... | ... | @@ -323,7 +272,7 @@ |
| 323 | 272 |
|
| 324 | 273 |
if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) {
|
| 325 | 274 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 326 |
- Ctgry ctgry = new Ctgry(); |
|
| 275 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 327 | 276 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 328 | 277 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 329 | 278 |
|
... | ... | @@ -364,17 +313,7 @@ |
| 364 | 313 |
return "forward:/cop/cmy/bbs/selectBoardList.do"; |
| 365 | 314 |
} |
| 366 | 315 |
|
| 367 |
- /** |
|
| 368 |
- * 게시물을 등록한다. |
|
| 369 |
- * |
|
| 370 |
- * @param boardVO |
|
| 371 |
- * @param board |
|
| 372 |
- * @param sessionVO |
|
| 373 |
- * @param model |
|
| 374 |
- * @return |
|
| 375 |
- * @throws Exception |
|
| 376 |
- */ |
|
| 377 |
- @SuppressWarnings("unchecked")
|
|
| 316 |
+ //게시물을 등록한다. |
|
| 378 | 317 |
@RequestMapping(value = "/cop/cmy/bbs/insertBoardArticle.do") |
| 379 | 318 |
public String insertBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO,
|
| 380 | 319 |
Board board, BindingResult bindingResult, |
... | ... | @@ -413,7 +352,7 @@ |
| 413 | 352 |
|
| 414 | 353 |
if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) {
|
| 415 | 354 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 416 |
- Ctgry ctgry = new Ctgry(); |
|
| 355 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 417 | 356 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 418 | 357 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 419 | 358 |
|
... | ... | @@ -457,15 +396,7 @@ |
| 457 | 396 |
return "forward:/cop/cmy/bbs/selectBoardList.do"; |
| 458 | 397 |
} |
| 459 | 398 |
|
| 460 |
- /** |
|
| 461 |
- * 게시물에 대한 답변 등록을 위한 등록페이지로 이동한다. |
|
| 462 |
- * |
|
| 463 |
- * @param boardVO |
|
| 464 |
- * @param sessionVO |
|
| 465 |
- * @param model |
|
| 466 |
- * @return |
|
| 467 |
- * @throws Exception |
|
| 468 |
- */ |
|
| 399 |
+ //게시물에 대한 답변 등록을 위한 등록페이지로 이동한다. |
|
| 469 | 400 |
@RequestMapping(value = "/cop/cmy/bbs/addReplyBoardArticle.do") |
| 470 | 401 |
public String addReplyBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 471 | 402 |
|
... | ... | @@ -549,17 +480,7 @@ |
| 549 | 480 |
return "forward:/cop/cmy/bbs/selectBoardList.do"; |
| 550 | 481 |
} |
| 551 | 482 |
|
| 552 |
- /** |
|
| 553 |
- * 게시물에 대한 답변을 등록한다. |
|
| 554 |
- * |
|
| 555 |
- * @param boardVO |
|
| 556 |
- * @param board |
|
| 557 |
- * @param sessionVO |
|
| 558 |
- * @param model |
|
| 559 |
- * @return |
|
| 560 |
- * @throws Exception |
|
| 561 |
- */ |
|
| 562 |
- @SuppressWarnings("unchecked")
|
|
| 483 |
+ //게시물에 대한 답변을 등록한다. |
|
| 563 | 484 |
@RequestMapping(value = "/cop/cmy/bbs/replyBoardArticle.do") |
| 564 | 485 |
public String replyBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO,
|
| 565 | 486 |
Board board, BindingResult bindingResult, |
... | ... | @@ -672,16 +593,7 @@ |
| 672 | 593 |
return "forward:/cop/cmy/bbs/selectBoardList.do"; |
| 673 | 594 |
} |
| 674 | 595 |
|
| 675 |
- /** |
|
| 676 |
- * 게시물 수정을 위한 수정페이지로 이동한다. |
|
| 677 |
- * |
|
| 678 |
- * @param boardVO |
|
| 679 |
- * @param vo |
|
| 680 |
- * @param sessionVO |
|
| 681 |
- * @param model |
|
| 682 |
- * @return |
|
| 683 |
- * @throws Exception |
|
| 684 |
- */ |
|
| 596 |
+ //게시물 수정을 위한 수정페이지로 이동한다. |
|
| 685 | 597 |
@RequestMapping(value = "/cop/cmy/bbs/forUpdateBoardArticle.do") |
| 686 | 598 |
public String selectBoardArticleForUpdt(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 687 | 599 |
|
... | ... | @@ -725,7 +637,7 @@ |
| 725 | 637 |
|
| 726 | 638 |
if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){
|
| 727 | 639 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 728 |
- Ctgry ctgry = new Ctgry(); |
|
| 640 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 729 | 641 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 730 | 642 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 731 | 643 |
|
... | ... | @@ -752,17 +664,7 @@ |
| 752 | 664 |
return "forward:/cop/cmy/bbs/selectBoardList.do"; |
| 753 | 665 |
} |
| 754 | 666 |
|
| 755 |
- /** |
|
| 756 |
- * 게시물에 대한 내용을 수정한다. |
|
| 757 |
- * |
|
| 758 |
- * @param boardVO |
|
| 759 |
- * @param board |
|
| 760 |
- * @param sessionVO |
|
| 761 |
- * @param model |
|
| 762 |
- * @return |
|
| 763 |
- * @throws Exception |
|
| 764 |
- */ |
|
| 765 |
- @SuppressWarnings("unchecked")
|
|
| 667 |
+ //게시물에 대한 내용을 수정한다. |
|
| 766 | 668 |
@RequestMapping(value = "/cop/cmy/bbs/updateBoardArticle.do") |
| 767 | 669 |
public String updateBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO,
|
| 768 | 670 |
BoardVO board, BindingResult bindingResult, |
... | ... | @@ -802,7 +704,7 @@ |
| 802 | 704 |
|
| 803 | 705 |
if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) {
|
| 804 | 706 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 805 |
- Ctgry ctgry = new Ctgry(); |
|
| 707 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 806 | 708 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 807 | 709 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 808 | 710 |
|
... | ... | @@ -866,16 +768,7 @@ |
| 866 | 768 |
return "forward:/cop/cmy/bbs/selectBoardList.do"; |
| 867 | 769 |
} |
| 868 | 770 |
|
| 869 |
- /** |
|
| 870 |
- * 게시물에 대한 내용을 삭제한다. |
|
| 871 |
- * |
|
| 872 |
- * @param boardVO |
|
| 873 |
- * @param board |
|
| 874 |
- * @param sessionVO |
|
| 875 |
- * @param model |
|
| 876 |
- * @return |
|
| 877 |
- * @throws Exception |
|
| 878 |
- */ |
|
| 771 |
+ //게시물에 대한 내용을 삭제한다. |
|
| 879 | 772 |
@RequestMapping(value = "/cop/cmy/bbs/deleteBoardArticle.do") |
| 880 | 773 |
public String deleteBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 881 | 774 |
|
--- base/src/main/java/egovframework/com/mng/cop/bbs/web/EgovBBSAttributeManageController.java
+++ base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSAttributeManageController.java
... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 |
import javax.servlet.http.HttpServletRequest; |
| 7 | 7 |
import javax.servlet.http.HttpServletResponse; |
| 8 | 8 |
|
| 9 |
+import egovframework.com.cop.bbs.service.CtgryMasterVO; |
|
| 9 | 10 |
import org.apache.log4j.Logger; |
| 10 | 11 |
import org.springframework.beans.factory.annotation.Autowired; |
| 11 | 12 |
import org.springframework.stereotype.Controller; |
... | ... | @@ -17,9 +18,8 @@ |
| 17 | 18 |
|
| 18 | 19 |
import egovframework.com.cmm.service.CmmUseService; |
| 19 | 20 |
import egovframework.com.cop.bbs.service.BoardMasterVO; |
| 20 |
-import egovframework.com.cop.bbs.service.CtgryMaster; |
|
| 21 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryMasterService; |
|
| 22 |
-import egovframework.com.cop.bbs.service.EgovBBSAttributeManageService; |
|
| 21 |
+import egovframework.com.cop.bbs.service.BBSCtgryMasterService; |
|
| 22 |
+import egovframework.com.cop.bbs.service.BBSAttributeManageService; |
|
| 23 | 23 |
import egovframework.com.cop.com.service.BbsSourcService; |
| 24 | 24 |
import egovframework.com.cop.com.service.BbsSourcVO; |
| 25 | 25 |
import egovframework.com.cop.com.service.BbsTmplatService; |
... | ... | @@ -32,27 +32,12 @@ |
| 32 | 32 |
import egovframework.rte.fdl.string.EgovStringUtil; |
| 33 | 33 |
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
| 34 | 34 |
|
| 35 |
-/** |
|
| 36 |
- * 게시판 속성관리를 위한 컨트롤러 클래스 |
|
| 37 |
- * |
|
| 38 |
- * @author 공통서비스개발팀 이삼섭 |
|
| 39 |
- * @since 2009.06.01 |
|
| 40 |
- * @version 1.0 |
|
| 41 |
- * @see <pre> |
|
| 42 |
- * << 개정이력(Modification Information) >> |
|
| 43 |
- * |
|
| 44 |
- * 수정일 수정자 수정내용 |
|
| 45 |
- * ------- -------- --------------------------- |
|
| 46 |
- * 2009.3.12 이삼섭 최초 생성 |
|
| 47 |
- * 2009.06.26 한성곤 2단계 기능 추가 (댓글관리, 만족도조사) |
|
| 48 |
- * |
|
| 49 |
- * </pre> |
|
| 50 |
- */ |
|
| 51 |
-@Controller("mngEgovBBSAttributeManageController")
|
|
| 52 |
-public class EgovBBSAttributeManageController {
|
|
| 35 |
+//게시판 속성관리를 위한 컨트롤러 클래스 |
|
| 36 |
+@Controller |
|
| 37 |
+public class BBSAttributeManageController {
|
|
| 53 | 38 |
|
| 54 | 39 |
@Resource(name = "bbsAttributeManageService") |
| 55 |
- private EgovBBSAttributeManageService bbsAttrbService; |
|
| 40 |
+ private BBSAttributeManageService bbsAttrbService; |
|
| 56 | 41 |
|
| 57 | 42 |
@Resource(name = "cmmUseService") |
| 58 | 43 |
private CmmUseService cmmUseService; |
... | ... | @@ -60,8 +45,8 @@ |
| 60 | 45 |
@Resource(name = "egovAuthorManageService") |
| 61 | 46 |
private EgovAuthorManageService egovAuthorManageService; |
| 62 | 47 |
|
| 63 |
- @Resource(name = "EgovBBSCtgryMasterService") |
|
| 64 |
- private EgovBBSCtgryMasterService egovBBSCtgryMasterService; |
|
| 48 |
+ @Resource(name = "bbsCtgryMasterService") |
|
| 49 |
+ private BBSCtgryMasterService bbsCtgryMasterService; |
|
| 65 | 50 |
|
| 66 | 51 |
@Resource(name = "bbsTmplatService") |
| 67 | 52 |
private BbsTmplatService bbsTmplatService; |
... | ... | @@ -77,12 +62,10 @@ |
| 77 | 62 |
|
| 78 | 63 |
|
| 79 | 64 |
Logger log = Logger.getLogger(this.getClass()); |
| 80 |
- |
|
| 81 |
- |
|
| 82 |
- |
|
| 83 |
- //신규 게시판 마스터 등록을 위한 등록페이지로 이동한다. |
|
| 84 |
- @RequestMapping("/mng/cop/bbs/addBBSMaster.do")
|
|
| 85 |
- public String addBBSMaster(@ModelAttribute("searchVO") BoardMasterVO boardMasterVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 65 |
+ |
|
| 66 |
+ //신규 게시판 마스터 등록을 위한 등록페이지로 이동한다. |
|
| 67 |
+ @RequestMapping("/mng/cop/bbs/addBBSMaster.do")
|
|
| 68 |
+ public String addBBSMaster(@ModelAttribute("searchVO") BoardMasterVO boardMasterVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 86 | 69 |
|
| 87 | 70 |
//model.addAttribute("siteList", siteManageService.selectSiteSimpleList());
|
| 88 | 71 |
|
... | ... | @@ -91,13 +74,13 @@ |
| 91 | 74 |
model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo));
|
| 92 | 75 |
|
| 93 | 76 |
model.addAttribute("authList", egovAuthorManageService.selectAuthorAllList(null));
|
| 94 |
- |
|
| 95 |
- CtgryMaster ctgrymasterVO = new CtgryMaster(); |
|
| 77 |
+ |
|
| 78 |
+ CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); |
|
| 96 | 79 |
ctgrymasterVO.setSiteId(boardMasterVO.getSiteId()); |
| 97 | 80 |
ctgrymasterVO.setSysTyCode(boardMasterVO.getSysTyCode()); |
| 98 | 81 |
ctgrymasterVO.setFirstIndex(0); |
| 99 | 82 |
ctgrymasterVO.setRecordCountPerPage(999999999); |
| 100 |
- model.addAttribute("ctgrymasterList", egovBBSCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 83 |
+ model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 101 | 84 |
|
| 102 | 85 |
model.addAttribute("boardMaster", boardMasterVO);
|
| 103 | 86 |
|
... | ... | @@ -109,9 +92,9 @@ |
| 109 | 92 |
return "mng/cop/bbs/EgovBoardMstrRegist"; |
| 110 | 93 |
} |
| 111 | 94 |
|
| 112 |
- //신규 게시판 마스터 정보를 등록한다. |
|
| 113 |
- @RequestMapping("/mng/cop/bbs/insertBBSMasterInf.do")
|
|
| 114 |
- public String insertBBSMasterInf(@ModelAttribute("searchVO") BoardMasterVO boardMasterVO, @ModelAttribute("boardMaster") BoardMasterVO boardMaster, BindingResult bindingResult, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
|
|
| 95 |
+ //신규 게시판 마스터 정보를 등록한다. |
|
| 96 |
+ @RequestMapping("/mng/cop/bbs/insertBBSMasterInf.do")
|
|
| 97 |
+ public String insertBBSMasterInf(@ModelAttribute("searchVO") BoardMasterVO boardMasterVO, @ModelAttribute("boardMaster") BoardMasterVO boardMaster, BindingResult bindingResult, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
|
|
| 115 | 98 |
|
| 116 | 99 |
if(request.getSession().getAttribute("sessionVO") == null) {
|
| 117 | 100 |
return "forward:/mng/cop/bbs/SelectBBSMasterInfs.do"; |
... | ... | @@ -129,13 +112,13 @@ |
| 129 | 112 |
model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo));
|
| 130 | 113 |
|
| 131 | 114 |
model.addAttribute("authList", egovAuthorManageService.selectAuthorAllList(null));
|
| 132 |
- |
|
| 133 |
- CtgryMaster ctgrymasterVO = new CtgryMaster(); |
|
| 115 |
+ |
|
| 116 |
+ CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); |
|
| 134 | 117 |
ctgrymasterVO.setSiteId(boardMasterVO.getSiteId()); |
| 135 | 118 |
ctgrymasterVO.setSysTyCode(boardMasterVO.getSysTyCode()); |
| 136 | 119 |
ctgrymasterVO.setFirstIndex(0); |
| 137 | 120 |
ctgrymasterVO.setRecordCountPerPage(999999999); |
| 138 |
- model.addAttribute("ctgrymasterList", egovBBSCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 121 |
+ model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 139 | 122 |
|
| 140 | 123 |
model.addAttribute("fileStoreTemplateWebPathByPreFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByPreFile"));
|
| 141 | 124 |
model.addAttribute("fileStoreSourcWebPathByPreFile", propertyService.getString("publish.sourc.bbs.fileStoreWebPathByPreFile"));
|
... | ... | @@ -199,13 +182,13 @@ |
| 199 | 182 |
model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo));
|
| 200 | 183 |
|
| 201 | 184 |
model.addAttribute("authList", egovAuthorManageService.selectAuthorAllList(null));
|
| 202 |
- |
|
| 203 |
- CtgryMaster ctgrymasterVO = new CtgryMaster(); |
|
| 185 |
+ |
|
| 186 |
+ CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); |
|
| 204 | 187 |
ctgrymasterVO.setSiteId(searchVO.getSiteId()); |
| 205 | 188 |
ctgrymasterVO.setSysTyCode(searchVO.getSysTyCode()); |
| 206 | 189 |
ctgrymasterVO.setFirstIndex(0); |
| 207 | 190 |
ctgrymasterVO.setRecordCountPerPage(999999999); |
| 208 |
- model.addAttribute("ctgrymasterList", egovBBSCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 191 |
+ model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 209 | 192 |
|
| 210 | 193 |
BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(searchVO); |
| 211 | 194 |
model.addAttribute("boardMaster", master);
|
... | ... | @@ -252,13 +235,13 @@ |
| 252 | 235 |
model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo));
|
| 253 | 236 |
|
| 254 | 237 |
model.addAttribute("authList", egovAuthorManageService.selectAuthorAllList(null));
|
| 255 |
- |
|
| 256 |
- CtgryMaster ctgrymasterVO = new CtgryMaster(); |
|
| 238 |
+ |
|
| 239 |
+ CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); |
|
| 257 | 240 |
ctgrymasterVO.setSiteId(boardMasterVO.getSiteId()); |
| 258 | 241 |
ctgrymasterVO.setSysTyCode(boardMasterVO.getSysTyCode()); |
| 259 | 242 |
ctgrymasterVO.setFirstIndex(0); |
| 260 | 243 |
ctgrymasterVO.setRecordCountPerPage(999999999); |
| 261 |
- model.addAttribute("ctgrymasterList", egovBBSCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 244 |
+ model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO));
|
|
| 262 | 245 |
|
| 263 | 246 |
BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(boardMasterVO); |
| 264 | 247 |
model.addAttribute("boardMaster", master);
|
--- base/src/main/java/egovframework/com/mng/cop/bbs/web/EgovBBSCommentController.java
+++ base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSCommentController.java
... | ... | @@ -1,362 +1,362 @@ |
| 1 |
-package egovframework.com.mng.cop.bbs.web; |
|
| 2 |
- |
|
| 3 |
-import java.util.Map; |
|
| 4 |
- |
|
| 5 |
-import javax.annotation.Resource; |
|
| 6 |
-import javax.servlet.http.HttpServletRequest; |
|
| 7 |
-import javax.servlet.http.HttpServletResponse; |
|
| 8 |
- |
|
| 9 |
-import org.apache.log4j.Logger; |
|
| 10 |
-import org.springframework.beans.factory.annotation.Autowired; |
|
| 11 |
-import org.springframework.stereotype.Controller; |
|
| 12 |
-import org.springframework.ui.ModelMap; |
|
| 13 |
-import org.springframework.validation.BindingResult; |
|
| 14 |
-import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 15 |
-import org.springframework.web.bind.annotation.RequestMapping; |
|
| 16 |
-import org.springmodules.validation.commons.DefaultBeanValidator; |
|
| 17 |
- |
|
| 18 |
-import egovframework.com.cmm.EgovMessageSource; |
|
| 19 |
-import egovframework.com.cop.bbs.service.Comment; |
|
| 20 |
-import egovframework.com.cop.bbs.service.CommentVO; |
|
| 21 |
-import egovframework.com.cop.bbs.service.EgovBBSCommentService; |
|
| 22 |
-import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 23 |
-import egovframework.com.uat.uia.service.LoginVO; |
|
| 24 |
-import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 25 |
-import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
|
| 26 |
- |
|
| 27 |
-/** |
|
| 28 |
- * 댓글관리 서비스 컨트롤러 클래스 |
|
| 29 |
- * |
|
| 30 |
- * @author 공통컴포넌트개발팀 한성곤 |
|
| 31 |
- * @since 2009.06.29 |
|
| 32 |
- * @version 1.0 |
|
| 33 |
- * @see <pre> |
|
| 34 |
- * << 개정이력(Modification Information) >> |
|
| 35 |
- * |
|
| 36 |
- * 수정일 수정자 수정내용 |
|
| 37 |
- * ------- -------- --------------------------- |
|
| 38 |
- * 2009.06.29 한성곤 최초 생성 |
|
| 39 |
- * |
|
| 40 |
- * Copyright (C) 2009 by MOPAS All right reserved. |
|
| 41 |
- * </pre> |
|
| 42 |
- */ |
|
| 43 |
-@Controller("mngEgovBBSCommentController")
|
|
| 44 |
-public class EgovBBSCommentController {
|
|
| 45 |
- |
|
| 46 |
- @Resource(name = "EgovBBSCommentService") |
|
| 47 |
- protected EgovBBSCommentService bbsCommentService; |
|
| 48 |
- |
|
| 49 |
- @Resource(name = "propertiesService") |
|
| 50 |
- protected EgovPropertyService propertyService; |
|
| 51 |
- |
|
| 52 |
- @Resource(name = "egovMessageSource") |
|
| 53 |
- EgovMessageSource egovMessageSource; |
|
| 54 |
- |
|
| 55 |
- @Autowired |
|
| 56 |
- private DefaultBeanValidator beanValidator; |
|
| 57 |
- |
|
| 58 |
- Logger log = Logger.getLogger(this.getClass()); |
|
| 59 |
- |
|
| 60 |
-/** |
|
| 61 |
- * XSS 방지 처리. |
|
| 62 |
- * |
|
| 63 |
- * @param data |
|
| 64 |
- * @return |
|
| 65 |
- */ |
|
| 66 |
-protected String unscript(String data) {
|
|
| 67 |
- if(data == null || data.trim().equals("")) {
|
|
| 68 |
- return ""; |
|
| 69 |
- } |
|
| 70 |
- |
|
| 71 |
- String ret = data; |
|
| 72 |
- |
|
| 73 |
- ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script");
|
|
| 74 |
- ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "</script");
|
|
| 75 |
- |
|
| 76 |
- ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "<object");
|
|
| 77 |
- ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "</object");
|
|
| 78 |
- |
|
| 79 |
- ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "<applet");
|
|
| 80 |
- ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "</applet");
|
|
| 81 |
- |
|
| 82 |
- // ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 83 |
- // ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 84 |
- |
|
| 85 |
- ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 86 |
- ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 87 |
- |
|
| 88 |
- return ret; |
|
| 89 |
-} |
|
| 90 |
- |
|
| 91 |
- /** |
|
| 92 |
- * 댓글관리 목록 조회를 제공한다. |
|
| 93 |
- * |
|
| 94 |
- * @param boardVO |
|
| 95 |
- * @param model |
|
| 96 |
- * @return |
|
| 97 |
- * @throws Exception |
|
| 98 |
- */ |
|
| 99 |
- @RequestMapping("/mng/cop/bbs/selectCommentList.do")
|
|
| 100 |
- public String selectCommentList(@ModelAttribute("searchVO") CommentVO commentVO, ModelMap model, String urlPrefix, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 101 |
- |
|
| 102 |
- try {
|
|
| 103 |
- // 수정 처리된 후 댓글 등록 화면으로 처리되기 위한 구현 |
|
| 104 |
- if(commentVO.isModified()) {
|
|
| 105 |
- commentVO.setCommentNo(null); |
|
| 106 |
- commentVO.setCommentCn("");
|
|
| 107 |
- } |
|
| 108 |
- |
|
| 109 |
- // 수정을 위한 처리 |
|
| 110 |
- if(commentVO.getCommentNo() != null) {
|
|
| 111 |
- return "forward:/mng/cop/bbs/selectSingleComment.do"; |
|
| 112 |
- } |
|
| 113 |
- |
|
| 114 |
- model.addAttribute("type", commentVO.getType()); // head or body
|
|
| 115 |
- |
|
| 116 |
- if(commentVO.getType().equals("head")) {
|
|
| 117 |
- return "mng/cop/bbs/default/EgovCommentList"; |
|
| 118 |
- } |
|
| 119 |
- // //---------------------------------------- |
|
| 120 |
- |
|
| 121 |
- Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); |
|
| 122 |
- if(isAuthenticated) {
|
|
| 123 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 124 |
- |
|
| 125 |
- model.addAttribute("sessionUniqId", user.getId());
|
|
| 126 |
- model.addAttribute("sessionUniqNm", user.getName());
|
|
| 127 |
- |
|
| 128 |
- commentVO.setWrterNm(user.getName()); |
|
| 129 |
- } |
|
| 130 |
- |
|
| 131 |
- commentVO.setSubPageUnit(propertyService.getInt("pageUnit"));
|
|
| 132 |
- commentVO.setSubPageSize(propertyService.getInt("pageSize"));
|
|
| 133 |
- |
|
| 134 |
- PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 135 |
- paginationInfo.setCurrentPageNo(commentVO.getSubPageIndex()); |
|
| 136 |
- paginationInfo.setRecordCountPerPage(commentVO.getSubPageUnit()); |
|
| 137 |
- paginationInfo.setPageSize(commentVO.getSubPageSize()); |
|
| 138 |
- |
|
| 139 |
- commentVO.setSubFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 140 |
- commentVO.setSubLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 141 |
- commentVO.setSubRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 142 |
- |
|
| 143 |
- Map<String, Object> map = bbsCommentService.selectCommentList(commentVO); |
|
| 144 |
- int totCnt = Integer.parseInt((String)map.get("resultCnt"));
|
|
| 145 |
- |
|
| 146 |
- paginationInfo.setTotalRecordCount(totCnt); |
|
| 147 |
- |
|
| 148 |
- model.addAttribute("resultList", map.get("resultList"));
|
|
| 149 |
- model.addAttribute("resultCnt", map.get("resultCnt"));
|
|
| 150 |
- model.addAttribute("paginationInfo", paginationInfo);
|
|
| 151 |
- |
|
| 152 |
- commentVO.setCommentCn(""); // 등록 후 댓글 내용 처리
|
|
| 153 |
- } catch(Exception ex) {
|
|
| 154 |
- ex.printStackTrace(); |
|
| 155 |
- } |
|
| 156 |
- return "mng/cop/bbs/default/EgovCommentList"; |
|
| 157 |
- } |
|
| 158 |
- |
|
| 159 |
- /** |
|
| 160 |
- * 댓글을 등록한다. |
|
| 161 |
- * |
|
| 162 |
- * @param commentVO |
|
| 163 |
- * @param comment |
|
| 164 |
- * @param bindingResult |
|
| 165 |
- * @param model |
|
| 166 |
- * @return |
|
| 167 |
- * @throws Exception |
|
| 168 |
- */ |
|
| 169 |
- @RequestMapping("/mng/cop/bbs/insertComment.do")
|
|
| 170 |
- public String insertComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") Comment comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 171 |
- |
|
| 172 |
- if(request.getSession().getAttribute("sessionCommentVO") != null && comment.getCommentCn().equals((String)request.getSession().getAttribute("sessionCommentVO"))) {
|
|
| 173 |
- return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 174 |
- } |
|
| 175 |
- |
|
| 176 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 177 |
- |
|
| 178 |
- beanValidator.validate(comment, bindingResult); |
|
| 179 |
- if(bindingResult.hasErrors()) {
|
|
| 180 |
- model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 181 |
- |
|
| 182 |
- return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 183 |
- } |
|
| 184 |
- |
|
| 185 |
- comment.setFrstRegisterId(user.getId()); |
|
| 186 |
- comment.setWrterNm(user.getName()); |
|
| 187 |
- comment.setCommentCn(unscript(comment.getCommentCn())); |
|
| 188 |
- bbsCommentService.insertComment(comment); |
|
| 189 |
- |
|
| 190 |
- request.getSession().setAttribute("sessionCommentVO", comment.getCommentCn());
|
|
| 191 |
- |
|
| 192 |
- commentVO.setCommentCn("");
|
|
| 193 |
- commentVO.setCommentNo(null); |
|
| 194 |
- |
|
| 195 |
- |
|
| 196 |
- return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 197 |
- } |
|
| 198 |
- |
|
| 199 |
- /** |
|
| 200 |
- * 댓글에 댓글을 등록한다 |
|
| 201 |
- * @param commentVO |
|
| 202 |
- * @param comment |
|
| 203 |
- * @param bindingResult |
|
| 204 |
- * @param model |
|
| 205 |
- * @param request |
|
| 206 |
- * @return |
|
| 207 |
- * @throws Exception |
|
| 208 |
- */ |
|
| 209 |
- @RequestMapping("/mng/cop/bbs/insertReplyComment.do")
|
|
| 210 |
- public String insertReplyComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") Comment comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 211 |
- |
|
| 212 |
- if(request.getSession().getAttribute("sessionCommentVO") != null && comment.getCommentCn().equals((String)request.getSession().getAttribute("sessionCommentVO"))) {
|
|
| 213 |
- return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 214 |
- } |
|
| 215 |
- |
|
| 216 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 217 |
- |
|
| 218 |
- beanValidator.validate(comment, bindingResult); |
|
| 219 |
- if(bindingResult.hasErrors()) {
|
|
| 220 |
- model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 221 |
- |
|
| 222 |
- return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 223 |
- } |
|
| 224 |
- |
|
| 225 |
- commentVO.setFrstRegisterId(user.getId()); |
|
| 226 |
- commentVO.setWrterNm(user.getName()); |
|
| 227 |
- commentVO.setCommentCn(unscript(commentVO.getCommentCn())); |
|
| 228 |
- |
|
| 229 |
- bbsCommentService.insertReplyComment(commentVO); |
|
| 230 |
- |
|
| 231 |
- request.getSession().setAttribute("sessionCommentVO", comment.getCommentCn());
|
|
| 232 |
- |
|
| 233 |
- commentVO.setCommentCn("");
|
|
| 234 |
- commentVO.setCommentNo(null); |
|
| 235 |
- |
|
| 236 |
- return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 237 |
- } |
|
| 238 |
- |
|
| 239 |
- /** |
|
| 240 |
- * 댓글을 삭제한다. |
|
| 241 |
- * |
|
| 242 |
- * @param commentVO |
|
| 243 |
- * @param comment |
|
| 244 |
- * @param model |
|
| 245 |
- * @return |
|
| 246 |
- * @throws Exception |
|
| 247 |
- */ |
|
| 248 |
- @RequestMapping("/mng/cop/bbs/deleteComment.do")
|
|
| 249 |
- public String deleteComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") Comment comment, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 250 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 251 |
- Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); |
|
| 252 |
- |
|
| 253 |
- if(isAuthenticated) {
|
|
| 254 |
- commentVO.setLastUpdusrId(user.getId()); |
|
| 255 |
- bbsCommentService.deleteComment(commentVO); |
|
| 256 |
- } |
|
| 257 |
- |
|
| 258 |
- commentVO.setCommentCn("");
|
|
| 259 |
- commentVO.setCommentNo(null); |
|
| 260 |
- |
|
| 261 |
- return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 262 |
- } |
|
| 263 |
- |
|
| 264 |
- /** |
|
| 265 |
- * 댓글 수정 페이지로 이동한다. |
|
| 266 |
- * |
|
| 267 |
- * @param commentVO |
|
| 268 |
- * @param model |
|
| 269 |
- * @return |
|
| 270 |
- * @throws Exception |
|
| 271 |
- */ |
|
| 272 |
- @RequestMapping("/mng/cop/bbs/selectSingleComment.do")
|
|
| 273 |
- public String selectSingleComment(@ModelAttribute("searchVO") CommentVO commentVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 274 |
- |
|
| 275 |
- model.addAttribute("type", commentVO.getType()); // head or body
|
|
| 276 |
- |
|
| 277 |
- if(commentVO.getType().equals("head")) {
|
|
| 278 |
- return "mng/cop/bbs/default/EgovCommentList"; |
|
| 279 |
- } |
|
| 280 |
- // //---------------------------------------- |
|
| 281 |
- |
|
| 282 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 283 |
- |
|
| 284 |
- commentVO.setWrterNm(user.getName()); |
|
| 285 |
- |
|
| 286 |
- commentVO.setSubPageUnit(propertyService.getInt("pageUnit"));
|
|
| 287 |
- commentVO.setSubPageSize(propertyService.getInt("pageSize"));
|
|
| 288 |
- |
|
| 289 |
- PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 290 |
- paginationInfo.setCurrentPageNo(commentVO.getSubPageIndex()); |
|
| 291 |
- paginationInfo.setRecordCountPerPage(commentVO.getSubPageUnit()); |
|
| 292 |
- paginationInfo.setPageSize(commentVO.getSubPageSize()); |
|
| 293 |
- |
|
| 294 |
- commentVO.setSubFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 295 |
- commentVO.setSubLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 296 |
- commentVO.setSubRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 297 |
- |
|
| 298 |
- Map<String, Object> map = bbsCommentService.selectCommentList(commentVO); |
|
| 299 |
- int totCnt = Integer.parseInt((String)map.get("resultCnt"));
|
|
| 300 |
- |
|
| 301 |
- paginationInfo.setTotalRecordCount(totCnt); |
|
| 302 |
- |
|
| 303 |
- model.addAttribute("resultList", map.get("resultList"));
|
|
| 304 |
- model.addAttribute("resultCnt", map.get("resultCnt"));
|
|
| 305 |
- model.addAttribute("paginationInfo", paginationInfo);
|
|
| 306 |
- |
|
| 307 |
- Comment data = bbsCommentService.selectComment(commentVO); |
|
| 308 |
- |
|
| 309 |
- commentVO.setCommentNo(data.getCommentNo()); |
|
| 310 |
- commentVO.setNttNo(data.getNttNo()); |
|
| 311 |
- commentVO.setWrterNm(data.getWrterNm()); |
|
| 312 |
- commentVO.setCommentCn(data.getCommentCn()); |
|
| 313 |
- commentVO.setUseAt(data.getUseAt()); |
|
| 314 |
- commentVO.setFrstRegisterPnttm(data.getFrstRegisterPnttm()); |
|
| 315 |
- |
|
| 316 |
- request.getSession().setAttribute("sessionVO", commentVO);
|
|
| 317 |
- |
|
| 318 |
- return "mng/cop/bbs/default/EgovCommentList"; |
|
| 319 |
- } |
|
| 320 |
- |
|
| 321 |
- /** |
|
| 322 |
- * 댓글을 수정한다. |
|
| 323 |
- * |
|
| 324 |
- * @param commentVO |
|
| 325 |
- * @param comment |
|
| 326 |
- * @param bindingResult |
|
| 327 |
- * @param model |
|
| 328 |
- * @return |
|
| 329 |
- * @throws Exception |
|
| 330 |
- */ |
|
| 331 |
- @RequestMapping("/mng/cop/bbs/updateComment.do")
|
|
| 332 |
- public String updateCommentList(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") Comment comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 333 |
- |
|
| 334 |
- if(request.getSession().getAttribute("sessionVO") == null) {
|
|
| 335 |
- return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 336 |
- } |
|
| 337 |
- |
|
| 338 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 339 |
- Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); |
|
| 340 |
- |
|
| 341 |
- beanValidator.validate(comment, bindingResult); |
|
| 342 |
- if(bindingResult.hasErrors()) {
|
|
| 343 |
- model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 344 |
- |
|
| 345 |
- return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 346 |
- } |
|
| 347 |
- |
|
| 348 |
- if(isAuthenticated) {
|
|
| 349 |
- comment.setLastUpdusrId(user.getId()); |
|
| 350 |
- |
|
| 351 |
- bbsCommentService.updateComment(comment); |
|
| 352 |
- |
|
| 353 |
- commentVO.setCommentCn("");
|
|
| 354 |
- commentVO.setCommentNo(null); |
|
| 355 |
- |
|
| 356 |
- request.getSession().removeAttribute("sessionVO");
|
|
| 357 |
- } |
|
| 358 |
- |
|
| 359 |
- return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 360 |
- } |
|
| 361 |
- |
|
| 362 |
-} |
|
| 1 |
+package egovframework.com.mng.cop.bbs.web; |
|
| 2 |
+ |
|
| 3 |
+import java.util.Map; |
|
| 4 |
+ |
|
| 5 |
+import javax.annotation.Resource; |
|
| 6 |
+import javax.servlet.http.HttpServletRequest; |
|
| 7 |
+import javax.servlet.http.HttpServletResponse; |
|
| 8 |
+ |
|
| 9 |
+import org.apache.log4j.Logger; |
|
| 10 |
+import org.springframework.beans.factory.annotation.Autowired; |
|
| 11 |
+import org.springframework.stereotype.Controller; |
|
| 12 |
+import org.springframework.ui.ModelMap; |
|
| 13 |
+import org.springframework.validation.BindingResult; |
|
| 14 |
+import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 15 |
+import org.springframework.web.bind.annotation.RequestMapping; |
|
| 16 |
+import org.springmodules.validation.commons.DefaultBeanValidator; |
|
| 17 |
+ |
|
| 18 |
+import egovframework.com.cmm.EgovMessageSource; |
|
| 19 |
+import egovframework.com.cop.bbs.service.Comment; |
|
| 20 |
+import egovframework.com.cop.bbs.service.CommentVO; |
|
| 21 |
+import egovframework.com.cop.bbs.service.BBSCommentService; |
|
| 22 |
+import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 23 |
+import egovframework.com.uat.uia.service.LoginVO; |
|
| 24 |
+import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 25 |
+import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
|
| 26 |
+ |
|
| 27 |
+/** |
|
| 28 |
+ * 댓글관리 서비스 컨트롤러 클래스 |
|
| 29 |
+ * |
|
| 30 |
+ * @author 공통컴포넌트개발팀 한성곤 |
|
| 31 |
+ * @since 2009.06.29 |
|
| 32 |
+ * @version 1.0 |
|
| 33 |
+ * @see <pre> |
|
| 34 |
+ * << 개정이력(Modification Information) >> |
|
| 35 |
+ * |
|
| 36 |
+ * 수정일 수정자 수정내용 |
|
| 37 |
+ * ------- -------- --------------------------- |
|
| 38 |
+ * 2009.06.29 한성곤 최초 생성 |
|
| 39 |
+ * |
|
| 40 |
+ * Copyright (C) 2009 by MOPAS All right reserved. |
|
| 41 |
+ * </pre> |
|
| 42 |
+ */ |
|
| 43 |
+@Controller("mngEgovBBSCommentController")
|
|
| 44 |
+public class BBSCommentController {
|
|
| 45 |
+ |
|
| 46 |
+ @Resource(name = "EgovBBSCommentService") |
|
| 47 |
+ protected BBSCommentService bbsCommentService; |
|
| 48 |
+ |
|
| 49 |
+ @Resource(name = "propertiesService") |
|
| 50 |
+ protected EgovPropertyService propertyService; |
|
| 51 |
+ |
|
| 52 |
+ @Resource(name = "egovMessageSource") |
|
| 53 |
+ EgovMessageSource egovMessageSource; |
|
| 54 |
+ |
|
| 55 |
+ @Autowired |
|
| 56 |
+ private DefaultBeanValidator beanValidator; |
|
| 57 |
+ |
|
| 58 |
+ Logger log = Logger.getLogger(this.getClass()); |
|
| 59 |
+ |
|
| 60 |
+/** |
|
| 61 |
+ * XSS 방지 처리. |
|
| 62 |
+ * |
|
| 63 |
+ * @param data |
|
| 64 |
+ * @return |
|
| 65 |
+ */ |
|
| 66 |
+protected String unscript(String data) {
|
|
| 67 |
+ if(data == null || data.trim().equals("")) {
|
|
| 68 |
+ return ""; |
|
| 69 |
+ } |
|
| 70 |
+ |
|
| 71 |
+ String ret = data; |
|
| 72 |
+ |
|
| 73 |
+ ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script");
|
|
| 74 |
+ ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "</script");
|
|
| 75 |
+ |
|
| 76 |
+ ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "<object");
|
|
| 77 |
+ ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "</object");
|
|
| 78 |
+ |
|
| 79 |
+ ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "<applet");
|
|
| 80 |
+ ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "</applet");
|
|
| 81 |
+ |
|
| 82 |
+ // ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 83 |
+ // ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 84 |
+ |
|
| 85 |
+ ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 86 |
+ ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 87 |
+ |
|
| 88 |
+ return ret; |
|
| 89 |
+} |
|
| 90 |
+ |
|
| 91 |
+ /** |
|
| 92 |
+ * 댓글관리 목록 조회를 제공한다. |
|
| 93 |
+ * |
|
| 94 |
+ * @param boardVO |
|
| 95 |
+ * @param model |
|
| 96 |
+ * @return |
|
| 97 |
+ * @throws Exception |
|
| 98 |
+ */ |
|
| 99 |
+ @RequestMapping("/mng/cop/bbs/selectCommentList.do")
|
|
| 100 |
+ public String selectCommentList(@ModelAttribute("searchVO") CommentVO commentVO, ModelMap model, String urlPrefix, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 101 |
+ |
|
| 102 |
+ try {
|
|
| 103 |
+ // 수정 처리된 후 댓글 등록 화면으로 처리되기 위한 구현 |
|
| 104 |
+ if(commentVO.isModified()) {
|
|
| 105 |
+ commentVO.setCommentNo(null); |
|
| 106 |
+ commentVO.setCommentCn("");
|
|
| 107 |
+ } |
|
| 108 |
+ |
|
| 109 |
+ // 수정을 위한 처리 |
|
| 110 |
+ if(commentVO.getCommentNo() != null) {
|
|
| 111 |
+ return "forward:/mng/cop/bbs/selectSingleComment.do"; |
|
| 112 |
+ } |
|
| 113 |
+ |
|
| 114 |
+ model.addAttribute("type", commentVO.getType()); // head or body
|
|
| 115 |
+ |
|
| 116 |
+ if(commentVO.getType().equals("head")) {
|
|
| 117 |
+ return "mng/cop/bbs/default/EgovCommentList"; |
|
| 118 |
+ } |
|
| 119 |
+ // //---------------------------------------- |
|
| 120 |
+ |
|
| 121 |
+ Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); |
|
| 122 |
+ if(isAuthenticated) {
|
|
| 123 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 124 |
+ |
|
| 125 |
+ model.addAttribute("sessionUniqId", user.getId());
|
|
| 126 |
+ model.addAttribute("sessionUniqNm", user.getName());
|
|
| 127 |
+ |
|
| 128 |
+ commentVO.setWrterNm(user.getName()); |
|
| 129 |
+ } |
|
| 130 |
+ |
|
| 131 |
+ commentVO.setSubPageUnit(propertyService.getInt("pageUnit"));
|
|
| 132 |
+ commentVO.setSubPageSize(propertyService.getInt("pageSize"));
|
|
| 133 |
+ |
|
| 134 |
+ PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 135 |
+ paginationInfo.setCurrentPageNo(commentVO.getSubPageIndex()); |
|
| 136 |
+ paginationInfo.setRecordCountPerPage(commentVO.getSubPageUnit()); |
|
| 137 |
+ paginationInfo.setPageSize(commentVO.getSubPageSize()); |
|
| 138 |
+ |
|
| 139 |
+ commentVO.setSubFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 140 |
+ commentVO.setSubLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 141 |
+ commentVO.setSubRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 142 |
+ |
|
| 143 |
+ Map<String, Object> map = bbsCommentService.selectCommentList(commentVO); |
|
| 144 |
+ int totCnt = Integer.parseInt((String)map.get("resultCnt"));
|
|
| 145 |
+ |
|
| 146 |
+ paginationInfo.setTotalRecordCount(totCnt); |
|
| 147 |
+ |
|
| 148 |
+ model.addAttribute("resultList", map.get("resultList"));
|
|
| 149 |
+ model.addAttribute("resultCnt", map.get("resultCnt"));
|
|
| 150 |
+ model.addAttribute("paginationInfo", paginationInfo);
|
|
| 151 |
+ |
|
| 152 |
+ commentVO.setCommentCn(""); // 등록 후 댓글 내용 처리
|
|
| 153 |
+ } catch(Exception ex) {
|
|
| 154 |
+ ex.printStackTrace(); |
|
| 155 |
+ } |
|
| 156 |
+ return "mng/cop/bbs/default/EgovCommentList"; |
|
| 157 |
+ } |
|
| 158 |
+ |
|
| 159 |
+ /** |
|
| 160 |
+ * 댓글을 등록한다. |
|
| 161 |
+ * |
|
| 162 |
+ * @param commentVO |
|
| 163 |
+ * @param comment |
|
| 164 |
+ * @param bindingResult |
|
| 165 |
+ * @param model |
|
| 166 |
+ * @return |
|
| 167 |
+ * @throws Exception |
|
| 168 |
+ */ |
|
| 169 |
+ @RequestMapping("/mng/cop/bbs/insertComment.do")
|
|
| 170 |
+ public String insertComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") Comment comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 171 |
+ |
|
| 172 |
+ if(request.getSession().getAttribute("sessionCommentVO") != null && comment.getCommentCn().equals((String)request.getSession().getAttribute("sessionCommentVO"))) {
|
|
| 173 |
+ return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 174 |
+ } |
|
| 175 |
+ |
|
| 176 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 177 |
+ |
|
| 178 |
+ beanValidator.validate(comment, bindingResult); |
|
| 179 |
+ if(bindingResult.hasErrors()) {
|
|
| 180 |
+ model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 181 |
+ |
|
| 182 |
+ return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 183 |
+ } |
|
| 184 |
+ |
|
| 185 |
+ comment.setFrstRegisterId(user.getId()); |
|
| 186 |
+ comment.setWrterNm(user.getName()); |
|
| 187 |
+ comment.setCommentCn(unscript(comment.getCommentCn())); |
|
| 188 |
+ bbsCommentService.insertComment(comment); |
|
| 189 |
+ |
|
| 190 |
+ request.getSession().setAttribute("sessionCommentVO", comment.getCommentCn());
|
|
| 191 |
+ |
|
| 192 |
+ commentVO.setCommentCn("");
|
|
| 193 |
+ commentVO.setCommentNo(null); |
|
| 194 |
+ |
|
| 195 |
+ |
|
| 196 |
+ return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 197 |
+ } |
|
| 198 |
+ |
|
| 199 |
+ /** |
|
| 200 |
+ * 댓글에 댓글을 등록한다 |
|
| 201 |
+ * @param commentVO |
|
| 202 |
+ * @param comment |
|
| 203 |
+ * @param bindingResult |
|
| 204 |
+ * @param model |
|
| 205 |
+ * @param request |
|
| 206 |
+ * @return |
|
| 207 |
+ * @throws Exception |
|
| 208 |
+ */ |
|
| 209 |
+ @RequestMapping("/mng/cop/bbs/insertReplyComment.do")
|
|
| 210 |
+ public String insertReplyComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") Comment comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 211 |
+ |
|
| 212 |
+ if(request.getSession().getAttribute("sessionCommentVO") != null && comment.getCommentCn().equals((String)request.getSession().getAttribute("sessionCommentVO"))) {
|
|
| 213 |
+ return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 214 |
+ } |
|
| 215 |
+ |
|
| 216 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 217 |
+ |
|
| 218 |
+ beanValidator.validate(comment, bindingResult); |
|
| 219 |
+ if(bindingResult.hasErrors()) {
|
|
| 220 |
+ model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 221 |
+ |
|
| 222 |
+ return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 223 |
+ } |
|
| 224 |
+ |
|
| 225 |
+ commentVO.setFrstRegisterId(user.getId()); |
|
| 226 |
+ commentVO.setWrterNm(user.getName()); |
|
| 227 |
+ commentVO.setCommentCn(unscript(commentVO.getCommentCn())); |
|
| 228 |
+ |
|
| 229 |
+ bbsCommentService.insertReplyComment(commentVO); |
|
| 230 |
+ |
|
| 231 |
+ request.getSession().setAttribute("sessionCommentVO", comment.getCommentCn());
|
|
| 232 |
+ |
|
| 233 |
+ commentVO.setCommentCn("");
|
|
| 234 |
+ commentVO.setCommentNo(null); |
|
| 235 |
+ |
|
| 236 |
+ return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 237 |
+ } |
|
| 238 |
+ |
|
| 239 |
+ /** |
|
| 240 |
+ * 댓글을 삭제한다. |
|
| 241 |
+ * |
|
| 242 |
+ * @param commentVO |
|
| 243 |
+ * @param comment |
|
| 244 |
+ * @param model |
|
| 245 |
+ * @return |
|
| 246 |
+ * @throws Exception |
|
| 247 |
+ */ |
|
| 248 |
+ @RequestMapping("/mng/cop/bbs/deleteComment.do")
|
|
| 249 |
+ public String deleteComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") Comment comment, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 250 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 251 |
+ Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); |
|
| 252 |
+ |
|
| 253 |
+ if(isAuthenticated) {
|
|
| 254 |
+ commentVO.setLastUpdusrId(user.getId()); |
|
| 255 |
+ bbsCommentService.deleteComment(commentVO); |
|
| 256 |
+ } |
|
| 257 |
+ |
|
| 258 |
+ commentVO.setCommentCn("");
|
|
| 259 |
+ commentVO.setCommentNo(null); |
|
| 260 |
+ |
|
| 261 |
+ return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 262 |
+ } |
|
| 263 |
+ |
|
| 264 |
+ /** |
|
| 265 |
+ * 댓글 수정 페이지로 이동한다. |
|
| 266 |
+ * |
|
| 267 |
+ * @param commentVO |
|
| 268 |
+ * @param model |
|
| 269 |
+ * @return |
|
| 270 |
+ * @throws Exception |
|
| 271 |
+ */ |
|
| 272 |
+ @RequestMapping("/mng/cop/bbs/selectSingleComment.do")
|
|
| 273 |
+ public String selectSingleComment(@ModelAttribute("searchVO") CommentVO commentVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 274 |
+ |
|
| 275 |
+ model.addAttribute("type", commentVO.getType()); // head or body
|
|
| 276 |
+ |
|
| 277 |
+ if(commentVO.getType().equals("head")) {
|
|
| 278 |
+ return "mng/cop/bbs/default/EgovCommentList"; |
|
| 279 |
+ } |
|
| 280 |
+ // //---------------------------------------- |
|
| 281 |
+ |
|
| 282 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 283 |
+ |
|
| 284 |
+ commentVO.setWrterNm(user.getName()); |
|
| 285 |
+ |
|
| 286 |
+ commentVO.setSubPageUnit(propertyService.getInt("pageUnit"));
|
|
| 287 |
+ commentVO.setSubPageSize(propertyService.getInt("pageSize"));
|
|
| 288 |
+ |
|
| 289 |
+ PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 290 |
+ paginationInfo.setCurrentPageNo(commentVO.getSubPageIndex()); |
|
| 291 |
+ paginationInfo.setRecordCountPerPage(commentVO.getSubPageUnit()); |
|
| 292 |
+ paginationInfo.setPageSize(commentVO.getSubPageSize()); |
|
| 293 |
+ |
|
| 294 |
+ commentVO.setSubFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 295 |
+ commentVO.setSubLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 296 |
+ commentVO.setSubRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 297 |
+ |
|
| 298 |
+ Map<String, Object> map = bbsCommentService.selectCommentList(commentVO); |
|
| 299 |
+ int totCnt = Integer.parseInt((String)map.get("resultCnt"));
|
|
| 300 |
+ |
|
| 301 |
+ paginationInfo.setTotalRecordCount(totCnt); |
|
| 302 |
+ |
|
| 303 |
+ model.addAttribute("resultList", map.get("resultList"));
|
|
| 304 |
+ model.addAttribute("resultCnt", map.get("resultCnt"));
|
|
| 305 |
+ model.addAttribute("paginationInfo", paginationInfo);
|
|
| 306 |
+ |
|
| 307 |
+ Comment data = bbsCommentService.selectComment(commentVO); |
|
| 308 |
+ |
|
| 309 |
+ commentVO.setCommentNo(data.getCommentNo()); |
|
| 310 |
+ commentVO.setNttNo(data.getNttNo()); |
|
| 311 |
+ commentVO.setWrterNm(data.getWrterNm()); |
|
| 312 |
+ commentVO.setCommentCn(data.getCommentCn()); |
|
| 313 |
+ commentVO.setUseAt(data.getUseAt()); |
|
| 314 |
+ commentVO.setFrstRegisterPnttm(data.getFrstRegisterPnttm()); |
|
| 315 |
+ |
|
| 316 |
+ request.getSession().setAttribute("sessionVO", commentVO);
|
|
| 317 |
+ |
|
| 318 |
+ return "mng/cop/bbs/default/EgovCommentList"; |
|
| 319 |
+ } |
|
| 320 |
+ |
|
| 321 |
+ /** |
|
| 322 |
+ * 댓글을 수정한다. |
|
| 323 |
+ * |
|
| 324 |
+ * @param commentVO |
|
| 325 |
+ * @param comment |
|
| 326 |
+ * @param bindingResult |
|
| 327 |
+ * @param model |
|
| 328 |
+ * @return |
|
| 329 |
+ * @throws Exception |
|
| 330 |
+ */ |
|
| 331 |
+ @RequestMapping("/mng/cop/bbs/updateComment.do")
|
|
| 332 |
+ public String updateCommentList(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") Comment comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 333 |
+ |
|
| 334 |
+ if(request.getSession().getAttribute("sessionVO") == null) {
|
|
| 335 |
+ return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 336 |
+ } |
|
| 337 |
+ |
|
| 338 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 339 |
+ Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); |
|
| 340 |
+ |
|
| 341 |
+ beanValidator.validate(comment, bindingResult); |
|
| 342 |
+ if(bindingResult.hasErrors()) {
|
|
| 343 |
+ model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 344 |
+ |
|
| 345 |
+ return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 346 |
+ } |
|
| 347 |
+ |
|
| 348 |
+ if(isAuthenticated) {
|
|
| 349 |
+ comment.setLastUpdusrId(user.getId()); |
|
| 350 |
+ |
|
| 351 |
+ bbsCommentService.updateComment(comment); |
|
| 352 |
+ |
|
| 353 |
+ commentVO.setCommentCn("");
|
|
| 354 |
+ commentVO.setCommentNo(null); |
|
| 355 |
+ |
|
| 356 |
+ request.getSession().removeAttribute("sessionVO");
|
|
| 357 |
+ } |
|
| 358 |
+ |
|
| 359 |
+ return "forward:/mng/cop/bbs/selectBoardArticle.do"; |
|
| 360 |
+ } |
|
| 361 |
+ |
|
| 362 |
+} |
+++ base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSCtgryController.java
... | ... | @@ -0,0 +1,103 @@ |
| 1 | +package egovframework.com.mng.cop.bbs.web; | |
| 2 | + | |
| 3 | +import javax.annotation.Resource; | |
| 4 | +import javax.servlet.http.HttpServletRequest; | |
| 5 | + | |
| 6 | +import egovframework.com.cop.bbs.service.CtgryVO; | |
| 7 | +import org.springframework.stereotype.Controller; | |
| 8 | +import org.springframework.ui.Model; | |
| 9 | +import org.springframework.ui.ModelMap; | |
| 10 | +import org.springframework.web.bind.annotation.ModelAttribute; | |
| 11 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 12 | + | |
| 13 | +import egovframework.com.cop.bbs.service.BBSCtgryService; | |
| 14 | +import egovframework.rte.fdl.property.EgovPropertyService; | |
| 15 | + | |
| 16 | +//카테고리 | |
| 17 | +@Controller | |
| 18 | +public class BBSCtgryController { | |
| 19 | + | |
| 20 | + @Resource(name = "bbsCtgryService") | |
| 21 | + private BBSCtgryService bbsCtgryService; | |
| 22 | + | |
| 23 | + /** EgovPropertyService */ | |
| 24 | + @Resource(name = "propertiesService") | |
| 25 | + protected EgovPropertyService propertiesService; | |
| 26 | + | |
| 27 | + //COMTNBBSCTGRY 목록을 조회한다. (pageing) | |
| 28 | + @RequestMapping(value="/mng/cop/bbs/ctg/selectBBSCtgryList.do") | |
| 29 | + public String selectBBSCtgryList(@ModelAttribute("searchVO") CtgryVO searchVO, ModelMap model) throws Exception { | |
| 30 | + | |
| 31 | + model.addAttribute("resultList", bbsCtgryService.selectComtnbbsctgryList(searchVO)); | |
| 32 | + | |
| 33 | + return "/mng/cop/bbs/ctg/EgovBBSCtgryList"; | |
| 34 | + } | |
| 35 | + | |
| 36 | + @RequestMapping("/mng/cop/bbs/ctg/addBBSCtgry.do") | |
| 37 | + public String addBBSCtgryView(@ModelAttribute("searchVO") CtgryVO searchVO, Model model, HttpServletRequest request) throws Exception { | |
| 38 | + | |
| 39 | + model.addAttribute("ctgryList", bbsCtgryService.selectComtnbbsctgryList(searchVO)); | |
| 40 | + | |
| 41 | + model.addAttribute("ctgry", searchVO); | |
| 42 | + | |
| 43 | + request.getSession().setAttribute("sessionVO", searchVO); | |
| 44 | + | |
| 45 | + return "/mng/cop/bbs/ctg/EgovBBSCtgryRegist"; | |
| 46 | + } | |
| 47 | + | |
| 48 | + @RequestMapping("/mng/cop/bbs/ctg/insertBBSCtgry.do") | |
| 49 | + public String insertBBSCtgry(CtgryVO ctgry, @ModelAttribute("searchVO") CtgryVO searchVO, HttpServletRequest request) throws Exception { | |
| 50 | + | |
| 51 | + if(request.getSession().getAttribute("sessionVO") == null) { | |
| 52 | + return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 53 | + } | |
| 54 | + | |
| 55 | + bbsCtgryService.insertComtnbbsctgry(ctgry); | |
| 56 | + | |
| 57 | + request.getSession().removeAttribute("sessionVO"); | |
| 58 | + | |
| 59 | + return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 60 | + } | |
| 61 | + | |
| 62 | + @RequestMapping("/mng/cop/bbs/ctg/selectBBSCtgry.do") | |
| 63 | + public String updateBBSCtgryView(@ModelAttribute("searchVO") CtgryVO searchVO, Model model, HttpServletRequest request) throws Exception { | |
| 64 | + | |
| 65 | + model.addAttribute("ctgryList", bbsCtgryService.selectComtnbbsctgryList(searchVO)); | |
| 66 | + | |
| 67 | + model.addAttribute("ctgry", bbsCtgryService.selectComtnbbsctgry(searchVO)); | |
| 68 | + | |
| 69 | + request.getSession().setAttribute("sessionVO", searchVO); | |
| 70 | + | |
| 71 | + return "/mng/cop/bbs/ctg/EgovBBSCtgryRegist"; | |
| 72 | + } | |
| 73 | + | |
| 74 | + @RequestMapping("/mng/cop/bbs/ctg/updateBBSCtgry.do") | |
| 75 | + public String updateBBSCtgry(CtgryVO ctgry, @ModelAttribute("searchVO") CtgryVO searchVO, HttpServletRequest request) throws Exception { | |
| 76 | + | |
| 77 | + if(request.getSession().getAttribute("sessionVO") == null) { | |
| 78 | + return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 79 | + } | |
| 80 | + | |
| 81 | + bbsCtgryService.updateComtnbbsctgry(ctgry); | |
| 82 | + | |
| 83 | + request.getSession().removeAttribute("sessionVO"); | |
| 84 | + | |
| 85 | + return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 86 | + } | |
| 87 | + | |
| 88 | + @RequestMapping("/mng/cop/bbs/ctg/deleteBBSCtgry.do") | |
| 89 | + public String deleteBBSCtgry(CtgryVO comtnbbsctgryVO, @ModelAttribute("searchVO") CtgryVO searchVO) throws Exception { | |
| 90 | + bbsCtgryService.deleteComtnbbsctgry(comtnbbsctgryVO); | |
| 91 | + return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 92 | + } | |
| 93 | + | |
| 94 | + //카테고리를 이동한다. | |
| 95 | + @RequestMapping("/mng/cop/bbs/ctg/updateBBSCtgrySortOrdr.do") | |
| 96 | + public String updateBBSCtgrySortOrdr(@ModelAttribute("searchVO") CtgryVO searchVO, ModelMap model) throws Exception { | |
| 97 | + | |
| 98 | + bbsCtgryService.updateSortOrdr(searchVO); | |
| 99 | + | |
| 100 | + return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 101 | + } | |
| 102 | + | |
| 103 | +} |
--- base/src/main/java/egovframework/com/mng/cop/bbs/web/EgovBBSCtgryMasterController.java
+++ base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSCtgryMasterController.java
... | ... | @@ -1,164 +1,158 @@ |
| 1 |
-package egovframework.com.mng.cop.bbs.web; |
|
| 2 |
- |
|
| 3 |
-import java.io.PrintWriter; |
|
| 4 |
-import java.util.HashMap; |
|
| 5 |
-import java.util.List; |
|
| 6 |
- |
|
| 7 |
-import javax.annotation.Resource; |
|
| 8 |
-import javax.servlet.http.HttpServletRequest; |
|
| 9 |
-import javax.servlet.http.HttpServletResponse; |
|
| 10 |
- |
|
| 11 |
-import net.sf.json.JSONObject; |
|
| 12 |
- |
|
| 13 |
-import org.springframework.stereotype.Controller; |
|
| 14 |
-import org.springframework.ui.Model; |
|
| 15 |
-import org.springframework.ui.ModelMap; |
|
| 16 |
-import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 17 |
-import org.springframework.web.bind.annotation.RequestMapping; |
|
| 18 |
- |
|
| 19 |
-import egovframework.com.cop.bbs.service.Ctgry; |
|
| 20 |
-import egovframework.com.cop.bbs.service.CtgryMaster; |
|
| 21 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryMasterService; |
|
| 22 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryService; |
|
| 23 |
-import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 24 |
-import egovframework.com.uat.uia.service.LoginVO; |
|
| 25 |
-import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 26 |
-import egovframework.rte.fdl.string.EgovStringUtil; |
|
| 27 |
-import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
|
| 28 |
- |
|
| 29 |
-//카테고리관리 |
|
| 30 |
-@Controller |
|
| 31 |
-public class EgovBBSCtgryMasterController {
|
|
| 32 |
- |
|
| 33 |
- @Resource(name = "EgovBBSCtgryMasterService") |
|
| 34 |
- private EgovBBSCtgryMasterService egovBBSCtgryMasterService; |
|
| 35 |
- |
|
| 36 |
- @Resource(name = "EgovBBSCtgryService") |
|
| 37 |
- private EgovBBSCtgryService egovBBSCtgryService; |
|
| 38 |
- |
|
| 39 |
- /** EgovPropertyService */ |
|
| 40 |
- @Resource(name = "propertiesService") |
|
| 41 |
- protected EgovPropertyService propertiesService; |
|
| 42 |
- |
|
| 43 |
- //COMTNBBSCTGRYMASTER 목록을 조회한다. (pageing) |
|
| 44 |
- @RequestMapping(value="/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do") |
|
| 45 |
- public String selectBBSCtgryMasterList(@ModelAttribute("searchVO") CtgryMaster searchVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 46 |
- /* |
|
| 47 |
- List<SiteManageVO> siteList = siteManageService.selectSiteSimpleList(); |
|
| 48 |
- |
|
| 49 |
- if(EgovStringUtil.isEmpty(searchVO.getSiteId())) {
|
|
| 50 |
- if(siteList != null && siteList.size() > 0) {
|
|
| 51 |
- searchVO.setSiteId(siteList.get(0).getSiteId()); |
|
| 52 |
- } |
|
| 53 |
- } |
|
| 54 |
- model.addAttribute("siteList", siteList);
|
|
| 55 |
- */ |
|
| 56 |
- |
|
| 57 |
- LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 58 |
- if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) {
|
|
| 59 |
- searchVO.setSiteId(loginVO.getSiteId()); |
|
| 60 |
- } |
|
| 61 |
- |
|
| 62 |
- searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
|
| 63 |
- searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
|
| 64 |
- |
|
| 65 |
- /** pageing */ |
|
| 66 |
- PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 67 |
- paginationInfo.setCurrentPageNo(searchVO.getPageIndex()); |
|
| 68 |
- paginationInfo.setRecordCountPerPage(searchVO.getPageUnit()); |
|
| 69 |
- paginationInfo.setPageSize(searchVO.getPageSize()); |
|
| 70 |
- |
|
| 71 |
- searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 72 |
- searchVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 73 |
- searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 74 |
- |
|
| 75 |
- |
|
| 76 |
- if(!EgovStringUtil.isEmpty(searchVO.getSiteId())) {
|
|
| 77 |
- model.addAttribute("resultList", egovBBSCtgryMasterService.selectComtnbbsctgrymasterList(searchVO));
|
|
| 78 |
- |
|
| 79 |
- int totCnt = egovBBSCtgryMasterService.selectComtnbbsctgrymasterListTotCnt(searchVO); |
|
| 80 |
- paginationInfo.setTotalRecordCount(totCnt); |
|
| 81 |
- } |
|
| 82 |
- model.addAttribute("paginationInfo", paginationInfo);
|
|
| 83 |
- |
|
| 84 |
- return "/mng/cop/bbs/ctg/EgovBBSCtgryMasterList"; |
|
| 85 |
- } |
|
| 86 |
- |
|
| 87 |
- @RequestMapping("/mng/cop/bbs/ctg/addBBSCtgryMaster.do")
|
|
| 88 |
- public String addComtnbbsctgrymasterView(@ModelAttribute("searchVO") CtgryMaster searchVO, Model model, HttpServletRequest request) throws Exception {
|
|
| 89 |
- |
|
| 90 |
- //model.addAttribute("siteList", siteManageService.selectSiteSimpleList());
|
|
| 91 |
- |
|
| 92 |
- model.addAttribute("ctgryMaster", searchVO);
|
|
| 93 |
- |
|
| 94 |
- request.getSession().setAttribute("sessionVO", searchVO);
|
|
| 95 |
- |
|
| 96 |
- return "/mng/cop/bbs/ctg/EgovBBSCtgryMasterRegist"; |
|
| 97 |
- } |
|
| 98 |
- |
|
| 99 |
- @RequestMapping("/mng/cop/bbs/ctg/insertBBSCtgryMaster.do")
|
|
| 100 |
- public String addComtnbbsctgrymaster(CtgryMaster ctgryMaster, @ModelAttribute("searchVO") CtgryMaster searchVO, HttpServletRequest request) throws Exception {
|
|
| 101 |
- |
|
| 102 |
- if(request.getSession().getAttribute("sessionVO") == null) {
|
|
| 103 |
- return "forward:/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do"; |
|
| 104 |
- } |
|
| 105 |
- |
|
| 106 |
- egovBBSCtgryMasterService.insertComtnbbsctgrymaster(ctgryMaster); |
|
| 107 |
- |
|
| 108 |
- request.getSession().removeAttribute("sessionVO");
|
|
| 109 |
- |
|
| 110 |
- return "forward:/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do"; |
|
| 111 |
- } |
|
| 112 |
- |
|
| 113 |
- @RequestMapping("/mng/cop/bbs/ctg/insertBBSCtgryMaster.json")
|
|
| 114 |
- public void addComtnbbsctgrymasterJson(CtgryMaster ctgryMaster, @ModelAttribute("searchVO") CtgryMaster searchVO, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 115 |
- |
|
| 116 |
- String successYn = "Y"; |
|
| 117 |
- |
|
| 118 |
- String ctgrymasterId = egovBBSCtgryMasterService.insertComtnbbsctgrymaster(ctgryMaster); |
|
| 119 |
- |
|
| 120 |
- JSONObject jo = new JSONObject(); |
|
| 121 |
- response.setContentType("application/json;charset=utf-8");
|
|
| 122 |
- |
|
| 123 |
- jo.put("successYn", successYn);
|
|
| 124 |
- jo.put("ctgrymasterId", ctgrymasterId);
|
|
| 125 |
- |
|
| 126 |
- PrintWriter printwriter = response.getWriter(); |
|
| 127 |
- printwriter.println(jo.toString()); |
|
| 128 |
- printwriter.flush(); |
|
| 129 |
- printwriter.close(); |
|
| 130 |
- } |
|
| 131 |
- |
|
| 132 |
- @RequestMapping("/mng/cop/bbs/ctg/selectBBSCtgryMaster.do")
|
|
| 133 |
- public String selectBBSCtgryMaster(@ModelAttribute("searchVO") CtgryMaster searchVO, Model model, HttpServletRequest request) throws Exception {
|
|
| 134 |
- |
|
| 135 |
- //model.addAttribute("siteList", siteManageService.selectSiteSimpleList());
|
|
| 136 |
- |
|
| 137 |
- model.addAttribute("ctgryMaster", egovBBSCtgryMasterService.selectComtnbbsctgrymaster(searchVO));
|
|
| 138 |
- |
|
| 139 |
- request.getSession().setAttribute("sessionVO", searchVO);
|
|
| 140 |
- |
|
| 141 |
- return "/mng/cop/bbs/ctg/EgovBBSCtgryMasterRegist"; |
|
| 142 |
- } |
|
| 143 |
- |
|
| 144 |
- @RequestMapping("/mng/cop/bbs/ctg/updateBBSCtgryMaster.do")
|
|
| 145 |
- public String updateComtnbbsctgrymaster(CtgryMaster ctgryMaster, @ModelAttribute("searchVO") CtgryMaster searchVO, HttpServletRequest request) throws Exception {
|
|
| 146 |
- |
|
| 147 |
- if(request.getSession().getAttribute("sessionVO") == null) {
|
|
| 148 |
- return "forward:/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do"; |
|
| 149 |
- } |
|
| 150 |
- |
|
| 151 |
- egovBBSCtgryMasterService.updateComtnbbsctgrymaster(ctgryMaster); |
|
| 152 |
- |
|
| 153 |
- request.getSession().removeAttribute("sessionVO");
|
|
| 154 |
- |
|
| 155 |
- return "forward:/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do"; |
|
| 156 |
- } |
|
| 157 |
- |
|
| 158 |
- @RequestMapping("/mng/cop/bbs/ctg/deleteBBSCtgryMaster.do")
|
|
| 159 |
- public String deleteComtnbbsctgrymaster(CtgryMaster ctgryMaster, @ModelAttribute("searchVO") CtgryMaster searchVO) throws Exception {
|
|
| 160 |
- egovBBSCtgryMasterService.deleteComtnbbsctgrymaster(ctgryMaster); |
|
| 161 |
- return "forward:/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do"; |
|
| 162 |
- } |
|
| 163 |
- |
|
| 164 |
-} |
|
| 1 |
+package egovframework.com.mng.cop.bbs.web; |
|
| 2 |
+ |
|
| 3 |
+import java.io.PrintWriter; |
|
| 4 |
+ |
|
| 5 |
+import javax.annotation.Resource; |
|
| 6 |
+import javax.servlet.http.HttpServletRequest; |
|
| 7 |
+import javax.servlet.http.HttpServletResponse; |
|
| 8 |
+ |
|
| 9 |
+import egovframework.com.cop.bbs.service.CtgryMasterVO; |
|
| 10 |
+import net.sf.json.JSONObject; |
|
| 11 |
+ |
|
| 12 |
+import org.springframework.stereotype.Controller; |
|
| 13 |
+import org.springframework.ui.Model; |
|
| 14 |
+import org.springframework.ui.ModelMap; |
|
| 15 |
+import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 16 |
+import org.springframework.web.bind.annotation.RequestMapping; |
|
| 17 |
+ |
|
| 18 |
+import egovframework.com.cop.bbs.service.BBSCtgryMasterService; |
|
| 19 |
+import egovframework.com.cop.bbs.service.BBSCtgryService; |
|
| 20 |
+import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 21 |
+import egovframework.com.uat.uia.service.LoginVO; |
|
| 22 |
+import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 23 |
+import egovframework.rte.fdl.string.EgovStringUtil; |
|
| 24 |
+import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
|
| 25 |
+ |
|
| 26 |
+//카테고리관리 |
|
| 27 |
+@Controller |
|
| 28 |
+public class BBSCtgryMasterController {
|
|
| 29 |
+ |
|
| 30 |
+ @Resource(name = "bbsCtgryMasterService") |
|
| 31 |
+ private BBSCtgryMasterService bbsCtgryMasterService; |
|
| 32 |
+ |
|
| 33 |
+ /** EgovPropertyService */ |
|
| 34 |
+ @Resource(name = "propertiesService") |
|
| 35 |
+ protected EgovPropertyService propertiesService; |
|
| 36 |
+ |
|
| 37 |
+ //COMTNBBSCTGRYMASTER 목록을 조회한다. (pageing) |
|
| 38 |
+ @RequestMapping(value="/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do") |
|
| 39 |
+ public String selectBBSCtgryMasterList(@ModelAttribute("searchVO") CtgryMasterVO searchVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 40 |
+ /* |
|
| 41 |
+ List<SiteManageVO> siteList = siteManageService.selectSiteSimpleList(); |
|
| 42 |
+ |
|
| 43 |
+ if(EgovStringUtil.isEmpty(searchVO.getSiteId())) {
|
|
| 44 |
+ if(siteList != null && siteList.size() > 0) {
|
|
| 45 |
+ searchVO.setSiteId(siteList.get(0).getSiteId()); |
|
| 46 |
+ } |
|
| 47 |
+ } |
|
| 48 |
+ model.addAttribute("siteList", siteList);
|
|
| 49 |
+ */ |
|
| 50 |
+ |
|
| 51 |
+ LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 52 |
+ if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) {
|
|
| 53 |
+ searchVO.setSiteId(loginVO.getSiteId()); |
|
| 54 |
+ } |
|
| 55 |
+ |
|
| 56 |
+ searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
|
| 57 |
+ searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
|
| 58 |
+ |
|
| 59 |
+ /** pageing */ |
|
| 60 |
+ PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 61 |
+ paginationInfo.setCurrentPageNo(searchVO.getPageIndex()); |
|
| 62 |
+ paginationInfo.setRecordCountPerPage(searchVO.getPageUnit()); |
|
| 63 |
+ paginationInfo.setPageSize(searchVO.getPageSize()); |
|
| 64 |
+ |
|
| 65 |
+ searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 66 |
+ searchVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 67 |
+ searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 68 |
+ |
|
| 69 |
+ |
|
| 70 |
+ if(!EgovStringUtil.isEmpty(searchVO.getSiteId())) {
|
|
| 71 |
+ model.addAttribute("resultList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(searchVO));
|
|
| 72 |
+ |
|
| 73 |
+ int totCnt = bbsCtgryMasterService.selectComtnbbsctgrymasterListTotCnt(searchVO); |
|
| 74 |
+ paginationInfo.setTotalRecordCount(totCnt); |
|
| 75 |
+ } |
|
| 76 |
+ model.addAttribute("paginationInfo", paginationInfo);
|
|
| 77 |
+ |
|
| 78 |
+ return "/mng/cop/bbs/ctg/EgovBBSCtgryMasterList"; |
|
| 79 |
+ } |
|
| 80 |
+ |
|
| 81 |
+ @RequestMapping("/mng/cop/bbs/ctg/addBBSCtgryMaster.do")
|
|
| 82 |
+ public String addComtnbbsctgrymasterView(@ModelAttribute("searchVO") CtgryMasterVO searchVO, Model model, HttpServletRequest request) throws Exception {
|
|
| 83 |
+ |
|
| 84 |
+ //model.addAttribute("siteList", siteManageService.selectSiteSimpleList());
|
|
| 85 |
+ |
|
| 86 |
+ model.addAttribute("ctgryMaster", searchVO);
|
|
| 87 |
+ |
|
| 88 |
+ request.getSession().setAttribute("sessionVO", searchVO);
|
|
| 89 |
+ |
|
| 90 |
+ return "/mng/cop/bbs/ctg/EgovBBSCtgryMasterRegist"; |
|
| 91 |
+ } |
|
| 92 |
+ |
|
| 93 |
+ @RequestMapping("/mng/cop/bbs/ctg/insertBBSCtgryMaster.do")
|
|
| 94 |
+ public String addComtnbbsctgrymaster(CtgryMasterVO ctgryMaster, @ModelAttribute("searchVO") CtgryMasterVO searchVO, HttpServletRequest request) throws Exception {
|
|
| 95 |
+ |
|
| 96 |
+ if(request.getSession().getAttribute("sessionVO") == null) {
|
|
| 97 |
+ return "forward:/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do"; |
|
| 98 |
+ } |
|
| 99 |
+ |
|
| 100 |
+ bbsCtgryMasterService.insertComtnbbsctgrymaster(ctgryMaster); |
|
| 101 |
+ |
|
| 102 |
+ request.getSession().removeAttribute("sessionVO");
|
|
| 103 |
+ |
|
| 104 |
+ return "forward:/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do"; |
|
| 105 |
+ } |
|
| 106 |
+ |
|
| 107 |
+ @RequestMapping("/mng/cop/bbs/ctg/insertBBSCtgryMaster.json")
|
|
| 108 |
+ public void addComtnbbsctgrymasterJson(CtgryMasterVO ctgryMaster, @ModelAttribute("searchVO") CtgryMasterVO searchVO, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 109 |
+ |
|
| 110 |
+ String successYn = "Y"; |
|
| 111 |
+ |
|
| 112 |
+ String ctgrymasterId = bbsCtgryMasterService.insertComtnbbsctgrymaster(ctgryMaster); |
|
| 113 |
+ |
|
| 114 |
+ JSONObject jo = new JSONObject(); |
|
| 115 |
+ response.setContentType("application/json;charset=utf-8");
|
|
| 116 |
+ |
|
| 117 |
+ jo.put("successYn", successYn);
|
|
| 118 |
+ jo.put("ctgrymasterId", ctgrymasterId);
|
|
| 119 |
+ |
|
| 120 |
+ PrintWriter printwriter = response.getWriter(); |
|
| 121 |
+ printwriter.println(jo.toString()); |
|
| 122 |
+ printwriter.flush(); |
|
| 123 |
+ printwriter.close(); |
|
| 124 |
+ } |
|
| 125 |
+ |
|
| 126 |
+ @RequestMapping("/mng/cop/bbs/ctg/selectBBSCtgryMaster.do")
|
|
| 127 |
+ public String selectBBSCtgryMaster(@ModelAttribute("searchVO") CtgryMasterVO searchVO, Model model, HttpServletRequest request) throws Exception {
|
|
| 128 |
+ |
|
| 129 |
+ //model.addAttribute("siteList", siteManageService.selectSiteSimpleList());
|
|
| 130 |
+ |
|
| 131 |
+ model.addAttribute("ctgryMaster", bbsCtgryMasterService.selectComtnbbsctgrymaster(searchVO));
|
|
| 132 |
+ |
|
| 133 |
+ request.getSession().setAttribute("sessionVO", searchVO);
|
|
| 134 |
+ |
|
| 135 |
+ return "/mng/cop/bbs/ctg/EgovBBSCtgryMasterRegist"; |
|
| 136 |
+ } |
|
| 137 |
+ |
|
| 138 |
+ @RequestMapping("/mng/cop/bbs/ctg/updateBBSCtgryMaster.do")
|
|
| 139 |
+ public String updateComtnbbsctgrymaster(CtgryMasterVO ctgryMaster, @ModelAttribute("searchVO") CtgryMasterVO searchVO, HttpServletRequest request) throws Exception {
|
|
| 140 |
+ |
|
| 141 |
+ if(request.getSession().getAttribute("sessionVO") == null) {
|
|
| 142 |
+ return "forward:/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do"; |
|
| 143 |
+ } |
|
| 144 |
+ |
|
| 145 |
+ bbsCtgryMasterService.updateComtnbbsctgrymaster(ctgryMaster); |
|
| 146 |
+ |
|
| 147 |
+ request.getSession().removeAttribute("sessionVO");
|
|
| 148 |
+ |
|
| 149 |
+ return "forward:/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do"; |
|
| 150 |
+ } |
|
| 151 |
+ |
|
| 152 |
+ @RequestMapping("/mng/cop/bbs/ctg/deleteBBSCtgryMaster.do")
|
|
| 153 |
+ public String deleteComtnbbsctgrymaster(CtgryMasterVO ctgryMaster, @ModelAttribute("searchVO") CtgryMasterVO searchVO) throws Exception {
|
|
| 154 |
+ bbsCtgryMasterService.deleteComtnbbsctgrymaster(ctgryMaster); |
|
| 155 |
+ return "forward:/mng/cop/bbs/ctg/selectBBSCtgryMasterList.do"; |
|
| 156 |
+ } |
|
| 157 |
+ |
|
| 158 |
+} |
--- base/src/main/java/egovframework/com/mng/cop/bbs/web/EgovBBSManageController.java
+++ base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSManageController.java
... | ... | @@ -1,11 +1,11 @@ |
| 1 | 1 |
package egovframework.com.mng.cop.bbs.web; |
| 2 | 2 |
|
| 3 |
-import java.math.BigDecimal; |
|
| 4 | 3 |
import java.util.List; |
| 5 | 4 |
import java.util.Map; |
| 6 | 5 |
|
| 7 | 6 |
import javax.annotation.Resource; |
| 8 | 7 |
|
| 8 |
+import egovframework.com.cop.bbs.service.*; |
|
| 9 | 9 |
import net.sf.json.JSONObject; |
| 10 | 10 |
|
| 11 | 11 |
import org.apache.log4j.Logger; |
... | ... | @@ -24,13 +24,6 @@ |
| 24 | 24 |
import egovframework.com.cmm.service.EgovFileMngService; |
| 25 | 25 |
import egovframework.com.cmm.service.EgovFileMngUtil; |
| 26 | 26 |
import egovframework.com.cmm.service.FileVO; |
| 27 |
-import egovframework.com.cop.bbs.service.Board; |
|
| 28 |
-import egovframework.com.cop.bbs.service.BoardMasterVO; |
|
| 29 |
-import egovframework.com.cop.bbs.service.BoardVO; |
|
| 30 |
-import egovframework.com.cop.bbs.service.Ctgry; |
|
| 31 |
-import egovframework.com.cop.bbs.service.EgovBBSAttributeManageService; |
|
| 32 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryService; |
|
| 33 |
-import egovframework.com.cop.bbs.service.EgovBBSManageService; |
|
| 34 | 27 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 35 | 28 |
import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
| 36 | 29 |
import egovframework.com.sym.mpm.service.MpmService; |
... | ... | @@ -46,33 +39,18 @@ |
| 46 | 39 |
import javax.servlet.http.HttpServletResponse; |
| 47 | 40 |
|
| 48 | 41 |
|
| 49 |
-/** |
|
| 50 |
- * 게시물 관리를 위한 컨트롤러 클래스 |
|
| 51 |
- * |
|
| 52 |
- * @author 공통서비스개발팀 이삼섭 |
|
| 53 |
- * @since 2009.06.01 |
|
| 54 |
- * @version 1.0 |
|
| 55 |
- * @see <pre> |
|
| 56 |
- * << 개정이력(Modification Information) >> |
|
| 57 |
- * |
|
| 58 |
- * 수정일 수정자 수정내용 |
|
| 59 |
- * ------- -------- --------------------------- |
|
| 60 |
- * 2009.3.19 이삼섭 최초 생성 |
|
| 61 |
- * 2009.06.29 한성곤 |
|
| 62 |
- * |
|
| 63 |
- * </pre> |
|
| 64 |
- */ |
|
| 42 |
+//게시물 관리를 위한 컨트롤러 클래스 |
|
| 65 | 43 |
@Controller("mngEgovBBSManageController")
|
| 66 |
-public class EgovBBSManageController {
|
|
| 44 |
+public class BBSManageController {
|
|
| 67 | 45 |
|
| 68 | 46 |
@Resource(name = "EgovBBSManageService") |
| 69 |
- private EgovBBSManageService bbsMngService; |
|
| 47 |
+ private BBSManageService bbsMngService; |
|
| 70 | 48 |
|
| 71 | 49 |
@Resource(name = "bbsAttributeManageService") |
| 72 |
- private EgovBBSAttributeManageService bbsAttrbService; |
|
| 50 |
+ private BBSAttributeManageService bbsAttrbService; |
|
| 73 | 51 |
|
| 74 |
- @Resource(name = "EgovBBSCtgryService") |
|
| 75 |
- private EgovBBSCtgryService ctgryService; |
|
| 52 |
+ @Resource(name = "bbsCtgryService") |
|
| 53 |
+ private BBSCtgryService ctgryService; |
|
| 76 | 54 |
|
| 77 | 55 |
@Resource(name = "EgovFileMngService") |
| 78 | 56 |
private EgovFileMngService fileMngService; |
... | ... | @@ -194,7 +172,7 @@ |
| 194 | 172 |
paginationInfo.setTotalRecordCount(totCnt); |
| 195 | 173 |
|
| 196 | 174 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 197 |
- Ctgry ctgry = new Ctgry(); |
|
| 175 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 198 | 176 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 199 | 177 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 200 | 178 |
model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry));
|
... | ... | @@ -264,7 +242,7 @@ |
| 264 | 242 |
|
| 265 | 243 |
if(master != null) {
|
| 266 | 244 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 267 |
- Ctgry ctgry = new Ctgry(); |
|
| 245 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 268 | 246 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 269 | 247 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 270 | 248 |
model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry));
|
... | ... | @@ -307,7 +285,7 @@ |
| 307 | 285 |
|
| 308 | 286 |
if(master != null) {
|
| 309 | 287 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 310 |
- Ctgry ctgry = new Ctgry(); |
|
| 288 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 311 | 289 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 312 | 290 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 313 | 291 |
|
... | ... | @@ -509,7 +487,7 @@ |
| 509 | 487 |
|
| 510 | 488 |
if(master != null) {
|
| 511 | 489 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 512 |
- Ctgry ctgry = new Ctgry(); |
|
| 490 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 513 | 491 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 514 | 492 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 515 | 493 |
|
... | ... | @@ -555,7 +533,7 @@ |
| 555 | 533 |
|
| 556 | 534 |
if(master != null) {
|
| 557 | 535 |
if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) {
|
| 558 |
- Ctgry ctgry = new Ctgry(); |
|
| 536 |
+ CtgryVO ctgry = new CtgryVO(); |
|
| 559 | 537 |
ctgry.setCtgrymasterId(master.getCtgrymasterId()); |
| 560 | 538 |
model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry));
|
| 561 | 539 |
|
--- base/src/main/java/egovframework/com/mng/cop/bbs/web/EgovBBSCtgryController.java
... | ... | @@ -1,133 +0,0 @@ |
| 1 | -package egovframework.com.mng.cop.bbs.web; | |
| 2 | - | |
| 3 | -import javax.annotation.Resource; | |
| 4 | -import javax.servlet.http.HttpServletRequest; | |
| 5 | - | |
| 6 | -import org.springframework.stereotype.Controller; | |
| 7 | -import org.springframework.ui.Model; | |
| 8 | -import org.springframework.ui.ModelMap; | |
| 9 | -import org.springframework.web.bind.annotation.ModelAttribute; | |
| 10 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 11 | - | |
| 12 | -import egovframework.com.cop.bbs.service.Ctgry; | |
| 13 | -import egovframework.com.cop.bbs.service.EgovBBSCtgryService; | |
| 14 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 15 | - | |
| 16 | -// Servoce 객체에 대한 import 구문 | |
| 17 | -// import (service package).ComtnbbsctgryService; | |
| 18 | -// Vo 객체에 대한 import 구문 | |
| 19 | -// import (vo package).ComtnbbsctgryDefaultVO; | |
| 20 | -// import (vo package).ComtnbbsctgryVO; | |
| 21 | - | |
| 22 | -/** | |
| 23 | - * @Class Name : ComtnbbsctgryController.java | |
| 24 | - * @Description : Comtnbbsctgry Controller class | |
| 25 | - * @Modification Information | |
| 26 | - * | |
| 27 | - * @author 이엠티 | |
| 28 | - * @since 2011.12.15 | |
| 29 | - * @version 1.0 | |
| 30 | - * @see | |
| 31 | - * | |
| 32 | - * Copyright (C) All right reserved. | |
| 33 | - */ | |
| 34 | - | |
| 35 | -@Controller | |
| 36 | -public class EgovBBSCtgryController {
| |
| 37 | - | |
| 38 | - @Resource(name = "EgovBBSCtgryService") | |
| 39 | - private EgovBBSCtgryService egovBBSCtgryService; | |
| 40 | - | |
| 41 | - /** EgovPropertyService */ | |
| 42 | - @Resource(name = "propertiesService") | |
| 43 | - protected EgovPropertyService propertiesService; | |
| 44 | - | |
| 45 | - /** | |
| 46 | - * COMTNBBSCTGRY 목록을 조회한다. (pageing) | |
| 47 | - * @param searchVO - 조회할 정보가 담긴 ctgry | |
| 48 | - * @return "/mng/cop/bbs/comtnbbsctgry/ComtnbbsctgryList" | |
| 49 | - * @exception Exception | |
| 50 | - */ | |
| 51 | - @RequestMapping(value="/mng/cop/bbs/ctg/selectBBSCtgryList.do") | |
| 52 | - public String selectBBSCtgryList(@ModelAttribute("searchVO") Ctgry searchVO, ModelMap model) throws Exception {
| |
| 53 | - | |
| 54 | - model.addAttribute("resultList", egovBBSCtgryService.selectComtnbbsctgryList(searchVO));
| |
| 55 | - | |
| 56 | - return "/mng/cop/bbs/ctg/EgovBBSCtgryList"; | |
| 57 | - } | |
| 58 | - | |
| 59 | - @RequestMapping("/mng/cop/bbs/ctg/addBBSCtgry.do")
| |
| 60 | - public String addBBSCtgryView(@ModelAttribute("searchVO") Ctgry searchVO, Model model, HttpServletRequest request) throws Exception {
| |
| 61 | - | |
| 62 | - model.addAttribute("ctgryList", egovBBSCtgryService.selectComtnbbsctgryList(searchVO));
| |
| 63 | - | |
| 64 | - model.addAttribute("ctgry", searchVO);
| |
| 65 | - | |
| 66 | - request.getSession().setAttribute("sessionVO", searchVO);
| |
| 67 | - | |
| 68 | - return "/mng/cop/bbs/ctg/EgovBBSCtgryRegist"; | |
| 69 | - } | |
| 70 | - | |
| 71 | - @RequestMapping("/mng/cop/bbs/ctg/insertBBSCtgry.do")
| |
| 72 | - public String insertBBSCtgry(Ctgry ctgry, @ModelAttribute("searchVO") Ctgry searchVO, HttpServletRequest request) throws Exception {
| |
| 73 | - | |
| 74 | - if(request.getSession().getAttribute("sessionVO") == null) {
| |
| 75 | - return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 76 | - } | |
| 77 | - | |
| 78 | - egovBBSCtgryService.insertComtnbbsctgry(ctgry); | |
| 79 | - | |
| 80 | - request.getSession().removeAttribute("sessionVO");
| |
| 81 | - | |
| 82 | - return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 83 | - } | |
| 84 | - | |
| 85 | - @RequestMapping("/mng/cop/bbs/ctg/selectBBSCtgry.do")
| |
| 86 | - public String updateBBSCtgryView(@ModelAttribute("searchVO") Ctgry searchVO, Model model, HttpServletRequest request) throws Exception {
| |
| 87 | - | |
| 88 | - model.addAttribute("ctgryList", egovBBSCtgryService.selectComtnbbsctgryList(searchVO));
| |
| 89 | - | |
| 90 | - model.addAttribute("ctgry", egovBBSCtgryService.selectComtnbbsctgry(searchVO));
| |
| 91 | - | |
| 92 | - request.getSession().setAttribute("sessionVO", searchVO);
| |
| 93 | - | |
| 94 | - return "/mng/cop/bbs/ctg/EgovBBSCtgryRegist"; | |
| 95 | - } | |
| 96 | - | |
| 97 | - @RequestMapping("/mng/cop/bbs/ctg/updateBBSCtgry.do")
| |
| 98 | - public String updateBBSCtgry(Ctgry ctgry, @ModelAttribute("searchVO") Ctgry searchVO, HttpServletRequest request) throws Exception {
| |
| 99 | - | |
| 100 | - if(request.getSession().getAttribute("sessionVO") == null) {
| |
| 101 | - return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 102 | - } | |
| 103 | - | |
| 104 | - egovBBSCtgryService.updateComtnbbsctgry(ctgry); | |
| 105 | - | |
| 106 | - request.getSession().removeAttribute("sessionVO");
| |
| 107 | - | |
| 108 | - return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 109 | - } | |
| 110 | - | |
| 111 | - @RequestMapping("/mng/cop/bbs/ctg/deleteBBSCtgry.do")
| |
| 112 | - public String deleteBBSCtgry(Ctgry comtnbbsctgryVO, @ModelAttribute("searchVO") Ctgry searchVO) throws Exception {
| |
| 113 | - egovBBSCtgryService.deleteComtnbbsctgry(comtnbbsctgryVO); | |
| 114 | - return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 115 | - } | |
| 116 | - | |
| 117 | - /** | |
| 118 | - * 카테고리를 이동한다. | |
| 119 | - * | |
| 120 | - * @param searchVO | |
| 121 | - * @param model | |
| 122 | - * @return | |
| 123 | - * @throws Exception | |
| 124 | - */ | |
| 125 | - @RequestMapping("/mng/cop/bbs/ctg/updateBBSCtgrySortOrdr.do")
| |
| 126 | - public String updateBBSCtgrySortOrdr(@ModelAttribute("searchVO") Ctgry searchVO, ModelMap model) throws Exception {
| |
| 127 | - | |
| 128 | - egovBBSCtgryService.updateSortOrdr(searchVO); | |
| 129 | - | |
| 130 | - return "forward:/mng/cop/bbs/ctg/selectBBSCtgryList.do"; | |
| 131 | - } | |
| 132 | - | |
| 133 | -} |
--- base/src/main/java/egovframework/com/mng/sym/mpm/web/MpmController.java
+++ base/src/main/java/egovframework/com/mng/sym/mpm/web/MpmController.java
... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 |
import egovframework.com.cmm.service.FileVO; |
| 29 | 29 |
import egovframework.com.cmm.service.Globals; |
| 30 | 30 |
import egovframework.com.cop.bbs.service.BoardMasterVO; |
| 31 |
-import egovframework.com.cop.bbs.service.EgovBBSAttributeManageService; |
|
| 31 |
+import egovframework.com.cop.bbs.service.BBSAttributeManageService; |
|
| 32 | 32 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 33 | 33 |
import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
| 34 | 34 |
import egovframework.com.sym.mpm.service.MpmHistoryService; |
... | ... | @@ -70,7 +70,7 @@ |
| 70 | 70 |
protected EgovPropertyService propertyService; |
| 71 | 71 |
|
| 72 | 72 |
@Resource(name = "bbsAttributeManageService") |
| 73 |
- private EgovBBSAttributeManageService bbsAttrbService; |
|
| 73 |
+ private BBSAttributeManageService bbsAttrbService; |
|
| 74 | 74 |
|
| 75 | 75 |
@Resource(name="cmmUseService") |
| 76 | 76 |
private CmmUseService cmmUseService; |
--- base/src/main/java/egovframework/com/mng/uss/umt/web/EgovUserManageController.java
+++ base/src/main/java/egovframework/com/mng/uss/umt/web/EgovUserManageController.java
... | ... | @@ -1,7 +1,6 @@ |
| 1 | 1 |
package egovframework.com.mng.uss.umt.web; |
| 2 | 2 |
|
| 3 | 3 |
import java.io.PrintWriter; |
| 4 |
-import java.util.ArrayList; |
|
| 5 | 4 |
import java.util.Iterator; |
| 6 | 5 |
import java.util.List; |
| 7 | 6 |
import java.util.Map; |
... | ... | @@ -23,14 +22,11 @@ |
| 23 | 22 |
import org.springframework.web.multipart.MultipartHttpServletRequest; |
| 24 | 23 |
import org.springmodules.validation.commons.DefaultBeanValidator; |
| 25 | 24 |
|
| 26 |
-import com.adobe.xmp.impl.Base64; |
|
| 27 |
- |
|
| 28 | 25 |
import egovframework.com.cmm.EgovMessageSource; |
| 29 | 26 |
import egovframework.com.cmm.service.CmmUseService; |
| 30 | 27 |
import egovframework.com.cmm.service.EgovFileMngUtil; |
| 31 | 28 |
import egovframework.com.cmm.service.FileVO; |
| 32 |
-import egovframework.com.cop.bbs.service.Ctgry; |
|
| 33 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryService; |
|
| 29 |
+import egovframework.com.cop.bbs.service.BBSCtgryService; |
|
| 34 | 30 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 35 | 31 |
import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
| 36 | 32 |
import egovframework.com.uat.uia.service.LoginVO; |
... | ... | @@ -59,9 +55,6 @@ |
| 59 | 55 |
|
| 60 | 56 |
@Resource(name="cmmUseService") |
| 61 | 57 |
private CmmUseService cmmUseService; |
| 62 |
- |
|
| 63 |
- @Resource(name = "EgovBBSCtgryService") |
|
| 64 |
- private EgovBBSCtgryService egovBBSCtgryService; |
|
| 65 | 58 |
|
| 66 | 59 |
/** DefaultBeanValidator */ |
| 67 | 60 |
@Autowired |
... | ... | @@ -129,13 +122,7 @@ |
| 129 | 122 |
return "redirect:/mng/usr/EgovMberManage.do"; |
| 130 | 123 |
} |
| 131 | 124 |
|
| 132 |
- /** |
|
| 133 |
- * 비밀번호 초기화 |
|
| 134 |
- * @param model 화면모델 |
|
| 135 |
- * @return forward:/mng/usr/EgovresetPwd.do |
|
| 136 |
- * @throws Exception |
|
| 137 |
- */ |
|
| 138 |
- @SuppressWarnings("unchecked")
|
|
| 125 |
+ //비밀번호 초기화 |
|
| 139 | 126 |
@RequestMapping(value = "/mng/usr/EgovResetPwd.do") |
| 140 | 127 |
public String EgovResetPwd(UserManageVO userManageVO)throws Exception {
|
| 141 | 128 |
userManageService.updateResetPwd(userManageVO); |
... | ... | @@ -145,12 +132,7 @@ |
| 145 | 132 |
|
| 146 | 133 |
|
| 147 | 134 |
|
| 148 |
- /** |
|
| 149 |
- * 사용자목록을 엑셀로 다운받는다. |
|
| 150 |
- * @param searchVO - 조회할 정보가 담긴 ComtneventprzwnerDefaultVO |
|
| 151 |
- * @return "/mng/evt/ComtneventprzwnerList" |
|
| 152 |
- * @exception Exception |
|
| 153 |
- */ |
|
| 135 |
+ //사용자목록을 엑셀로 다운받는다. |
|
| 154 | 136 |
@RequestMapping(value="/mng/usr/EgovMberManageExcel.do") |
| 155 | 137 |
public String EgovMberManageExcel(@ModelAttribute("searchVO") UserManageVO userManageVO, ModelMap model) throws Exception {
|
| 156 | 138 |
|
... | ... | @@ -164,12 +146,7 @@ |
| 164 | 146 |
return "mng/usr/EgovMemberListExcel"; |
| 165 | 147 |
} |
| 166 | 148 |
|
| 167 |
- /** |
|
| 168 |
- * 사용자정보 수정 화면으로 이동한다. |
|
| 169 |
- * @param model 화면모델 |
|
| 170 |
- * @return mng/usr/EgovMemberUpdt |
|
| 171 |
- * @throws Exception |
|
| 172 |
- */ |
|
| 149 |
+ //사용자정보 수정 화면으로 이동한다. |
|
| 173 | 150 |
@RequestMapping(value = "/mng/usr/EgovUserSelectUpdtView.do") |
| 174 | 151 |
public String EgovUserSelectUpdtView( |
| 175 | 152 |
@ModelAttribute("searchVO") UserDefaultVO searchVO,
|
... | ... | @@ -183,13 +160,7 @@ |
| 183 | 160 |
} |
| 184 | 161 |
|
| 185 | 162 |
|
| 186 |
- /** |
|
| 187 |
- * 사용자정보 수정 처리 한다. |
|
| 188 |
- * @param model 화면모델 |
|
| 189 |
- * @return forward:/mng/usr/EgovUserSelectUpdtView.do |
|
| 190 |
- * @throws Exception |
|
| 191 |
- */ |
|
| 192 |
- @SuppressWarnings("unchecked")
|
|
| 163 |
+ //사용자정보 수정 처리 한다. |
|
| 193 | 164 |
@RequestMapping(value = "/mng/usr/EgovUserSelectUpdt.do") |
| 194 | 165 |
public String EgovUserSelectUpdt( |
| 195 | 166 |
final MultipartHttpServletRequest multiRequest, |
... | ... | @@ -279,15 +250,7 @@ |
| 279 | 250 |
} |
| 280 | 251 |
|
| 281 | 252 |
|
| 282 |
- /** |
|
| 283 |
- * 관리자가 패스워드를 임의로 재발급하고 핸드폰으로 전송 한다. |
|
| 284 |
- * @param userManageVO |
|
| 285 |
- * @param request |
|
| 286 |
- * @param commandMap |
|
| 287 |
- * @param model |
|
| 288 |
- * @return "forward:/mng/usr/SendPassword.do" |
|
| 289 |
- * @throws Exception |
|
| 290 |
- */ |
|
| 253 |
+ //관리자가 패스워드를 임의로 재발급하고 핸드폰으로 전송 한다. |
|
| 291 | 254 |
@RequestMapping(value = "/mng/usr/SendPassword.do") |
| 292 | 255 |
public String SendPassword( |
| 293 | 256 |
@ModelAttribute("searchVO") UserManageVO userManageVO, final HttpServletRequest request, Model model) throws Exception {
|
... | ... | @@ -308,12 +271,7 @@ |
| 308 | 271 |
return "mng/usr/SendPassword"; |
| 309 | 272 |
} |
| 310 | 273 |
|
| 311 |
- /** |
|
| 312 |
- * 선택한 사용자 목록을 접속금지/해제 처리 한다. |
|
| 313 |
- * @param userManageVO |
|
| 314 |
- * @return String |
|
| 315 |
- * @exception Exception |
|
| 316 |
- */ |
|
| 274 |
+ //선택한 사용자 목록을 접속금지/해제 처리 한다. |
|
| 317 | 275 |
@RequestMapping(value="/mng/usr/EgovMberManageConfrm.do") |
| 318 | 276 |
public String mberManageConfrm(@ModelAttribute("searchVO") UserManageVO userManageVO, ModelMap model) throws Exception {
|
| 319 | 277 |
|
... | ... | @@ -327,12 +285,7 @@ |
| 327 | 285 |
return "forward:/mng/usr/EgovMberManage.do"; |
| 328 | 286 |
} |
| 329 | 287 |
|
| 330 |
- /** |
|
| 331 |
- * 선택한 사용자 목록을 접속금지/해제 처리 한다. |
|
| 332 |
- * @param userManageVO |
|
| 333 |
- * @return String |
|
| 334 |
- * @exception Exception |
|
| 335 |
- */ |
|
| 288 |
+ //선택한 사용자 목록을 접속금지/해제 처리 한다. |
|
| 336 | 289 |
@RequestMapping(value="/mng/usr/EgovMberManageDelete.do") |
| 337 | 290 |
public String mberManageDelete(@ModelAttribute("searchVO") UserManageVO userManageVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 338 | 291 |
|
... | ... | @@ -344,27 +297,12 @@ |
| 344 | 297 |
return "forward:/mng/usr/EgovMberManage.do"; |
| 345 | 298 |
} |
| 346 | 299 |
|
| 347 |
- /** |
|
| 348 |
- * 사용자 엑셀파일을 일괄 업로드한다. |
|
| 349 |
- * @param userManageVO |
|
| 350 |
- * @param request |
|
| 351 |
- * @param model |
|
| 352 |
- * @return "mng/usr/EgovMberExcelUpload" |
|
| 353 |
- * @throws Exception |
|
| 354 |
- */ |
|
| 300 |
+ //사용자 엑셀파일을 일괄 업로드한다. |
|
| 355 | 301 |
@RequestMapping(value = "/mng/usr/EgovMberExcelUploadView.do") |
| 356 | 302 |
public String EgovMberExcelUploadView(@ModelAttribute("searchVO") UserManageVO userManageVO, Model model) throws Exception {
|
| 357 | 303 |
return "mng/usr/EgovMberExcelUpload"; |
| 358 | 304 |
} |
| 359 |
- /** |
|
| 360 |
- * 사용자 엑셀파일을 일괄 업로드한다. |
|
| 361 |
- * @param userManageVO |
|
| 362 |
- * @param request |
|
| 363 |
- * @param commandMap |
|
| 364 |
- * @param model |
|
| 365 |
- * @return "mng/usr/EgovMberExcelUpload" |
|
| 366 |
- * @throws Exception |
|
| 367 |
- */ |
|
| 305 |
+ //사용자 엑셀파일을 일괄 업로드한다. |
|
| 368 | 306 |
@SuppressWarnings("unchecked")
|
| 369 | 307 |
@RequestMapping(value = "/mng/usr/EgovMberExcelUpload.do") |
| 370 | 308 |
public String EgovMberExcelUpload(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") UserManageVO userManageVO, Model model) throws Exception {
|
--- base/src/main/java/egovframework/com/msi/web/ContentsServiceController.java
+++ base/src/main/java/egovframework/com/msi/web/ContentsServiceController.java
... | ... | @@ -16,8 +16,8 @@ |
| 16 | 16 |
|
| 17 | 17 |
import egovframework.com.cop.bbs.service.BoardMasterVO; |
| 18 | 18 |
import egovframework.com.cop.bbs.service.BoardVO; |
| 19 |
-import egovframework.com.cop.bbs.service.EgovBBSAttributeManageService; |
|
| 20 |
-import egovframework.com.cop.bbs.service.EgovBBSManageService; |
|
| 19 |
+import egovframework.com.cop.bbs.service.BBSAttributeManageService; |
|
| 20 |
+import egovframework.com.cop.bbs.service.BBSManageService; |
|
| 21 | 21 |
import egovframework.com.msi.service.ContentsServiceVO; |
| 22 | 22 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 23 | 23 |
import egovframework.com.sym.mpm.service.MpmService; |
... | ... | @@ -45,10 +45,10 @@ |
| 45 | 45 |
Logger logger = LoggerFactory.getLogger(this.getClass()); |
| 46 | 46 |
|
| 47 | 47 |
@Resource(name = "EgovBBSManageService") |
| 48 |
- private EgovBBSManageService bbsMngService; |
|
| 48 |
+ private BBSManageService bbsMngService; |
|
| 49 | 49 |
|
| 50 | 50 |
@Resource(name = "bbsAttributeManageService") |
| 51 |
- private EgovBBSAttributeManageService bbsAttrbService; |
|
| 51 |
+ private BBSAttributeManageService bbsAttrbService; |
|
| 52 | 52 |
|
| 53 | 53 |
@Resource(name = "IndvdlestbsService") |
| 54 | 54 |
private EgovIndvdlestbsService indvdlestbsService; |
--- base/src/main/java/egovframework/com/msi/web/SearchServiceController.java
+++ base/src/main/java/egovframework/com/msi/web/SearchServiceController.java
... | ... | @@ -14,7 +14,7 @@ |
| 14 | 14 |
import org.springframework.web.bind.annotation.RequestMapping; |
| 15 | 15 |
|
| 16 | 16 |
import egovframework.com.cop.bbs.service.BoardVO; |
| 17 |
-import egovframework.com.cop.bbs.service.EgovBBSManageService; |
|
| 17 |
+import egovframework.com.cop.bbs.service.BBSManageService; |
|
| 18 | 18 |
import egovframework.com.cop.cmy.service.EgovCommunityManageService; |
| 19 | 19 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 20 | 20 |
import egovframework.com.sym.sit.service.SiteManageService; |
... | ... | @@ -41,7 +41,7 @@ |
| 41 | 41 |
SiteManageService siteManageService; |
| 42 | 42 |
|
| 43 | 43 |
@Resource(name = "EgovBBSManageService") |
| 44 |
- private EgovBBSManageService bbsMngService; |
|
| 44 |
+ private BBSManageService bbsMngService; |
|
| 45 | 45 |
|
| 46 | 46 |
@Resource(name = "EgovCommunityManageService") |
| 47 | 47 |
private EgovCommunityManageService cmmntyService; |
--- base/src/main/java/egovframework/com/msi/web/TemplateServiceController.java
+++ base/src/main/java/egovframework/com/msi/web/TemplateServiceController.java
... | ... | @@ -11,8 +11,8 @@ |
| 11 | 11 |
import org.springframework.web.bind.annotation.RequestMapping; |
| 12 | 12 |
|
| 13 | 13 |
import egovframework.com.cmm.service.Globals; |
| 14 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryService; |
|
| 15 |
-import egovframework.com.cop.bbs.service.EgovBBSManageService; |
|
| 14 |
+import egovframework.com.cop.bbs.service.BBSCtgryService; |
|
| 15 |
+import egovframework.com.cop.bbs.service.BBSManageService; |
|
| 16 | 16 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 17 | 17 |
import egovframework.com.sym.mpm.service.MpmService; |
| 18 | 18 |
import egovframework.com.sym.mpm.service.MpmVO; |
... | ... | @@ -35,14 +35,11 @@ |
| 35 | 35 |
@Resource(name = "mpmService") |
| 36 | 36 |
private MpmService mpmService; |
| 37 | 37 |
|
| 38 |
- @Resource(name = "EgovBBSCtgryService") |
|
| 39 |
- private EgovBBSCtgryService egovBBSCtgryService; |
|
| 40 |
- |
|
| 41 | 38 |
@Resource(name = "propertiesService") |
| 42 | 39 |
protected EgovPropertyService propertyService; |
| 43 | 40 |
|
| 44 | 41 |
@Resource(name = "EgovBBSManageService") |
| 45 |
- private EgovBBSManageService bbsMngService; |
|
| 42 |
+ private BBSManageService bbsMngService; |
|
| 46 | 43 |
|
| 47 | 44 |
@Resource(name = "bannerService") |
| 48 | 45 |
BannerService bannerService; |
--- base/src/main/java/egovframework/com/sym/sit/service/impl/SiteManageServiceImpl.java
+++ base/src/main/java/egovframework/com/sym/sit/service/impl/SiteManageServiceImpl.java
... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 |
import org.springframework.stereotype.Service; |
| 14 | 14 |
|
| 15 | 15 |
import egovframework.com.cmm.service.Globals; |
| 16 |
-import egovframework.com.cop.bbs.service.EgovBBSAttributeManageService; |
|
| 16 |
+import egovframework.com.cop.bbs.service.BBSAttributeManageService; |
|
| 17 | 17 |
import egovframework.com.sym.mpm.service.MpmService; |
| 18 | 18 |
import egovframework.com.sym.mpm.service.MpmVO; |
| 19 | 19 |
import egovframework.com.sym.sit.service.SiteManageService; |
... | ... | @@ -37,7 +37,7 @@ |
| 37 | 37 |
private MpmService mpmService; |
| 38 | 38 |
|
| 39 | 39 |
@Resource(name = "bbsAttributeManageService") |
| 40 |
- private EgovBBSAttributeManageService bbsAttrbService; |
|
| 40 |
+ private BBSAttributeManageService bbsAttrbService; |
|
| 41 | 41 |
|
| 42 | 42 |
@Resource(name="siteManageIdGnrService") |
| 43 | 43 |
private EgovIdGnrService idgenService; |
--- base/src/main/java/egovframework/com/uss/umt/web/EgovUserInfoController.java
+++ base/src/main/java/egovframework/com/uss/umt/web/EgovUserInfoController.java
... | ... | @@ -37,7 +37,6 @@ |
| 37 | 37 |
import egovframework.com.uss.umt.service.EgovUserManageService; |
| 38 | 38 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 39 | 39 |
import egovframework.rte.fdl.string.EgovStringUtil; |
| 40 |
-import egovframework.rte.psl.dataaccess.util.EgovMap; |
|
| 41 | 40 |
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
| 42 | 41 |
import net.sf.json.JSONObject; |
| 43 | 42 |
import egovframework.com.utl.cas.service.EgovSessionCookieUtil; |
... | ... | @@ -50,9 +49,7 @@ |
| 50 | 49 |
import com.adobe.xmp.impl.Base64; |
| 51 | 50 |
|
| 52 | 51 |
import egovframework.com.cmm.EgovMessageSource; |
| 53 |
-import egovframework.com.cop.bbs.service.Ctgry; |
|
| 54 |
-import egovframework.com.cop.bbs.service.CtgryMaster; |
|
| 55 |
-import egovframework.com.cop.bbs.service.EgovBBSCtgryService; |
|
| 52 |
+import egovframework.com.cop.bbs.service.BBSCtgryService; |
|
| 56 | 53 |
import egovframework.com.ems.service.DirectMailService; |
| 57 | 54 |
import egovframework.com.ems.service.MailMessageVO; |
| 58 | 55 |
|
... | ... | @@ -75,9 +72,6 @@ |
| 75 | 72 |
|
| 76 | 73 |
@Resource(name = "siteManageService") |
| 77 | 74 |
private SiteManageService siteManageService; |
| 78 |
- |
|
| 79 |
- @Resource(name = "EgovBBSCtgryService") |
|
| 80 |
- private EgovBBSCtgryService egovBBSCtgryService; |
|
| 81 | 75 |
|
| 82 | 76 |
@Resource(name = "egovMessageSource") |
| 83 | 77 |
EgovMessageSource egovMessageSource; |
... | ... | @@ -168,23 +162,7 @@ |
| 168 | 162 |
@RequestMapping("/uss/umt/user/EgovUserInsertView.do")
|
| 169 | 163 |
public String insertUserView(@ModelAttribute("userManageVO") UserManageVO userManageVO, HttpServletRequest request, ModelMap model)throws Exception {
|
| 170 | 164 |
|
| 171 |
- //언어코드 |
|
| 172 |
- Ctgry ctgry = new Ctgry(); |
|
| 173 |
- ctgry.setCtgrymasterId("CTGMST_0000000000002");
|
|
| 174 |
- model.addAttribute("languageList", egovBBSCtgryService.selectComtnbbsctgryList(ctgry));
|
|
| 175 |
- |
|
| 176 |
- CmmnDetailCodeVO codeVO = new CmmnDetailCodeVO(); |
|
| 177 |
- //학교목록 |
|
| 178 |
- codeVO.setCodeId("COM041");
|
|
| 179 |
- model.addAttribute("schoolList", cmmUseService.selectCmmCodeDetail(codeVO));
|
|
| 180 |
- |
|
| 181 |
- //국제전화번호 |
|
| 182 |
- codeVO.setCodeId("COM040");
|
|
| 183 |
- model.addAttribute("telNumList", cmmUseService.selectCmmCodeDetail(codeVO));
|
|
| 184 |
- |
|
| 185 |
- //인증API서비스ID |
|
| 186 |
- model.addAttribute("serviceId", propertiesService.getString("hufs.user.serviceid"));
|
|
| 187 |
- model.addAttribute("authUri", propertiesService.getString("hufs.user.authUri"));
|
|
| 165 |
+ |
|
| 188 | 166 |
|
| 189 | 167 |
return "cmm/uss/umt/EgovUserInsert"; |
| 190 | 168 |
} |
... | ... | @@ -547,12 +525,7 @@ |
| 547 | 525 |
|
| 548 | 526 |
} |
| 549 | 527 |
|
| 550 |
- /** |
|
| 551 |
- * 사용자정보 수정 폼 화면으로 이동한다. |
|
| 552 |
- * @param model 화면모델 |
|
| 553 |
- * @return cmm/uss/umt/EgovUserUpdate |
|
| 554 |
- * @throws Exception |
|
| 555 |
- */ |
|
| 528 |
+ //사용자정보 수정 폼 화면으로 이동한다. |
|
| 556 | 529 |
@RequestMapping(value = "/uss/umt/cmm/EgovUserUpdateForm.do") |
| 557 | 530 |
public String EgovUserUpdateForm( |
| 558 | 531 |
@ModelAttribute("searchVO") UserDefaultVO searchVO,
|
... | ... | @@ -578,11 +551,6 @@ |
| 578 | 551 |
//학교목록 |
| 579 | 552 |
codeVO.setCodeId("COM041");
|
| 580 | 553 |
model.addAttribute("schoolList", cmmUseService.selectCmmCodeDetail(codeVO));
|
| 581 |
- |
|
| 582 |
- //언어코드 |
|
| 583 |
- Ctgry ctgry = new Ctgry(); |
|
| 584 |
- ctgry.setCtgrymasterId("CTGMST_0000000000002");
|
|
| 585 |
- model.addAttribute("languageList", egovBBSCtgryService.selectComtnbbsctgryList(ctgry));
|
|
| 586 | 554 |
|
| 587 | 555 |
//사진경로 |
| 588 | 556 |
model.addAttribute("MembersFileStoreWebPath", propertiesService.getString("Members.fileStoreWebPath"));
|
... | ... | @@ -820,11 +788,7 @@ |
| 820 | 788 |
// 재직상태 |
| 821 | 789 |
voComCode.setCodeId("LMS40");
|
| 822 | 790 |
model.addAttribute("workStatusList", cmmUseService.selectCmmCodeDetail(voComCode));
|
| 823 |
- |
|
| 824 |
- // 주관기관 |
|
| 825 |
- Ctgry ctgry = new Ctgry(); |
|
| 826 |
- ctgry.setCtgrymasterId("CTGMST_0000000000009");
|
|
| 827 |
- model.addAttribute("deptList", egovBBSCtgryService.selectComtnbbsctgryList(ctgry));
|
|
| 791 |
+ |
|
| 828 | 792 |
} |
| 829 | 793 |
|
| 830 | 794 |
return "usr/EgovMemberList"; |
... | ... | @@ -851,12 +815,7 @@ |
| 851 | 815 |
model.addAttribute("curriculumList", userManageService.selectUserCurriculumList(userManageVO));
|
| 852 | 816 |
|
| 853 | 817 |
model.addAttribute("mypageFlag", request.getParameter("type"));
|
| 854 |
- |
|
| 855 |
- // 세부전공 (언어) |
|
| 856 |
- Ctgry ctgry = new Ctgry(); |
|
| 857 |
- ctgry.setCtgrymasterId("CTGMST_0000000000002");
|
|
| 858 |
- model.addAttribute("langList", egovBBSCtgryService.selectComtnbbsctgryList(ctgry));
|
|
| 859 |
- |
|
| 818 |
+ |
|
| 860 | 819 |
return "usr/EgovMemberView"; |
| 861 | 820 |
} |
| 862 | 821 |
|
+++ base/src/main/resources/egovframework/mapper/mysql/cop/bbs/BBSCtgryMaster_SQL.xml
... | ... | @@ -0,0 +1,120 @@ |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 3 | +<mapper namespace="egovframework.com.cop.bbs.service.impl.BBSCtgryMasterMapper"> | |
| 4 | + | |
| 5 | + <resultMap id="comtnbbsctgrymaster" type="egovframework.com.cop.bbs.service.CtgryMasterVO"> | |
| 6 | + <result property="siteId" column="SITE_ID"/> | |
| 7 | + <result property="sysTyCode" column="SYS_TY_CODE"/> | |
| 8 | + <result property="ctgrymasterId" column="CTGRYMASTER_ID"/> | |
| 9 | + <result property="ctgrymasterNm" column="CTGRYMASTER_NM"/> | |
| 10 | + <result property="creatDt" column="CREAT_DT"/> | |
| 11 | + </resultMap> | |
| 12 | + | |
| 13 | + | |
| 14 | + <insert id="insertComtnbbsctgrymaster"> | |
| 15 | + INSERT INTO comtnbbsctgrymaster( | |
| 16 | + SITE_ID | |
| 17 | + , SYS_TY_CODE | |
| 18 | + , CTGRYMASTER_ID | |
| 19 | + , CTGRYMASTER_NM | |
| 20 | + , CREAT_DT | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + , USE_AT | |
| 25 | + ) VALUES ( | |
| 26 | + IFNULL(NULLIF(#{siteId},''),'SITE_000000000000001') | |
| 27 | + , IFNULL(NULLIF(#{sysTyCode},''),'SYS01') | |
| 28 | + ,#{ctgrymasterId} | |
| 29 | + , #{ctgrymasterNm} | |
| 30 | + , SYSDATE() | |
| 31 | + , 'Y' | |
| 32 | + ) | |
| 33 | + </insert> | |
| 34 | + | |
| 35 | + <update id="updateComtnbbsctgrymaster"> | |
| 36 | + UPDATE comtnbbsctgrymaster SET | |
| 37 | + SITE_ID = IFNULL(NULLIF(#{siteId},''),'SITE_000000000000001') | |
| 38 | + , SYS_TY_CODE = IFNULL(NULLIF(#{sysTyCode},''),'SYS01') | |
| 39 | + , CTGRYMASTER_NM=#{ctgrymasterNm} | |
| 40 | + WHERE CTGRYMASTER_ID=#{ctgrymasterId} | |
| 41 | + AND SITE_ID = IFNULL(NULLIF(#{siteId},''),'SITE_000000000000001') | |
| 42 | + AND SYS_TY_CODE = IFNULL(NULLIF(#{sysTyCode},''),'SYS01') | |
| 43 | + </update> | |
| 44 | + | |
| 45 | + <delete id="deleteComtnbbsctgrymaster"> | |
| 46 | + UPDATE comtnbbsctgrymaster SET | |
| 47 | + USE_AT='N' | |
| 48 | + WHERE CTGRYMASTER_ID=#{ctgrymasterId} | |
| 49 | + </delete> | |
| 50 | + | |
| 51 | + <select id="selectComtnbbsctgrymaster" resultMap="comtnbbsctgrymaster"> | |
| 52 | + SELECT | |
| 53 | + SITE_ID | |
| 54 | + , SYS_TY_CODE | |
| 55 | + , CTGRYMASTER_ID | |
| 56 | + , CTGRYMASTER_NM | |
| 57 | + , CREAT_DT | |
| 58 | + FROM comtnbbsctgrymaster | |
| 59 | + WHERE CTGRYMASTER_ID=#{ctgrymasterId} | |
| 60 | + </select> | |
| 61 | + | |
| 62 | + <select id="selectCtgrymasterId" resultMap="comtnbbsctgrymaster"> | |
| 63 | + SELECT | |
| 64 | + SITE_ID | |
| 65 | + , SYS_TY_CODE | |
| 66 | + , CTGRYMASTER_ID | |
| 67 | + , CTGRYMASTER_NM | |
| 68 | + , CREAT_DT | |
| 69 | + FROM comtnbbsctgrymaster | |
| 70 | + WHERE SITE_ID = IFNULL(NULLIF(#{siteId},''),'SITE_000000000000001') | |
| 71 | + AND SYS_TY_CODE = IFNULL(NULLIF(#{sysTyCode},''),'SYS01') | |
| 72 | + AND USE_AT = 'Y' | |
| 73 | + </select> | |
| 74 | + | |
| 75 | + <select id="selectComtnbbsctgrymasterList" parameterType="egovframework.com.cop.bbs.service.CtgryMasterVO" resultMap="comtnbbsctgrymaster"> | |
| 76 | + SELECT | |
| 77 | + SITE_ID | |
| 78 | + , SYS_TY_CODE | |
| 79 | + , CTGRYMASTER_ID | |
| 80 | + , CTGRYMASTER_NM | |
| 81 | + , CREAT_DT | |
| 82 | + FROM comtnbbsctgrymaster | |
| 83 | + | |
| 84 | + <include refid="selectComtnbbsctgrymasterWhere"></include> | |
| 85 | + | |
| 86 | + ORDER BY CTGRYMASTER_ID DESC | |
| 87 | + LIMIT #{recordCountPerPage} OFFSET #{firstIndex} | |
| 88 | + </select> | |
| 89 | + | |
| 90 | + <select id="selectComtnbbsctgrymasterListTotCnt" parameterType="egovframework.com.cop.bbs.service.CtgryMasterVO" resultType="int"> | |
| 91 | + SELECT | |
| 92 | + COUNT(*) | |
| 93 | + FROM comtnbbsctgrymaster | |
| 94 | + <include refid="selectComtnbbsctgrymasterWhere"></include> | |
| 95 | + </select> | |
| 96 | + | |
| 97 | + <sql id="selectComtnbbsctgrymasterWhere"> | |
| 98 | + <where> | |
| 99 | + SITE_ID = IFNULL(NULLIF(#{siteId},''),'SITE_000000000000001') | |
| 100 | + AND SYS_TY_CODE = IFNULL(NULLIF(#{sysTyCode},''),'SYS01') | |
| 101 | + AND USE_AT = 'Y' | |
| 102 | + <if test='searchCondition == "0"'> | |
| 103 | + AND CTGRYMASTER_NM LIKE CONCAT('%',#{searchKeyword},'%') | |
| 104 | + </if> | |
| 105 | + </where> | |
| 106 | + </sql> | |
| 107 | + | |
| 108 | + <select id="selectCtgrymasterList" parameterType="egovframework.com.cop.bbs.service.CtgryMasterVO" resultMap="comtnbbsctgrymaster"> | |
| 109 | + SELECT | |
| 110 | + SITE_ID | |
| 111 | + , SYS_TY_CODE | |
| 112 | + , CTGRYMASTER_ID | |
| 113 | + , CTGRYMASTER_NM | |
| 114 | + , CREAT_DT | |
| 115 | + FROM comtnbbsctgrymaster | |
| 116 | + <include refid="selectComtnbbsctgrymasterWhere"></include> | |
| 117 | + ORDER BY CTGRYMASTER_ID DESC | |
| 118 | + </select> | |
| 119 | + | |
| 120 | +</mapper> |
+++ base/src/main/resources/egovframework/mapper/mysql/cop/bbs/BBSCtgry_SQL.xml
... | ... | @@ -0,0 +1,230 @@ |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 3 | +<mapper namespace="egovframework.com.cop.bbs.service.impl.BBSCtgryMapper"> | |
| 4 | + | |
| 5 | + <resultMap id="comtnbbsctgry" type="egovframework.com.cop.bbs.service.CtgryVO"> | |
| 6 | + <result property="ctgryId" column="CTGRY_ID"/> | |
| 7 | + <result property="ctgrymasterId" column="CTGRYMASTER_ID"/> | |
| 8 | + <result property="upperCtgryId" column="UPPER_CTGRY_ID"/> | |
| 9 | + <result property="ctgryNm" column="CTGRY_NM"/> | |
| 10 | + <result property="sortOrdr" column="SORT_ORDR"/> | |
| 11 | + <result property="useAt" column="USE_AT"/> | |
| 12 | + <result property="ctgryPathByName" column="CTGRY_PATH_BY_NAME"/> | |
| 13 | + <result property="ctgryPathById" column="CTGRY_PATH_BY_ID"/> | |
| 14 | + <result property="ctgryLevel" column="CTGRY_LEVEL"/> | |
| 15 | + <result property="ctgryCn" column="CTGRY_CN"/> | |
| 16 | + <result property="ctgryVal" column="CTGRY_VAL"/> | |
| 17 | + </resultMap> | |
| 18 | + | |
| 19 | + <resultMap id="sortInfoMap" type="egovframework.com.cop.bbs.service.CtgryVO"> | |
| 20 | + <result property="ctgryId" column="CTGRY_ID"/> | |
| 21 | + <result property="sortOrdr" column="SORT_ORDR"/> | |
| 22 | + </resultMap> | |
| 23 | + | |
| 24 | + | |
| 25 | + <insert id="insertComtnbbsctgry"> | |
| 26 | + <selectKey resultType="int" keyProperty="sortOrdr"> | |
| 27 | + SELECT CAST(IFNULL(NULLIF(COUNT(*),''), 0) AS UNSIGNED) + 1 | |
| 28 | + FROM comtnbbsctgry | |
| 29 | + WHERE UPPER_CTGRY_ID = #{upperCtgryId} | |
| 30 | + </selectKey> | |
| 31 | + | |
| 32 | + INSERT INTO comtnbbsctgry( | |
| 33 | + CTGRY_ID | |
| 34 | + , CTGRYMASTER_ID | |
| 35 | + , UPPER_CTGRY_ID | |
| 36 | + , CTGRY_NM | |
| 37 | + , SORT_ORDR | |
| 38 | + , CTGRY_LEVEL | |
| 39 | + , CTGRY_CN | |
| 40 | + , CTGRY_VAL | |
| 41 | + , USE_AT | |
| 42 | + ) VALUES ( | |
| 43 | + #{ctgryId} | |
| 44 | + , #{ctgrymasterId} | |
| 45 | + , #{upperCtgryId} | |
| 46 | + , REPLACE(#{ctgryNm}, '/', '-') | |
| 47 | + , #{sortOrdr} | |
| 48 | + , #{ctgryLevel} | |
| 49 | + , #{ctgryCn} | |
| 50 | + , #{ctgryVal} | |
| 51 | + , 'Y' | |
| 52 | + ) | |
| 53 | + </insert> | |
| 54 | + | |
| 55 | + <update id="updateComtnbbsctgry"> | |
| 56 | + UPDATE comtnbbsctgry SET | |
| 57 | + UPPER_CTGRY_ID = #{upperCtgryId} | |
| 58 | + , CTGRY_NM = REPLACE(#{ctgryNm}, '/', '-') | |
| 59 | + , SORT_ORDR = #{sortOrdr} | |
| 60 | + , CTGRY_CN = #{ctgryCn} | |
| 61 | + , CTGRY_VAL = #{ctgryVal} | |
| 62 | + WHERE CTGRY_ID=#{ctgryId} | |
| 63 | + </update> | |
| 64 | + | |
| 65 | + <delete id="deleteComtnbbsctgry"> | |
| 66 | + UPDATE comtnbbsctgry SET | |
| 67 | + USE_AT='N' | |
| 68 | + WHERE CTGRY_ID=#{ctgryId} | |
| 69 | + OR UPPER_CTGRY_ID = #{ctgryId} | |
| 70 | + </delete> | |
| 71 | + | |
| 72 | + <select id="selectComtnbbsctgry" resultMap="comtnbbsctgry"> | |
| 73 | + SELECT | |
| 74 | + CTGRY_ID | |
| 75 | + , CTGRYMASTER_ID | |
| 76 | + , UPPER_CTGRY_ID | |
| 77 | + , CTGRY_NM | |
| 78 | + , SORT_ORDR | |
| 79 | + , USE_AT | |
| 80 | + , NULL AS CTGRY_PATH_BY_NAME | |
| 81 | + , NULL AS CTGRY_PATH_BY_ID | |
| 82 | + , 1 AS CTGRY_LEVEL | |
| 83 | + , CTGRY_CN | |
| 84 | + , CTGRY_VAL | |
| 85 | + FROM comtnbbsctgry | |
| 86 | + WHERE CTGRY_ID=#{ctgryId} | |
| 87 | + AND USE_AT = 'Y' | |
| 88 | + </select> | |
| 89 | + | |
| 90 | + <select id="selectComtnbbsctgryList" parameterType="egovframework.com.cop.bbs.service.CtgryVO" resultMap="comtnbbsctgry"> | |
| 91 | + SELECT * FROM ( | |
| 92 | + SELECT | |
| 93 | + CTGRY_ID | |
| 94 | + , CTGRYMASTER_ID | |
| 95 | + , UPPER_CTGRY_ID | |
| 96 | + , CTGRY_NM | |
| 97 | + , SORT_ORDR | |
| 98 | + , USE_AT | |
| 99 | + , uf_category_connect_by_path('>', CTGRYMASTER_ID, CTGRY_ID, 2) AS CTGRY_PATH_BY_NAME | |
| 100 | + , uf_category_connect_by('>', CTGRYMASTER_ID, CTGRY_ID, 2) AS CTGRY_PATH_BY_ID | |
| 101 | + , CTGRY_LEVEL | |
| 102 | + , CAST(uf_category_sort(CTGRYMASTER_ID, CTGRY_ID) AS UNSIGNED) AS SORT | |
| 103 | + , CTGRY_CN | |
| 104 | + , CTGRY_VAL | |
| 105 | + FROM comtnbbsctgry | |
| 106 | + WHERE CTGRYMASTER_ID = #{ctgrymasterId} | |
| 107 | + AND USE_AT = 'Y' | |
| 108 | + ) A | |
| 109 | + ORDER BY CAST(SORT AS unsigned) ASC | |
| 110 | + </select> | |
| 111 | + | |
| 112 | + <select id="selectComtnbbsctgryListTotCnt" parameterType="egovframework.com.cop.bbs.service.CtgryVO" resultType="int"> | |
| 113 | + <!-- SELECT | |
| 114 | + COUNT(*) | |
| 115 | + FROM COMTNBBSCTGRY | |
| 116 | + WHERE USE_AT = 'Y' | |
| 117 | + AND CTGRYMASTER_ID = #ctgrymasterId# | |
| 118 | + --> | |
| 119 | + </select> | |
| 120 | + | |
| 121 | + <select id="selectComtnbbsctgryLevel" parameterType="egovframework.com.cop.bbs.service.CtgryVO" resultType="int"> | |
| 122 | + SELECT | |
| 123 | + MAX(CTGRY_LEVEL) | |
| 124 | + FROM comtnbbsctgry | |
| 125 | + WHERE CTGRYMASTER_ID = #{ctgrymasterId} | |
| 126 | + AND USE_AT = 'Y' | |
| 127 | + <!-- | |
| 128 | + SELECT | |
| 129 | + CTGRY_LEVEL | |
| 130 | + FROM COMTNBBSCTGRY | |
| 131 | + WHERE CTGRY_ID = #ctgryId# | |
| 132 | + --> | |
| 133 | + </select> | |
| 134 | + | |
| 135 | + <select id="selectTargetSortOrdr" parameterType="egovframework.com.cop.bbs.service.CtgryVO" resultMap="sortInfoMap"> | |
| 136 | + SELECT | |
| 137 | + SUBSTR(A, 11) AS CTGRY_ID, | |
| 138 | + TO_NUMBER(SUBSTR(A, 0, 10)) AS SORT_ORDR | |
| 139 | + FROM | |
| 140 | + ( | |
| 141 | + SELECT | |
| 142 | + <choose> | |
| 143 | + <when test='sortTyCode == "U"'> | |
| 144 | + COALESCE(MAX(LPAD(SORT_ORDR, 10, '0') || CTGRY_ID), 1) AS A | |
| 145 | + </when> | |
| 146 | + <when test='sortTyCode == "D"'> | |
| 147 | + COALESCE(MIN(LPAD(SORT_ORDR, 10, '0') || CTGRY_ID), 1) AS A | |
| 148 | + </when> | |
| 149 | + </choose> | |
| 150 | + FROM comtnbbsctgry | |
| 151 | + WHERE USE_AT = 'Y' | |
| 152 | + AND LEVEL = 1 | |
| 153 | + <choose> | |
| 154 | + <when test='sortTyCode == "U"'> | |
| 155 | + AND <![CDATA[ SORT_ORDR < #{sortOrdr} ]]> | |
| 156 | + </when> | |
| 157 | + <when test='sortTyCode == "D"'> | |
| 158 | + AND <![CDATA[ SORT_ORDR > #{sortOrdr} ]]> | |
| 159 | + </when> | |
| 160 | + </choose> | |
| 161 | + START WITH UPPER_CTGRY_ID = #{upperCtgryId} | |
| 162 | + CONNECT BY PRIOR CTGRY_ID = UPPER_CTGRY_ID | |
| 163 | + ) X | |
| 164 | + WHERE A IS NOT NULL | |
| 165 | + </select> | |
| 166 | + | |
| 167 | + <update id="updateSortOrdr" parameterType="egovframework.com.cop.bbs.service.CtgryVO"> | |
| 168 | + UPDATE comtnbbsctgry SET | |
| 169 | + <choose> | |
| 170 | + <when test='sortTyCode == "U"'> | |
| 171 | + SORT_ORDR = SORT_ORDR - 1 | |
| 172 | + </when> | |
| 173 | + <when test='sortTyCode == "D"'> | |
| 174 | + SORT_ORDR = SORT_ORDR + 1 | |
| 175 | + </when> | |
| 176 | + </choose> | |
| 177 | + WHERE CTGRY_ID = #{ctgryId} | |
| 178 | + </update> | |
| 179 | + | |
| 180 | + <update id="updateSiblingsSortOrdr" parameterType="egovframework.com.cop.bbs.service.CtgryVO"> | |
| 181 | + UPDATE comtnbbsctgry SET | |
| 182 | + <choose> | |
| 183 | + <when test='sortTyCode == "U"'> | |
| 184 | + SORT_ORDR = SORT_ORDR + 1 | |
| 185 | + </when> | |
| 186 | + <when test='sortTyCode == "D"'> | |
| 187 | + SORT_ORDR = SORT_ORDR - 1 | |
| 188 | + </when> | |
| 189 | + </choose> | |
| 190 | + WHERE UPPER_CTGRY_ID = #{upperCtgryId} | |
| 191 | + AND CTGRY_ID != #{ctgryId} | |
| 192 | + <choose> | |
| 193 | + <when test='sortTyCode == "U"'> | |
| 194 | + AND SORT_ORDR = #{sortOrdr} - 1 | |
| 195 | + </when> | |
| 196 | + <when test='sortTyCode == "D"'> | |
| 197 | + AND SORT_ORDR = #{sortOrdr} + 1 | |
| 198 | + </when> | |
| 199 | + </choose> | |
| 200 | + </update> | |
| 201 | + <!-- | |
| 202 | + <select id="selectComtnbbsctgryList" parameterType="String" resultMap="comtnbbsctgry"> | |
| 203 | + SELECT | |
| 204 | + CTGRY_ID | |
| 205 | + , CTGRYMASTER_ID | |
| 206 | + , UPPER_CTGRY_ID | |
| 207 | + , CTGRY_NM | |
| 208 | + , SORT_ORDR | |
| 209 | + , USE_AT | |
| 210 | + , SYS_CONNECT_BY_PATH(CTGRY_NM, '>') AS CTGRY_PATH_BY_NAME | |
| 211 | + , SYS_CONNECT_BY_PATH(CTGRY_ID, '>') AS CTGRY_PATH_BY_ID | |
| 212 | + , LEVEL - 1 AS CTGRY_LEVEL | |
| 213 | + , CTGRY_CN | |
| 214 | + , CTGRY_VAL | |
| 215 | + FROM comtnbbsctgry | |
| 216 | + WHERE CTGRYMASTER_ID = #{ctgrymasterId} | |
| 217 | + AND USE_AT = 'Y' | |
| 218 | + START WITH UPPER_CTGRY_ID IS NULL | |
| 219 | + CONNECT BY PRIOR CTGRY_ID = UPPER_CTGRY_ID | |
| 220 | + ORDER SIBLINGS BY SORT_ORDR ASC | |
| 221 | + | |
| 222 | + </select> | |
| 223 | + --> | |
| 224 | + <select id="selectComtnbbsctgryNextLevel" parameterType="egovframework.com.cop.bbs.service.CtgryVO" resultType="int"> | |
| 225 | + SELECT CAST(IFNULL(NULLIF(CTGRY_LEVEL,''), 0) AS UNSIGNED) + 1 | |
| 226 | + FROM comtnbbsctgry | |
| 227 | + WHERE CTGRY_ID = #{upperCtgryId} | |
| 228 | + </select> | |
| 229 | + | |
| 230 | +</mapper> |
--- base/src/main/resources/egovframework/mapper/mysql/cop/com/BbsSourcHistory_SQL_Mysql.xml
... | ... | @@ -1,101 +0,0 @@ |
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | -<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd"> | |
| 3 | - | |
| 4 | -<sqlMap namespace="BbsSourcHistoryDAO"> | |
| 5 | - | |
| 6 | - <typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/> | |
| 7 | - <typeAlias alias="BbssourcVO" type="egovframework.com.cop.com.service.BbsSourcVO"/> | |
| 8 | - | |
| 9 | - <resultMap id="bbssourcHistory" class="egovframework.com.cop.com.service.BbsSourc"> | |
| 10 | - <result property="bbsSourcHistId" column="BBS_SOURC_HIST_ID" columnIndex="1"/> | |
| 11 | - <result property="bbsSourcId" column="BBS_SOURC_ID" columnIndex="2"/> | |
| 12 | - <result property="listSourc" column="LIST_SOURC" columnIndex="3"/> | |
| 13 | - <result property="viewSourc" column="VIEW_SOURC" columnIndex="4"/> | |
| 14 | - <result property="formSourc" column="FORM_SOURC" columnIndex="5"/> | |
| 15 | - <result property="cmSourc" column="CM_SOURC" columnIndex="6"/> | |
| 16 | - <result property="prevewFileNm" column="PREVEW_FILE_NM" columnIndex="7"/> | |
| 17 | - <result property="lastUpdusrId" column="LAST_UPDUSR_ID" columnIndex="8"/> | |
| 18 | - <result property="lastUpdusrPnttm" column="LAST_UPDUSR_PNTTM" columnIndex="9"/> | |
| 19 | - <result property="sourcSeCode" column="SOURC_SE_CODE" columnIndex="10"/> | |
| 20 | - </resultMap> | |
| 21 | - | |
| 22 | - <resultMap id="bbssourcHistoryList" class="egovframework.com.cop.com.service.BbsSourc"> | |
| 23 | - <result property="bbsSourcHistId" column="BBS_SOURC_HIST_ID" columnIndex="1"/> | |
| 24 | - <result property="bbsSourcId" column="BBS_SOURC_ID" columnIndex="2"/> | |
| 25 | - <result property="prevewFileNm" column="PREVEW_FILE_NM" columnIndex="3"/> | |
| 26 | - <result property="lastUpdusrId" column="LAST_UPDUSR_ID" columnIndex="4"/> | |
| 27 | - <result property="lastUpdusrPnttm" column="LAST_UPDUSR_PNTTM" columnIndex="5"/> | |
| 28 | - </resultMap> | |
| 29 | - | |
| 30 | - <insert id="BbsSourcHistoryDAO.insertBbsSourcHistory"> | |
| 31 | - <![CDATA[ | |
| 32 | - INSERT INTO comthbbssourchistory | |
| 33 | - ( BBS_SOURC_HIST_ID | |
| 34 | - , BBS_SOURC_ID | |
| 35 | - , SOURC_SE_CODE | |
| 36 | - , LIST_SOURC | |
| 37 | - , VIEW_SOURC | |
| 38 | - , FORM_SOURC | |
| 39 | - , CM_SOURC | |
| 40 | - , PREVEW_FILE_NM | |
| 41 | - , LAST_UPDUSR_ID | |
| 42 | - , LAST_UPDUSR_PNTTM ) | |
| 43 | - VALUES ( #bbsSourcHistId# | |
| 44 | - , #bbsSourcId# | |
| 45 | - , #sourcSeCode# | |
| 46 | - , #listSourc# | |
| 47 | - , #viewSourc# | |
| 48 | - , #formSourc# | |
| 49 | - , #cmSourc# | |
| 50 | - , #prevewFileNm# | |
| 51 | - , #lastUpdusrId# | |
| 52 | - , SYSDATE() ) | |
| 53 | - ]]> | |
| 54 | - </insert> | |
| 55 | - | |
| 56 | - | |
| 57 | - <delete id="BbsSourcHistoryDAO.deleteBbsSourcHistory"> | |
| 58 | - <![CDATA[ | |
| 59 | - DELETE FROM comthbbssourchistory | |
| 60 | - WHERE BBS_SOURC_HIST_ID=#bbsSourcHistId# | |
| 61 | - ]]> | |
| 62 | - </delete> | |
| 63 | - | |
| 64 | - <select id="BbsSourcHistoryDAO.selectBbsSourcHistory" resultMap="bbssourcHistory"> | |
| 65 | - <![CDATA[ | |
| 66 | - SELECT | |
| 67 | - BBS_SOURC_HIST_ID | |
| 68 | - , BBS_SOURC_ID | |
| 69 | - , LIST_SOURC | |
| 70 | - , VIEW_SOURC | |
| 71 | - , FORM_SOURC | |
| 72 | - , CM_SOURC | |
| 73 | - , PREVEW_FILE_NM | |
| 74 | - , LAST_UPDUSR_ID | |
| 75 | - , LAST_UPDUSR_PNTTM | |
| 76 | - , SOURC_SE_CODE | |
| 77 | - FROM comthbbssourchistory | |
| 78 | - WHERE BBS_SOURC_HIST_ID=#bbsSourcHistId# | |
| 79 | - ]]> | |
| 80 | - </select> | |
| 81 | - | |
| 82 | - <select id="BbsSourcHistoryDAO.selectBbsSourcHistoryList" parameterClass="BbssourcVO" resultMap="bbssourcHistoryList"> | |
| 83 | - SELECT | |
| 84 | - BBS_SOURC_HIST_ID | |
| 85 | - , BBS_SOURC_ID | |
| 86 | - , PREVEW_FILE_NM | |
| 87 | - , LAST_UPDUSR_ID | |
| 88 | - , LAST_UPDUSR_PNTTM | |
| 89 | - FROM comthbbssourchistory | |
| 90 | - WHERE BBS_SOURC_ID = #bbsSourcId# | |
| 91 | - ORDER BY BBS_SOURC_HIST_ID DESC | |
| 92 | - LIMIT #recordCountPerPage# OFFSET #firstIndex# | |
| 93 | - </select> | |
| 94 | - | |
| 95 | - <select id="BbsSourcHistoryDAO.selectBbsSourcHistoryListCnt" parameterClass="BbssourcVO" resultClass="int"> | |
| 96 | - SELECT COUNT(*) totcnt | |
| 97 | - FROM comthbbssourchistory | |
| 98 | - WHERE BBS_SOURC_ID = #bbsSourcId# | |
| 99 | - </select> | |
| 100 | - | |
| 101 | -</sqlMap> |
--- base/src/main/resources/egovframework/spring/context-idgen.xml
+++ base/src/main/resources/egovframework/spring/context-idgen.xml
... | ... | @@ -495,9 +495,7 @@ |
| 495 | 495 |
<property name="tableName" value="BBS_CMT_NO"/> |
| 496 | 496 |
</bean> |
| 497 | 497 |
<!-- BBS Cate --> |
| 498 |
- <bean name="egovBBSCtgryMstrIdGnrService" |
|
| 499 |
- class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService" |
|
| 500 |
- destroy-method="destroy"> |
|
| 498 |
+ <bean name="bbsCtgryMstrIdGnrService" class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService" destroy-method="destroy"> |
|
| 501 | 499 |
<property name="dataSource" ref="dataSource" /> |
| 502 | 500 |
<property name="strategy" ref="bbsCtgryMstrStrategy" /> |
| 503 | 501 |
<property name="blockSize" value="1"/> |
--- base/src/main/resources/egovframework/sqlmap/config/mysql/sql-map-config-mysql.xml
+++ base/src/main/resources/egovframework/sqlmap/config/mysql/sql-map-config-mysql.xml
... | ... | @@ -49,8 +49,6 @@ |
| 49 | 49 |
|
| 50 | 50 |
<sqlMap resource="egovframework/sqlmap/mysql/cop/bbs/EgovBoard_SQL_Mysql.xml"/> |
| 51 | 51 |
<sqlMap resource="egovframework/sqlmap/mysql/cop/bbs/EgovBBSComment_SQL_Mysql.xml"/> |
| 52 |
- <sqlMap resource="egovframework/sqlmap/mysql/cop/bbs/EgovBBSCtgryMaster_SQL_Mysql.xml"/> |
|
| 53 |
- <sqlMap resource="egovframework/sqlmap/mysql/cop/bbs/EgovBBSCtgry_SQL_Mysql.xml"/> |
|
| 54 | 52 |
|
| 55 | 53 |
|
| 56 | 54 |
</sqlMapConfig> |
--- base/src/main/resources/egovframework/sqlmap/mysql/cop/bbs/EgovBBSCtgryMaster_SQL_Mysql.xml
... | ... | @@ -1,133 +0,0 @@ |
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | -<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd"> | |
| 3 | - | |
| 4 | -<sqlMap namespace="Comtnbbsctgrymaster"> | |
| 5 | - | |
| 6 | - <typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/> | |
| 7 | - <typeAlias alias="comtnbbsctgrymasterSerarchVO" type="egovframework.com.cop.bbs.service.CtgryMaster"/> | |
| 8 | - | |
| 9 | - <resultMap id="comtnbbsctgrymaster" class="egovframework.com.cop.bbs.service.CtgryMaster"> | |
| 10 | - <result property="siteId" column="SITE_ID" columnIndex="1"/> | |
| 11 | - <result property="sysTyCode" column="SYS_TY_CODE" columnIndex="2"/> | |
| 12 | - <result property="ctgrymasterId" column="CTGRYMASTER_ID" columnIndex="3"/> | |
| 13 | - <result property="ctgrymasterNm" column="CTGRYMASTER_NM" columnIndex="4"/> | |
| 14 | - <result property="creatDt" column="CREAT_DT" columnIndex="5"/> | |
| 15 | - </resultMap> | |
| 16 | - | |
| 17 | - <insert id="comtnbbsctgrymasterDAO.insertComtnbbsctgrymaster_S"> | |
| 18 | - <![CDATA[ | |
| 19 | - INSERT INTO comtnbbsctgrymaster | |
| 20 | - ( SITE_ID | |
| 21 | - , SYS_TY_CODE | |
| 22 | - , CTGRYMASTER_ID | |
| 23 | - , CTGRYMASTER_NM | |
| 24 | - , CREAT_DT | |
| 25 | - , USE_AT ) | |
| 26 | - VALUES ( | |
| 27 | - IFNULL(NULLIF(#siteId#,''),'SITE_000000000000001') | |
| 28 | - , IFNULL(NULLIF(#sysTyCode#,''),'SYS01') | |
| 29 | - ,#ctgrymasterId# | |
| 30 | - , #ctgrymasterNm# | |
| 31 | - , SYSDATE() | |
| 32 | - , 'Y' ) | |
| 33 | - ]]> | |
| 34 | - </insert> | |
| 35 | - | |
| 36 | - <update id="comtnbbsctgrymasterDAO.updateComtnbbsctgrymaster_S"> | |
| 37 | - <![CDATA[ | |
| 38 | - UPDATE comtnbbsctgrymaster | |
| 39 | - SET SITE_ID = IFNULL(NULLIF(#siteId#,''),'SITE_000000000000001') | |
| 40 | - , SYS_TY_CODE = IFNULL(NULLIF(#sysTyCode#,''),'SYS01') | |
| 41 | - , CTGRYMASTER_NM=#ctgrymasterNm# | |
| 42 | - WHERE CTGRYMASTER_ID=#ctgrymasterId# | |
| 43 | - AND SITE_ID = IFNULL(NULLIF(#siteId#,''),'SITE_000000000000001') | |
| 44 | - AND SYS_TY_CODE = IFNULL(NULLIF(#sysTyCode#,''),'SYS01') | |
| 45 | - ]]> | |
| 46 | - </update> | |
| 47 | - | |
| 48 | - <delete id="comtnbbsctgrymasterDAO.deleteComtnbbsctgrymaster_S"> | |
| 49 | - <![CDATA[ | |
| 50 | - UPDATE comtnbbsctgrymaster | |
| 51 | - SET USE_AT='N' | |
| 52 | - WHERE CTGRYMASTER_ID=#ctgrymasterId# | |
| 53 | - AND SITE_ID = IFNULL(NULLIF(#siteId#,''),'SITE_000000000000001') | |
| 54 | - ]]> | |
| 55 | - </delete> | |
| 56 | - | |
| 57 | - <select id="comtnbbsctgrymasterDAO.selectComtnbbsctgrymaster_S" resultMap="comtnbbsctgrymaster"> | |
| 58 | - <![CDATA[ | |
| 59 | - SELECT | |
| 60 | - SITE_ID | |
| 61 | - , SYS_TY_CODE | |
| 62 | - , CTGRYMASTER_ID | |
| 63 | - , CTGRYMASTER_NM | |
| 64 | - , CREAT_DT | |
| 65 | - FROM comtnbbsctgrymaster | |
| 66 | - WHERE CTGRYMASTER_ID=#ctgrymasterId# | |
| 67 | - AND SITE_ID = IFNULL(NULLIF(#siteId#,''),'SITE_000000000000001') | |
| 68 | - AND SYS_TY_CODE = IFNULL(NULLIF(#sysTyCode#,''),'SYS01') | |
| 69 | - ]]> | |
| 70 | - </select> | |
| 71 | - | |
| 72 | - <select id="comtnbbsctgrymasterDAO.selectCtgrymasterId" resultMap="comtnbbsctgrymaster"> | |
| 73 | - SELECT | |
| 74 | - SITE_ID | |
| 75 | - , SYS_TY_CODE | |
| 76 | - , CTGRYMASTER_ID | |
| 77 | - , CTGRYMASTER_NM | |
| 78 | - , CREAT_DT | |
| 79 | - FROM comtnbbsctgrymaster | |
| 80 | - WHERE SITE_ID = IFNULL(NULLIF(#siteId#,''),'SITE_000000000000001') | |
| 81 | - AND SYS_TY_CODE = IFNULL(NULLIF(#sysTyCode#,''),'SYS01') | |
| 82 | - AND USE_AT = 'Y' | |
| 83 | - </select> | |
| 84 | - | |
| 85 | - <select id="comtnbbsctgrymasterDAO.selectComtnbbsctgrymasterList_D" parameterClass="comtnbbsctgrymasterSerarchVO" resultMap="comtnbbsctgrymaster"> | |
| 86 | - SELECT | |
| 87 | - SITE_ID | |
| 88 | - , SYS_TY_CODE | |
| 89 | - , CTGRYMASTER_ID | |
| 90 | - , CTGRYMASTER_NM | |
| 91 | - , CREAT_DT | |
| 92 | - FROM comtnbbsctgrymaster | |
| 93 | - WHERE | |
| 94 | - SITE_ID = IFNULL(NULLIF(#siteId#,''),'SITE_000000000000001') | |
| 95 | - AND SYS_TY_CODE = IFNULL(NULLIF(#sysTyCode#,''),'SYS01') | |
| 96 | - AND USE_AT = 'Y' | |
| 97 | - <isEqual prepend="AND" property="searchCondition" compareValue="0"> | |
| 98 | - <![CDATA[ CTGRYMASTER_NM LIKE CONCAT('%',#searchKeyword#,'%') ]]>
| |
| 99 | - </isEqual> | |
| 100 | - ORDER BY CTGRYMASTER_ID DESC | |
| 101 | - LIMIT #recordCountPerPage# OFFSET #firstIndex# | |
| 102 | - </select> | |
| 103 | - <select id="comtnbbsctgrymasterDAO.selectComtnbbsctgrymasterListTotCnt_S" parameterClass="comtnbbsctgrymasterSerarchVO" resultClass="int"> | |
| 104 | - SELECT | |
| 105 | - COUNT(*) | |
| 106 | - FROM comtnbbsctgrymaster | |
| 107 | - WHERE | |
| 108 | - SITE_ID = IFNULL(NULLIF(#siteId#,''),'SITE_000000000000001') | |
| 109 | - AND SYS_TY_CODE = IFNULL(NULLIF(#sysTyCode#,''),'SYS01') | |
| 110 | - AND USE_AT = 'Y' | |
| 111 | - <isEqual prepend="AND" property="searchCondition" compareValue="0"> | |
| 112 | - <![CDATA[ CTGRYMASTER_NM LIKE CONCAT('%',#searchKeyword#,'%') ]]>
| |
| 113 | - </isEqual> | |
| 114 | - </select> | |
| 115 | - | |
| 116 | - <select id="comtnbbsctgrymasterDAO.selectCtgrymasterList" parameterClass="comtnbbsctgrymasterSerarchVO" resultMap="comtnbbsctgrymaster"> | |
| 117 | - SELECT | |
| 118 | - SITE_ID | |
| 119 | - , SYS_TY_CODE | |
| 120 | - , CTGRYMASTER_ID | |
| 121 | - , CTGRYMASTER_NM | |
| 122 | - , CREAT_DT | |
| 123 | - FROM comtnbbsctgrymaster | |
| 124 | - WHERE | |
| 125 | - SITE_ID = IFNULL(NULLIF(#siteId#,''),'SITE_000000000000001') | |
| 126 | - AND SYS_TY_CODE = IFNULL(NULLIF(#sysTyCode#,''),'SYS01') | |
| 127 | - AND USE_AT = 'Y' | |
| 128 | - <isEqual prepend="AND" property="searchCondition" compareValue="0"> | |
| 129 | - <![CDATA[ CTGRYMASTER_NM LIKE CONCAT('%',#searchKeyword#,'%') ]]>
| |
| 130 | - </isEqual> | |
| 131 | - ORDER BY CTGRYMASTER_ID DESC | |
| 132 | - </select> | |
| 133 | -</sqlMap> |
--- base/src/main/resources/egovframework/sqlmap/mysql/cop/bbs/EgovBBSCtgry_SQL_Mysql.xml
... | ... | @@ -1,208 +0,0 @@ |
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | -<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd"> | |
| 3 | - | |
| 4 | -<sqlMap namespace="Comtnbbsctgry"> | |
| 5 | - | |
| 6 | - <typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/> | |
| 7 | - <typeAlias alias="comtnbbsctgrySerarchVO" type="egovframework.com.cop.bbs.service.Ctgry"/> | |
| 8 | - <typeAlias alias="BoardVO" type="egovframework.com.cop.bbs.service.BoardVO"/> | |
| 9 | - | |
| 10 | - <resultMap id="comtnbbsctgry" class="egovframework.com.cop.bbs.service.Ctgry"> | |
| 11 | - <result property="ctgryId" column="CTGRY_ID" columnIndex="1"/> | |
| 12 | - <result property="ctgrymasterId" column="CTGRYMASTER_ID" columnIndex="2"/> | |
| 13 | - <result property="upperCtgryId" column="UPPER_CTGRY_ID" columnIndex="3"/> | |
| 14 | - <result property="ctgryNm" column="CTGRY_NM" columnIndex="4"/> | |
| 15 | - <result property="sortOrdr" column="SORT_ORDR" columnIndex="5"/> | |
| 16 | - <result property="useAt" column="USE_AT" columnIndex="6"/> | |
| 17 | - <result property="ctgryPathByName" column="CTGRY_PATH_BY_NAME" columnIndex="7"/> | |
| 18 | - <result property="ctgryPathById" column="CTGRY_PATH_BY_ID" columnIndex="8"/> | |
| 19 | - <result property="ctgryLevel" column="CTGRY_LEVEL" columnIndex="9"/> | |
| 20 | - <result property="ctgryCn" column="CTGRY_CN" columnIndex="10"/> | |
| 21 | - <result property="ctgryVal" column="CTGRY_VAL" columnIndex="11"/> | |
| 22 | - </resultMap> | |
| 23 | - | |
| 24 | - <resultMap id="sortInfoMap" class="egovframework.com.cop.bbs.service.Ctgry"> | |
| 25 | - <result property="ctgryId" column="CTGRY_ID" columnIndex="1"/> | |
| 26 | - <result property="sortOrdr" column="SORT_ORDR" columnIndex="2"/> | |
| 27 | - </resultMap> | |
| 28 | - | |
| 29 | - <insert id="comtnbbsctgryDAO.insertComtnbbsctgry_S"> | |
| 30 | - <selectKey resultClass="int" keyProperty="sortOrdr"> | |
| 31 | - SELECT CAST(IFNULL(NULLIF(COUNT(*),''), 0) AS UNSIGNED) + 1 | |
| 32 | - FROM comtnbbsctgry | |
| 33 | - WHERE UPPER_CTGRY_ID = #upperCtgryId# | |
| 34 | - </selectKey> | |
| 35 | - | |
| 36 | - INSERT INTO comtnbbsctgry | |
| 37 | - ( CTGRY_ID | |
| 38 | - , CTGRYMASTER_ID | |
| 39 | - , UPPER_CTGRY_ID | |
| 40 | - , CTGRY_NM | |
| 41 | - , SORT_ORDR | |
| 42 | - , CTGRY_LEVEL | |
| 43 | - , CTGRY_CN | |
| 44 | - , CTGRY_VAL | |
| 45 | - , USE_AT ) | |
| 46 | - VALUES ( #ctgryId# | |
| 47 | - , #ctgrymasterId# | |
| 48 | - , #upperCtgryId# | |
| 49 | - , REPLACE(#ctgryNm#, '/', '-') | |
| 50 | - , #sortOrdr# | |
| 51 | - , #ctgryLevel# | |
| 52 | - , #ctgryCn# | |
| 53 | - , #ctgryVal# | |
| 54 | - , 'Y' ) | |
| 55 | - </insert> | |
| 56 | - | |
| 57 | - <update id="comtnbbsctgryDAO.updateComtnbbsctgry_S"> | |
| 58 | - <![CDATA[ | |
| 59 | - UPDATE comtnbbsctgry | |
| 60 | - SET | |
| 61 | - UPPER_CTGRY_ID = #upperCtgryId# | |
| 62 | - , CTGRY_NM = REPLACE(#ctgryNm#, '/', '-') | |
| 63 | - , SORT_ORDR = #sortOrdr# | |
| 64 | - , CTGRY_CN = #ctgryCn# | |
| 65 | - , CTGRY_VAL = #ctgryVal# | |
| 66 | - WHERE CTGRY_ID=#ctgryId# | |
| 67 | - ]]> | |
| 68 | - </update> | |
| 69 | - | |
| 70 | - <delete id="comtnbbsctgryDAO.deleteComtnbbsctgry_S"> | |
| 71 | - <![CDATA[ | |
| 72 | - UPDATE comtnbbsctgry | |
| 73 | - SET USE_AT='N' | |
| 74 | - WHERE CTGRY_ID=#ctgryId# | |
| 75 | - OR UPPER_CTGRY_ID = #ctgryId# | |
| 76 | - ]]> | |
| 77 | - </delete> | |
| 78 | - | |
| 79 | - <select id="comtnbbsctgryDAO.selectComtnbbsctgry_S" resultMap="comtnbbsctgry"> | |
| 80 | - <![CDATA[ | |
| 81 | - SELECT | |
| 82 | - CTGRY_ID | |
| 83 | - , CTGRYMASTER_ID | |
| 84 | - , UPPER_CTGRY_ID | |
| 85 | - , CTGRY_NM | |
| 86 | - , SORT_ORDR | |
| 87 | - , USE_AT | |
| 88 | - , NULL AS CTGRY_PATH_BY_NAME | |
| 89 | - , NULL AS CTGRY_PATH_BY_ID | |
| 90 | - , 1 AS CTGRY_LEVEL | |
| 91 | - , CTGRY_CN | |
| 92 | - , CTGRY_VAL | |
| 93 | - FROM comtnbbsctgry | |
| 94 | - WHERE CTGRY_ID=#ctgryId# | |
| 95 | - AND USE_AT = 'Y' | |
| 96 | - ]]> | |
| 97 | - </select> | |
| 98 | - | |
| 99 | - <select id="comtnbbsctgryDAO.selectComtnbbsctgryList_D" parameterClass="comtnbbsctgrySerarchVO" resultMap="comtnbbsctgry"> | |
| 100 | - SELECT * FROM ( | |
| 101 | - SELECT | |
| 102 | - CTGRY_ID | |
| 103 | - , CTGRYMASTER_ID | |
| 104 | - , UPPER_CTGRY_ID | |
| 105 | - , CTGRY_NM | |
| 106 | - , SORT_ORDR | |
| 107 | - , USE_AT | |
| 108 | - , uf_category_connect_by_path('>', CTGRYMASTER_ID, CTGRY_ID, 2) AS CTGRY_PATH_BY_NAME
| |
| 109 | - , uf_category_connect_by('>', CTGRYMASTER_ID, CTGRY_ID, 2) AS CTGRY_PATH_BY_ID
| |
| 110 | - , CTGRY_LEVEL | |
| 111 | - , CAST(uf_category_sort(CTGRYMASTER_ID, CTGRY_ID) AS UNSIGNED) AS SORT | |
| 112 | - , CTGRY_CN | |
| 113 | - , CTGRY_VAL | |
| 114 | - FROM comtnbbsctgry | |
| 115 | - WHERE CTGRYMASTER_ID = #ctgrymasterId# | |
| 116 | - AND USE_AT = 'Y' | |
| 117 | - ) A | |
| 118 | - ORDER BY CAST(SORT AS unsigned) ASC | |
| 119 | - </select> | |
| 120 | - | |
| 121 | - <select id="comtnbbsctgryDAO.selectComtnbbsctgryListTotCnt_S" parameterClass="comtnbbsctgrySerarchVO" resultClass="int"> | |
| 122 | - <!-- SELECT | |
| 123 | - COUNT(*) | |
| 124 | - FROM COMTNBBSCTGRY | |
| 125 | - WHERE USE_AT = 'Y' | |
| 126 | - AND CTGRYMASTER_ID = #ctgrymasterId# | |
| 127 | - --> | |
| 128 | - </select> | |
| 129 | - | |
| 130 | - <select id="comtnbbsctgryDAO.selectComtnbbsctgryLevel" parameterClass="comtnbbsctgrySerarchVO" resultClass="int"> | |
| 131 | - SELECT | |
| 132 | - MAX(CTGRY_LEVEL) | |
| 133 | - FROM comtnbbsctgry | |
| 134 | - WHERE CTGRYMASTER_ID = #ctgrymasterId# | |
| 135 | - AND USE_AT = 'Y' | |
| 136 | - <!-- | |
| 137 | - SELECT | |
| 138 | - CTGRY_LEVEL | |
| 139 | - FROM COMTNBBSCTGRY | |
| 140 | - WHERE CTGRY_ID = #ctgryId# | |
| 141 | - --> | |
| 142 | - </select> | |
| 143 | - | |
| 144 | - <select id="comtnbbsctgryDAO.selectTargetSortOrdr" parameterClass="comtnbbsctgrySerarchVO" resultMap="sortInfoMap"> | |
| 145 | - SELECT | |
| 146 | - SUBSTR(A, 11) AS CTGRY_ID, | |
| 147 | - TO_NUMBER(SUBSTR(A, 0, 10)) AS SORT_ORDR | |
| 148 | - FROM | |
| 149 | - ( | |
| 150 | - SELECT | |
| 151 | - <isEqual property="sortTyCode" compareValue="U">COALESCE(MAX(LPAD(SORT_ORDR, 10, '0') || CTGRY_ID), 1) AS A </isEqual> | |
| 152 | - <isEqual property="sortTyCode" compareValue="D">COALESCE(MIN(LPAD(SORT_ORDR, 10, '0') || CTGRY_ID), 1) AS A </isEqual> | |
| 153 | - FROM comtnbbsctgry | |
| 154 | - WHERE USE_AT = 'Y' | |
| 155 | - AND LEVEL = 1 | |
| 156 | - <isEqual property="sortTyCode" compareValue="U" prepend="AND"><![CDATA[ SORT_ORDR < #sortOrdr# ]]></isEqual> | |
| 157 | - <isEqual property="sortTyCode" compareValue="D" prepend="AND"><![CDATA[ SORT_ORDR > #sortOrdr# ]]></isEqual> | |
| 158 | - START WITH UPPER_CTGRY_ID = #upperCtgryId# | |
| 159 | - CONNECT BY PRIOR CTGRY_ID = UPPER_CTGRY_ID | |
| 160 | - ) X | |
| 161 | - WHERE A IS NOT NULL | |
| 162 | - </select> | |
| 163 | - | |
| 164 | - <update id="comtnbbsctgryDAO.updateSortOrdr" parameterClass="comtnbbsctgrySerarchVO"> | |
| 165 | - UPDATE comtnbbsctgry SET | |
| 166 | - <isEqual property="sortTyCode" compareValue="U">SORT_ORDR = SORT_ORDR - 1</isEqual> | |
| 167 | - <isEqual property="sortTyCode" compareValue="D">SORT_ORDR = SORT_ORDR + 1</isEqual> | |
| 168 | - WHERE CTGRY_ID = #ctgryId# | |
| 169 | - </update> | |
| 170 | - | |
| 171 | - <update id="comtnbbsctgryDAO.updateSiblingsSortOrdr" parameterClass="comtnbbsctgrySerarchVO"> | |
| 172 | - UPDATE comtnbbsctgry SET | |
| 173 | - <isEqual property="sortTyCode" compareValue="U">SORT_ORDR = SORT_ORDR + 1</isEqual> | |
| 174 | - <isEqual property="sortTyCode" compareValue="D">SORT_ORDR = SORT_ORDR - 1</isEqual> | |
| 175 | - WHERE UPPER_CTGRY_ID = #upperCtgryId# | |
| 176 | - AND CTGRY_ID != #ctgryId# | |
| 177 | - <isEqual property="sortTyCode" compareValue="U"> AND SORT_ORDR = #sortOrdr# - 1</isEqual> | |
| 178 | - <isEqual property="sortTyCode" compareValue="D"> AND SORT_ORDR = #sortOrdr# + 1</isEqual> | |
| 179 | - </update> | |
| 180 | - | |
| 181 | - <select id="comtnbbsctgryDAO.selectComtnbbsctgryList" parameterClass="String" resultMap="comtnbbsctgry"> | |
| 182 | - SELECT | |
| 183 | - CTGRY_ID | |
| 184 | - , CTGRYMASTER_ID | |
| 185 | - , UPPER_CTGRY_ID | |
| 186 | - , CTGRY_NM | |
| 187 | - , SORT_ORDR | |
| 188 | - , USE_AT | |
| 189 | - , SYS_CONNECT_BY_PATH(CTGRY_NM, '>') AS CTGRY_PATH_BY_NAME | |
| 190 | - , SYS_CONNECT_BY_PATH(CTGRY_ID, '>') AS CTGRY_PATH_BY_ID | |
| 191 | - , LEVEL - 1 AS CTGRY_LEVEL | |
| 192 | - , CTGRY_CN | |
| 193 | - , CTGRY_VAL | |
| 194 | - FROM comtnbbsctgry | |
| 195 | - WHERE CTGRYMASTER_ID = #ctgrymasterId# | |
| 196 | - AND USE_AT = 'Y' | |
| 197 | - START WITH UPPER_CTGRY_ID IS NULL | |
| 198 | - CONNECT BY PRIOR CTGRY_ID = UPPER_CTGRY_ID | |
| 199 | - ORDER SIBLINGS BY SORT_ORDR ASC | |
| 200 | - | |
| 201 | - </select> | |
| 202 | - | |
| 203 | - <select id="comtnbbsctgryDAO.selectComtnbbsctgryNextLevel" parameterClass="comtnbbsctgrySerarchVO" resultClass="int"> | |
| 204 | - SELECT CAST(IFNULL(NULLIF(CTGRY_LEVEL,''), 0) AS UNSIGNED) + 1 | |
| 205 | - FROM comtnbbsctgry | |
| 206 | - WHERE CTGRY_ID = #upperCtgryId# | |
| 207 | - </select> | |
| 208 | -</sqlMap> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/ctg/EgovBBSCtgryMasterList02.jsp
... | ... | @@ -1,364 +0,0 @@ |
| 1 | -<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| 2 | -<%@ page import="egovframework.com.cmm.service.EgovProperties"%> | |
| 3 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 4 | -<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 5 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> | |
| 6 | -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 7 | -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> | |
| 8 | - | |
| 9 | -<c:import url="/msi/tmplatHead.do" charEncoding="utf-8"> | |
| 10 | - <c:param name="isMainSite">Y</c:param> | |
| 11 | - <c:param name="contentLineAt">Y</c:param> | |
| 12 | - <c:param name="siteId" value="SITE_000000000000001"/> | |
| 13 | -</c:import> | |
| 14 | - | |
| 15 | - <div class="btn-group-wrap mb-20"> | |
| 16 | - <div class="left-area"> | |
| 17 | - <button type="button" class="btn-outline btn-md">엑셀 다운로드</button> | |
| 18 | - </div> | |
| 19 | - </div> | |
| 20 | - <div class="table-scroll-wrap"> | |
| 21 | - <div class="tbl-main"> | |
| 22 | - <!-- 테이블영역--> | |
| 23 | - <table class="common-table-wrap "> | |
| 24 | - <colgroup> | |
| 25 | - <col width="110px;"/> | |
| 26 | - <col width="200px;"/> | |
| 27 | - <col width="120px"/> | |
| 28 | - <col width="130px"/> | |
| 29 | - <col width="180px"/> | |
| 30 | - <col width="140px"/> | |
| 31 | - <col width="50px"/> | |
| 32 | - <col width="190px"/> | |
| 33 | - <col width="50px"/> | |
| 34 | - <col width="90px"/> | |
| 35 | - <col width="60px"/> | |
| 36 | - <col width="*"/> | |
| 37 | - <col width="50px"/> | |
| 38 | - <col width="50px"/> | |
| 39 | - <col width="50px"/> | |
| 40 | - <col width="90px"/> | |
| 41 | - <col width="90px"/> | |
| 42 | - <col width="100px"/> | |
| 43 | - <col width="60px"/> | |
| 44 | - <col width="50px"/> | |
| 45 | - <col width="90px"/> | |
| 46 | - <col width="110px"/> | |
| 47 | - <col width="80px"/> | |
| 48 | - <col width="110px"/> | |
| 49 | - <col width="180px"/> | |
| 50 | - <col width="120px"/> | |
| 51 | - </colgroup> | |
| 52 | - <thead> | |
| 53 | - <tr class='bg-light-gray font-700'> | |
| 54 | - <th rowspan="3" class="incarnadine">이수구분</th> | |
| 55 | - <th rowspan="3" class="incarnadine">관리구분</th> | |
| 56 | - <th rowspan="3" class="incarnadine">강의유형</th> | |
| 57 | - <th rowspan="3" class="incarnadine">비강의유형</th> | |
| 58 | - <th rowspan="3" class="incarnadine">평가</th> | |
| 59 | - <th rowspan="2" colspan="2" class="purple">언어코드</th> | |
| 60 | - <th rowspan="2" colspan="2" class="purple">주관기관</th> | |
| 61 | - <th rowspan="2" colspan="3" class="whiteblue">수료기준</th> | |
| 62 | - <th colspan="3" class="green">성적기준</th> | |
| 63 | - <th rowspan="2" colspan="2" class="pink">총괄평가기준</th> | |
| 64 | - <th rowspan="3" class="gray">수업영역</th> | |
| 65 | - <th rowspan="2" colspan="2" class="blue">레벨</th> | |
| 66 | - <th rowspan="2" colspan="2" class="purple2">대상</th> | |
| 67 | - <th rowspan="3" class="gray">학기</th> | |
| 68 | - <th rowspan="3" class="blue2">교육장소</th> | |
| 69 | - <th rowspan="2" colspan="2" class="purple2">사업비</th> | |
| 70 | - </tr> | |
| 71 | - <tr class='bg-light-gray font-700'> | |
| 72 | - <th colspan="2" class="green">Letter Grade</th> | |
| 73 | - <th rowspan="2" class="green">P/F</th> | |
| 74 | - </tr> | |
| 75 | - <tr class='bg-light-gray font-700'> | |
| 76 | - <th class="purple">구분</th> | |
| 77 | - <th class="purple">코드</th> | |
| 78 | - <th class="purple">구분</th> | |
| 79 | - <th class="purple">코드</th> | |
| 80 | - <th class="whiteblue">구분</th> | |
| 81 | - <th class="whiteblue">기준</th> | |
| 82 | - <th class="whiteblue">설명</th> | |
| 83 | - <th class="green">등급</th> | |
| 84 | - <th class="green">평점</th> | |
| 85 | - <th class="pink">1depth</th> | |
| 86 | - <th class="pink">2depth</th> | |
| 87 | - <th class="blue">1depth</th> | |
| 88 | - <th class="blue">2depth</th> | |
| 89 | - <th class="purple2">본교생여부<br/>(Y/N)</th> | |
| 90 | - <th class="purple2"></th> | |
| 91 | - <th class="purple2">1depth</th> | |
| 92 | - <th class="purple2">2depth</th> | |
| 93 | - </tr> | |
| 94 | - </thead> | |
| 95 | - <tbody> | |
| 96 | - <%-- Letter Grade 등급 --%> | |
| 97 | - <c:set var="lgTypeListSplit"> | |
| 98 | - <c:forEach var="result" items="${resultList.CTGMST_0000000000011}">
| |
| 99 | - <c:if test="${result.upperCtgryId eq 'CTG_0000000000000090'}">
| |
| 100 | - ,${result.ctgryNm}
| |
| 101 | - </c:if> | |
| 102 | - </c:forEach> | |
| 103 | - </c:set> | |
| 104 | - <c:set var="lgTypeList" value="${fn:split(lgTypeListSplit,',')}"/>
| |
| 105 | - | |
| 106 | - <%-- Letter Grade 평점 --%> | |
| 107 | - <c:set var="lgValListSplit"> | |
| 108 | - <c:forEach var="result" items="${resultList.CTGMST_0000000000011}">
| |
| 109 | - <c:if test="${result.upperCtgryId eq 'CTG_0000000000000090'}">
| |
| 110 | - ,${result.ctgryVal}
| |
| 111 | - </c:if> | |
| 112 | - </c:forEach> | |
| 113 | - </c:set> | |
| 114 | - <c:set var="lgValList" value="${fn:split(lgValListSplit,',')}"/>
| |
| 115 | - | |
| 116 | - <%-- P/F --%> | |
| 117 | - <c:set var="pfListSplit"> | |
| 118 | - <c:forEach var="result" items="${resultList.CTGMST_0000000000011}">
| |
| 119 | - <c:if test="${result.upperCtgryId eq 'CTG_0000000000000091'}">
| |
| 120 | - ,${result.ctgryNm}
| |
| 121 | - </c:if> | |
| 122 | - </c:forEach> | |
| 123 | - </c:set> | |
| 124 | - <c:set var="pfList" value="${fn:split(pfListSplit,',')}"/>
| |
| 125 | - | |
| 126 | - <%-- 총괄평가기준 Depth1 --%> | |
| 127 | - <c:set var="totalD1ListSplit"> | |
| 128 | - <c:forEach var="result" items="${resultList.CTGMST_0000000000012}">
| |
| 129 | - <c:if test="${result.ctgryLevel eq '1'}">
| |
| 130 | - ,${result.ctgryNm}
| |
| 131 | - </c:if> | |
| 132 | - </c:forEach> | |
| 133 | - </c:set> | |
| 134 | - <c:set var="totalD1List" value="${fn:split(totalD1ListSplit,',')}"/>
| |
| 135 | - | |
| 136 | - <%-- 총괄평가기준 Depth2 --%> | |
| 137 | - <c:set var="totalD2ListSplit"> | |
| 138 | - <c:forEach var="result" items="${resultList.CTGMST_0000000000012}">
| |
| 139 | - <c:if test="${result.ctgryLevel eq '2'}">
| |
| 140 | - ,${result.ctgryNm}
| |
| 141 | - </c:if> | |
| 142 | - </c:forEach> | |
| 143 | - </c:set> | |
| 144 | - <c:set var="total2DList" value="${fn:split(totalD2ListSplit,',')}"/>
| |
| 145 | - | |
| 146 | - <%-- 레벨 Depth1 --%> | |
| 147 | - <c:set var="lvlD1ListSplit"> | |
| 148 | - <c:forEach var="result" items="${resultList.CTGMST_0000000000014}">
| |
| 149 | - <c:if test="${result.ctgryLevel eq '1'}">
| |
| 150 | - ,${result.ctgryNm}
| |
| 151 | - </c:if> | |
| 152 | - </c:forEach> | |
| 153 | - </c:set> | |
| 154 | - <c:set var="lvlD1List" value="${fn:split(lvlD1ListSplit,',')}"/>
| |
| 155 | - | |
| 156 | - <%-- 레벨 Depth2 --%> | |
| 157 | - <c:set var="lvlD2ListSplit"> | |
| 158 | - <c:forEach var="result" items="${resultList.CTGMST_0000000000014}">
| |
| 159 | - <c:if test="${result.ctgryLevel eq '2'}">
| |
| 160 | - ,${result.ctgryNm}
| |
| 161 | - </c:if> | |
| 162 | - </c:forEach> | |
| 163 | - </c:set> | |
| 164 | - <c:set var="lvlD2List" value="${fn:split(lvlD2ListSplit,',')}"/>
| |
| 165 | - | |
| 166 | - <%-- 사업비 Depth1 --%> | |
| 167 | - <c:set var="feeD1ListSplit"> | |
| 168 | - <c:forEach var="result" items="${resultList.CTGMST_0000000000018}">
| |
| 169 | - <c:if test="${result.ctgryLevel eq '1'}">
| |
| 170 | - ,${result.ctgryNm}
| |
| 171 | - </c:if> | |
| 172 | - </c:forEach> | |
| 173 | - </c:set> | |
| 174 | - <c:set var="feeD1List" value="${fn:split(feeD1ListSplit,',')}"/>
| |
| 175 | - | |
| 176 | - <%-- 사업비 Depth2 --%> | |
| 177 | - <c:set var="feeD2ListSplit"> | |
| 178 | - <c:forEach var="result" items="${resultList.CTGMST_0000000000018}">
| |
| 179 | - <c:if test="${result.ctgryLevel eq '2'}">
| |
| 180 | - ,${result.ctgryNm}
| |
| 181 | - </c:if> | |
| 182 | - </c:forEach> | |
| 183 | - </c:set> | |
| 184 | - <c:set var="feeD2List" value="${fn:split(feeD2ListSplit,',')}"/>
| |
| 185 | - | |
| 186 | - <c:forEach var="i" begin="1" end="${listSize - 2}" step="1" varStatus="status">
| |
| 187 | - <tr> | |
| 188 | - <td> | |
| 189 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000003" data-name="이수구분"> | |
| 190 | - <c:out value="${resultList.CTGMST_0000000000003[i].ctgryNm}"/>
| |
| 191 | - </a> | |
| 192 | - </td> | |
| 193 | - <td> | |
| 194 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000005" data-name="관리구분"> | |
| 195 | - <c:out value="${resultList.CTGMST_0000000000005[i].ctgryNm}"/>
| |
| 196 | - </a> | |
| 197 | - </td> | |
| 198 | - <td> | |
| 199 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000006" data-name="강의유형"> | |
| 200 | - <c:out value="${resultList.CTGMST_0000000000006[i].ctgryNm}"/>
| |
| 201 | - </a> | |
| 202 | - </td> | |
| 203 | - <td> | |
| 204 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000007" data-name="비강의유형"> | |
| 205 | - <c:out value="${resultList.CTGMST_0000000000007[i].ctgryNm}"/>
| |
| 206 | - </a> | |
| 207 | - </td> | |
| 208 | - <td> | |
| 209 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000008" data-name="평가"> | |
| 210 | - <c:out value="${resultList.CTGMST_0000000000008[i].ctgryNm}"/>
| |
| 211 | - </a> | |
| 212 | - </td> | |
| 213 | - | |
| 214 | - <td> | |
| 215 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000002" data-name="언어코드"> | |
| 216 | - <c:out value="${resultList.CTGMST_0000000000002[i].ctgryNm}"/>
| |
| 217 | - </a> | |
| 218 | - </td> | |
| 219 | - <td> | |
| 220 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000002" data-name="언어코드"> | |
| 221 | - <c:out value="${resultList.CTGMST_0000000000002[i].ctgryId}"/>
| |
| 222 | - </a> | |
| 223 | - </td> | |
| 224 | - <td> | |
| 225 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000009" data-name="주관기관"> | |
| 226 | - <c:out value="${resultList.CTGMST_0000000000009[i].ctgryNm}"/>
| |
| 227 | - </a> | |
| 228 | - </td> | |
| 229 | - <td> | |
| 230 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000009" data-name="주관기관"> | |
| 231 | - <c:out value="${resultList.CTGMST_0000000000009[i].ctgryId}"/>
| |
| 232 | - </a> | |
| 233 | - </td> | |
| 234 | - | |
| 235 | - <td> | |
| 236 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000010" data-name="수료기준"> | |
| 237 | - <c:out value="${resultList.CTGMST_0000000000010[i].ctgryNm}"/>
| |
| 238 | - </a> | |
| 239 | - </td> | |
| 240 | - <td> | |
| 241 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000010" data-name="수료기준"> | |
| 242 | - <c:out value="${resultList.CTGMST_0000000000010[i].ctgryVal}"/>
| |
| 243 | - </a> | |
| 244 | - </td> | |
| 245 | - <td class="tit"> | |
| 246 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000010" data-name="수료기준"> | |
| 247 | - <c:out value="${resultList.CTGMST_0000000000010[i].ctgryCn}"/>
| |
| 248 | - </a> | |
| 249 | - </td> | |
| 250 | - | |
| 251 | - <td> | |
| 252 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000011" data-name="성적기준"> | |
| 253 | - <c:out value="${lgTypeList[i-1]}"/>
| |
| 254 | - </a> | |
| 255 | - </td> | |
| 256 | - <td> | |
| 257 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000011" data-name="성적기준"> | |
| 258 | - <c:out value="${lgValList[i-1]}"/>
| |
| 259 | - </a> | |
| 260 | - </td> | |
| 261 | - <td> | |
| 262 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000011" data-name="성적기준"> | |
| 263 | - <c:out value="${pfList[i-1]}"/>
| |
| 264 | - </a> | |
| 265 | - </td> | |
| 266 | - | |
| 267 | - <c:if test="${i ne 2 and i ne 3}">
| |
| 268 | - <td <c:if test="${i eq 1}">rowspan="3"</c:if>>
| |
| 269 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000012" data-name="총괄평가기준"> | |
| 270 | - <c:choose> | |
| 271 | - <c:when test="${i > 1}"><c:out value="${totalD1List[i-3]}"/></c:when>
| |
| 272 | - <c:otherwise><c:out value="${totalD1List[i-1]}"/></c:otherwise>
| |
| 273 | - </c:choose> | |
| 274 | - </a> | |
| 275 | - </td> | |
| 276 | - </c:if> | |
| 277 | - <td> | |
| 278 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000012" data-name="총괄평가기준"> | |
| 279 | - <c:out value="${total2DList[i-1]}"/>
| |
| 280 | - </a> | |
| 281 | - </td> | |
| 282 | - | |
| 283 | - <td> | |
| 284 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000013" data-name="수업영역"> | |
| 285 | - <c:out value="${resultList.CTGMST_0000000000013[i].ctgryNm}"/>
| |
| 286 | - </a> | |
| 287 | - </td> | |
| 288 | - | |
| 289 | - <c:if test="${i ne 2 and i ne 3 and i ne 5 and i ne 7}">
| |
| 290 | - <td <c:if test="${i eq 1}">rowspan="3"</c:if> <c:if test="${i eq 4 or i eq 6}">rowspan="2"</c:if>>
| |
| 291 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000014" data-name="레벨"> | |
| 292 | - <c:choose> | |
| 293 | - <c:when test="${i eq 1}"><c:out value="${lvlD1List[i-1]}"/></c:when>
| |
| 294 | - <c:when test="${i eq 4}"><c:out value="${lvlD1List[i-3]}"/></c:when>
| |
| 295 | - <c:when test="${i eq 6}"><c:out value="${lvlD1List[i-4]}"/></c:when>
| |
| 296 | - </c:choose> | |
| 297 | - </a> | |
| 298 | - </td> | |
| 299 | - </c:if> | |
| 300 | - <td> | |
| 301 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000014" data-name="레벨"> | |
| 302 | - <c:out value="${lvlD2List[i-1]}"/>
| |
| 303 | - </a> | |
| 304 | - </td> | |
| 305 | - | |
| 306 | - | |
| 307 | - <c:if test="${i eq 1 or i eq 4 or i > 6}">
| |
| 308 | - <td <c:if test="${i eq 1 or i eq 4 }">rowspan="3"</c:if>>
| |
| 309 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000015" data-name="대상"> | |
| 310 | - <c:choose> | |
| 311 | - <c:when test="${i eq 1}">일반(N)</c:when>
| |
| 312 | - <c:when test="${i eq 4}">본교생(Y)</c:when>
| |
| 313 | - </c:choose> | |
| 314 | - </a> | |
| 315 | - </td> | |
| 316 | - </c:if> | |
| 317 | - <td> | |
| 318 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000015" data-name="대상"> | |
| 319 | - <c:choose> | |
| 320 | - <c:when test="${i < 4}"><c:out value="${resultList.CTGMST_0000000000015[i].ctgryNm}"/></c:when>
| |
| 321 | - <c:when test="${i > 3}"><c:out value="${resultList.CTGMST_0000000000015[i-3].ctgryNm}"/></c:when>
| |
| 322 | - </c:choose> | |
| 323 | - </a> | |
| 324 | - </td> | |
| 325 | - | |
| 326 | - <td> | |
| 327 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000016" data-name="학기"> | |
| 328 | - <c:out value="${resultList.CTGMST_0000000000016[i].ctgryNm}"/>
| |
| 329 | - </a> | |
| 330 | - </td> | |
| 331 | - | |
| 332 | - <td> | |
| 333 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000017" data-name="교육장소"> | |
| 334 | - <c:out value="${resultList.CTGMST_0000000000017[i].ctgryNm}"/>
| |
| 335 | - </a> | |
| 336 | - </td> | |
| 337 | - | |
| 338 | - <c:if test="${i eq 1 or i eq 8 or i > 14}">
| |
| 339 | - <td <c:if test="${i eq 1 or i eq 8}">rowspan="7"</c:if>>
| |
| 340 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000018" data-name="사업비"> | |
| 341 | - <c:choose> | |
| 342 | - <c:when test="${i eq 1}"><c:out value="${feeD1List[0]}"/></c:when>
| |
| 343 | - <c:when test="${i eq 8}"><c:out value="${feeD1List[1]}"/></c:when>
| |
| 344 | - <c:when test="${i eq 15}"><c:out value="${feeD1List[2]}"/></c:when>
| |
| 345 | - </c:choose> | |
| 346 | - </a> | |
| 347 | - </td> | |
| 348 | - </c:if> | |
| 349 | - <td> | |
| 350 | - <a href="#" class="btn_code" data-id="CTGMST_0000000000018" data-name="사업비"> | |
| 351 | - <c:out value="${feeD2List[i-1]}"/>
| |
| 352 | - </a> | |
| 353 | - </td> | |
| 354 | - | |
| 355 | - </tr> | |
| 356 | - </c:forEach> | |
| 357 | - </tbody> | |
| 358 | - </table> | |
| 359 | - </div> | |
| 360 | - </div> | |
| 361 | - </div> | |
| 362 | - | |
| 363 | - | |
| 364 | -<c:import url="/template/bottom.do" charEncoding="utf-8"/> (파일 끝에 줄바꿈 문자 없음) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?