diff --git a/src/main/java/kr/xit/framework/biz/mng/bbs/mapper/IBoardBasicMgtMapper.java b/src/main/java/kr/xit/framework/biz/mng/bbs/mapper/IBoardBasicMgtMapper.java index 943cbb0c..28f6013a 100644 --- a/src/main/java/kr/xit/framework/biz/mng/bbs/mapper/IBoardBasicMgtMapper.java +++ b/src/main/java/kr/xit/framework/biz/mng/bbs/mapper/IBoardBasicMgtMapper.java @@ -25,6 +25,8 @@ public interface IBoardBasicMgtMapper { XitBasicBbsMngVO selectBoardBasic(final T t); + XitBasicBbsMngVO selectBoardMaster(final T t); + int insertBoardBasic(final XitBasicBbsMngVO vo); int updateBoardBasic(final XitBasicBbsMngVO vo); diff --git a/src/main/java/kr/xit/framework/biz/mng/bbs/model/XitBasicBbsMngVO.java b/src/main/java/kr/xit/framework/biz/mng/bbs/model/XitBasicBbsMngVO.java index 52528d24..26bf0b1f 100644 --- a/src/main/java/kr/xit/framework/biz/mng/bbs/model/XitBasicBbsMngVO.java +++ b/src/main/java/kr/xit/framework/biz/mng/bbs/model/XitBasicBbsMngVO.java @@ -2,8 +2,10 @@ package kr.xit.framework.biz.mng.bbs.model; import java.util.List; +import com.fasterxml.jackson.annotation.JsonIgnore; import kr.xit.framework.core.model.BaseVO; import lombok.*; +import org.springframework.web.multipart.MultipartFile; /** * @@ -15,155 +17,179 @@ import lombok.*; * @since 2002. 2. 2. * @version 1.0 Copyright(c) XIT All rights reserved. */ -@Getter -@Setter +@Data @NoArgsConstructor @AllArgsConstructor @EqualsAndHashCode @Builder @ToString public class XitBasicBbsMngVO { - - /** - * serialVersionUID - */ private static final long serialVersionUID = 1L; /** - * 게시물 첨부파일 아이디 + * 게시물 ID */ - private String atchFileId; + private String nttId; /** - * 게시판 아이디 + * 게시판 ID */ private String bbsId; /** - * 최초등록자 아이디 + * 게시물 번호 */ - private String frstRegisterId; + private double nttNo; /** - * 최초등록자 아이디 명 + * 게시물 제목 */ - private String frstRegisterNm; + private String nttSj; /** - * 최초등록시점 + * 게시물 내용 */ - private String frstRegisterPnttm; + private String nttCn; /** - * 최종수정자 아이디 + * 댓글 여부 */ - private String lastUpdusrId; + private String answerAt; /** - * 최종수정시점 + * 부모 글 번호 */ - private String lastUpdusrPnttm; + private double parntsSntncNo; /** - * 게시시작일 + * 댓글 위치 */ - private String ntceBgnde; + private double answerLc; + /** + * 정렬 순서 + */ + private double sortOrdr; /** - * 게시종료일 + * 조회수 */ - private String ntceEndde; + private double rdcnt; /** - * 게시자 아이디 + * 사용 여부 + */ + private String useAt; + /** + * 게시 시작 일 + */ + private String ntceBeginDe; + /** + * 게시 종료 일 + */ + private String ntceEndDe; + /** + * 게시자 ID */ private String ntcrId; /** - * 게시자명 + * 게시자 명 */ private String ntcrNm; /** - * 게시물 내용 + * 비밀번호 */ - private String nttCn; + private String password; /** - * 게시물 아이디 + * 첨부 파일 ID */ - private long nttId = 0L; + private String atchFileId; /** - * 게시물 번호 + * 최초 등록 시점 */ - private long nttNo = 0L; + private String frstRegistPnttm; /** - * 게시물 제목 + * 최초 등록자 ID */ - private String nttSj; + private String frstRegisterId; /** - * 부모글번호 + * 최종 수정 시점 */ - private String parnts = "0"; + private String lastUpdtPnttm; /** - * 패스워드 + * 최종 수정자 ID */ - private String password; + private String lastUpdusrId; + /** - * 조회수 + * 업로드 파일 객체 */ - private int inqireCo = 0; + @JsonIgnore + private MultipartFile[] files; + + //BBS_MASTER + + /** 게시판 속성코드 */ + private String bbsAttrbCode; + + /** 게시판 명 */ + private String bbsNm; + + /** 게시판 유형코드 */ + private String bbsTyCode; + + /** 파일첨부가능여부 */ + private String fileAtchPosblAt; + + /** 첨부가능파일숫자 */ + private int atchPosblFileNumber = 0; + + /** 첨부가능파일숫자 */ + private int posblAtchFileNumber = 0; + + /** 답장가능여부 */ + private String replyPosblAt; + + //기타 + /** + * 게시시작일 + */ + private String ntceBgnde; + + /** 유효여부 */ + private String isExpired = "N"; + + /** 조회 수 증가 여부 */ + private boolean plusCount = false; + /** * 답장여부 */ private String replyAt; + /** * 답장위치 */ private String replyLc = "0"; + /** - * 정렬순서 + * 부모글번호 */ - private long sortOrdr = 0L; + private String parnts = "0"; + /** - * 사용여부 + * 조회수 */ - private String useAt; + private int inqireCo = 0; + + /** + * 최초등록자 아이디 명 + */ + private String frstRegisterNm; + /** - * 게시 종료일 - */ - private String ntceEnddeView; - /** - * 게시 시작일 - */ - private String ntceBgndeView; - - /** 유효여부 */ - private String isExpired = "N"; - - /** 상위 정렬 순서 */ - private String parntsSortOrdr; - - /** 상위 답변 위치 */ - private String parntsReplyLc; - - /** 게시판 유형코드 */ - private String bbsTyCode; - - /** 게시판 속성코드 */ - private String bbsAttrbCode; - - /** 게시판 명 */ - private String bbsNm; - - /** 파일첨부가능여부 */ - private String fileAtchPosblAt; - - /** 첨부가능파일숫자 */ - private int posblAtchFileNumber = 0; - - /** 답장가능여부 */ - private String replyPosblAt; - - /** 조회 수 증가 여부 */ - private boolean plusCount = false; - - //--------------------------------- - // 2009.06.29 : 2단계 기능 추가 - //--------------------------------- - /** 하위 페이지 인덱스 (댓글 및 만족도 조사 여부 확인용) */ - private String subPageIndex; - ////------------------------------- - //--------------------------------- - // 2020.09.15 : tui-grid tree구조 변수 - //--------------------------------- - List _children; + * 최초등록시점 + */ + private String frstRegisterPnttm; + + //--------------------------------- + // 2009.06.29 : 2단계 기능 추가 + //--------------------------------- + /** 하위 페이지 인덱스 (댓글 및 만족도 조사 여부 확인용) */ + private String subPageIndex; + ////------------------------------- + //--------------------------------- + // 2020.09.15 : tui-grid tree구조 변수 + //--------------------------------- + List _children; } diff --git a/src/main/java/kr/xit/framework/biz/mng/bbs/service/BoardBasicMgtService.java b/src/main/java/kr/xit/framework/biz/mng/bbs/service/BoardBasicMgtService.java index 9425cb18..83bfa856 100644 --- a/src/main/java/kr/xit/framework/biz/mng/bbs/service/BoardBasicMgtService.java +++ b/src/main/java/kr/xit/framework/biz/mng/bbs/service/BoardBasicMgtService.java @@ -34,9 +34,25 @@ public class BoardBasicMgtService implements IBoardBasicMgtService { return mapper.selectBoardBasic(t); } + @Override + @Transactional(readOnly = true) + public XitBasicBbsMngVO findBoardMaster(final T t) { + return mapper.selectBoardMaster(t); + } + @Override @Transactional public void addBoardBasic(final XitBasicBbsMngVO vo) { + //댓글여부 + boolean isReply = "Y".equals(vo.getReplyAt()); + + if(!isReply) { + //댓글이 아닌 경우 초기설정 + vo.setParntsSntncNo(0); //부모 게시물번호 + vo.setAnswerLc(0); //댓글위치 + vo.setAnswerAt("N"); //댓글여부 + + } vo.setFrstRegisterId(getUserUniqId()); mapper.insertBoardBasic(vo); } diff --git a/src/main/java/kr/xit/framework/biz/mng/bbs/service/IBoardBasicMgtService.java b/src/main/java/kr/xit/framework/biz/mng/bbs/service/IBoardBasicMgtService.java index baa5f1ba..6216a58a 100644 --- a/src/main/java/kr/xit/framework/biz/mng/bbs/service/IBoardBasicMgtService.java +++ b/src/main/java/kr/xit/framework/biz/mng/bbs/service/IBoardBasicMgtService.java @@ -21,6 +21,7 @@ public interface IBoardBasicMgtService { List findBoardBasicList(final Map paraMap, final RowBounds rowBounds); List findBoardBasicList(final T t); XitBasicBbsMngVO findBoardBasic(final T t); + XitBasicBbsMngVO findBoardMaster(final T t); void addBoardBasic(final XitBasicBbsMngVO vo); void modifyBoardBasic(final XitBasicBbsMngVO vo); diff --git a/src/main/java/kr/xit/framework/biz/mng/bbs/service/impl/XitBasicBbsMngServiceImpl.java b/src/main/java/kr/xit/framework/biz/mng/bbs/service/impl/XitBasicBbsMngServiceImpl.java index 0f96e8a3..0f00e39c 100644 --- a/src/main/java/kr/xit/framework/biz/mng/bbs/service/impl/XitBasicBbsMngServiceImpl.java +++ b/src/main/java/kr/xit/framework/biz/mng/bbs/service/impl/XitBasicBbsMngServiceImpl.java @@ -51,8 +51,8 @@ public class XitBasicBbsMngServiceImpl implements XitBasicBbsMngService { while (iter.hasNext()) { vo = (XitBasicBbsMngVO)iter.next(); - if (!"".equals(vo.getNtceBgnde()) || !"".equals(vo.getNtceEndde())) { - if (EgovDateUtil.getDaysDiff(today, vo.getNtceBgnde()) > 0 || EgovDateUtil.getDaysDiff(today, vo.getNtceEndde()) < 0) { + if (!"".equals(vo.getNtceBgnde()) || !"".equals(vo.getAtchPosblFileNumber())) { + if (EgovDateUtil.getDaysDiff(today, vo.getNtceBgnde()) > 0 || EgovDateUtil.getDaysDiff(today, String.valueOf(vo.getAtchPosblFileNumber())) < 0) { // 시작일이 오늘날짜보다 크거나, 종료일이 오늘 날짜보다 작은 경우 vo.setIsExpired("Y"); } @@ -213,8 +213,8 @@ public class XitBasicBbsMngServiceImpl implements XitBasicBbsMngService { crudVO.setSort_ordr(vo.getSortOrdr()+""); //정렬 순서 // crudVO.setRdcnt(vo.getInqireCo()+""); //조회수 crudVO.setUse_at(vo.getUseAt()); //사용 여부 - crudVO.setNtce_begin_de(vo.getNtceBgnde()); //게시 시작 일 - crudVO.setNtce_end_de(vo.getNtceEndde()); //게시 종료 일 + crudVO.setNtce_begin_de(vo.getNtceBgnde()); //게시 시작 일 + crudVO.setNtce_end_de(String.valueOf(vo.getAtchPosblFileNumber())); //게시 종료 일 crudVO.setNtcr_id(vo.getNtcrId()); //게시자 id crudVO.setNtcr_nm(vo.getNtcrNm()); //게시자 명 crudVO.setPassword(vo.getPassword()); //비밀번호 diff --git a/src/main/java/kr/xit/framework/biz/mng/bbs/web/BoardBasicMgtController.java b/src/main/java/kr/xit/framework/biz/mng/bbs/web/BoardBasicMgtController.java index 5a670b99..5a39eb90 100644 --- a/src/main/java/kr/xit/framework/biz/mng/bbs/web/BoardBasicMgtController.java +++ b/src/main/java/kr/xit/framework/biz/mng/bbs/web/BoardBasicMgtController.java @@ -38,16 +38,9 @@ public class BoardBasicMgtController { private final IBoardBasicMgtService service; @RequestMapping(value = "/mngBoardBasicMgtForm") - public void mngBoardBasicMgtForm(){ - - } - - @RequestMapping(value = "/mngBoardBasicSchPopup") - public ModelAndView mngBoardBasicSchPopup(@RequestParam final Map paraMap){ + public ModelAndView mngBoardBasicMgtForm(@RequestParam final Map paraMap){ ModelAndView mav = new ModelAndView(); - mav.addAllObjects(paraMap); - mav.addObject("pageTitle","템플릿 조회"); - mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/bbs/mngBoardBasicSchPopup.popup"); + mav.addObject("boardMaster", service.findBoardMaster(paraMap)); return mav; } @@ -55,12 +48,12 @@ public class BoardBasicMgtController { public ModelAndView mngBoardBasicMgtPopup(final XitBasicBbsMngVO vo) { ModelAndView mav = new ModelAndView(); - if(Checks.isNotEmpty(vo) && Checks.isNotEmpty(vo.getBbsId())){ - mav.addObject("boardMaster", service.findBoardBasic(vo)); + if(Checks.isNotEmpty(vo) && Checks.isNotEmpty(vo.getNttSj())){ + mav.addObject("boardBasic", service.findBoardBasic(vo)); } else { - mav.addObject("boardMaster", vo); + mav.addObject("boardBasic", vo); } - mav.addObject("pageTitle", "게시판 템플릿 등록 / 변경"); + mav.addObject("pageTitle", "게시판 등록 / 변경"); mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/bbs/mngBoardBasicMgtPopup.popup"); return mav; } @@ -70,11 +63,11 @@ public class BoardBasicMgtController { return ResultResponse.of(service.findBoardBasicList(paraMap, MybatisUtils.getPagingInfo(paraMap))); } - @PostMapping(value = "/addBoardBasic") + @PostMapping(value = "/addBoardBasic")//, consumes = "multipart/form-data" public ModelAndView addBoardBasic(final XitBasicBbsMngVO vo, final BindingResult bindingResult){ ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW); - ValidationError.of("boardMaster", vo, bindingResult); + ValidationError.of("boardBasic", vo, bindingResult); service.addBoardBasic(vo); AjaxMessageMapRenderer.success(mav, MessageKey.CMM_INSERT_SUCCESS); return mav; @@ -84,7 +77,7 @@ public class BoardBasicMgtController { public ModelAndView modifyBoardBasic(final XitBasicBbsMngVO vo, final BindingResult bindingResult){ ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW); - ValidationError.of("boardMaster", vo, bindingResult); + ValidationError.of("boardBasic", vo, bindingResult); service.modifyBoardBasic(vo); AjaxMessageMapRenderer.success(mav, MessageKey.CMM_UPDATE_SUCCESS); return mav; diff --git a/src/main/resources/sqlmapper/framework/cache/cacheboard-mysql-mapper.xml b/src/main/resources/sqlmapper/framework/cache/cacheboard-mysql-mapper.xml index 35d5cef4..d56c6a96 100644 --- a/src/main/resources/sqlmapper/framework/cache/cacheboard-mysql-mapper.xml +++ b/src/main/resources/sqlmapper/framework/cache/cacheboard-mysql-mapper.xml @@ -14,7 +14,7 @@ - + diff --git a/src/main/resources/sqlmapper/framework/mng/bbs/XitBasicBbsMng-mysql-mapper.xml b/src/main/resources/sqlmapper/framework/mng/bbs/XitBasicBbsMng-mysql-mapper.xml index c845f651..3cf0c881 100644 --- a/src/main/resources/sqlmapper/framework/mng/bbs/XitBasicBbsMng-mysql-mapper.xml +++ b/src/main/resources/sqlmapper/framework/mng/bbs/XitBasicBbsMng-mysql-mapper.xml @@ -22,7 +22,7 @@ ,IFNULL (B.USER_NM, A.NTCR_NM) AS "frstRegisterNm" ,DATE_FORMAT(A.FRST_REGIST_PNTTM, '%Y-%m-%d') AS "frstRegisterPnttm" ,A.NTCE_BEGIN_DE AS "ntceBgnde" - ,A.NTCE_END_DE AS "ntceEndde" + ,A.NTCE_END_DE AS "nposblAtchFileNumber" ,A.RDCNT AS "inqireCo" ,A.USE_AT AS "useAt" ,A.ATCH_FILE_ID AS "atchFileId" @@ -73,7 +73,7 @@ - + diff --git a/src/main/resources/sqlmapper/framework/mng/bbs/board-basic-mysql-mapper.xml b/src/main/resources/sqlmapper/framework/mng/bbs/board-basic-mysql-mapper.xml index bd6c0269..b726532a 100644 --- a/src/main/resources/sqlmapper/framework/mng/bbs/board-basic-mysql-mapper.xml +++ b/src/main/resources/sqlmapper/framework/mng/bbs/board-basic-mysql-mapper.xml @@ -6,113 +6,169 @@ - - SELECT xb.NTT_SJ AS "nttSj" - ,xb.NTCR_ID AS "ntcrId" - ,xb.NTCR_NM AS "ntcrNm" - ,xb.NTT_NO AS "nttNo" - ,xb.NTT_CN AS "nttCn" - ,xb.PASSWORD AS "password" - ,xb.FRST_REGISTER_ID AS "frstRegisterId" - ,IFNULL (B.USER_NM, xb.NTCR_NM) AS "frstRegisterNm" - ,DATE_FORMAT(xb.FRST_REGIST_PNTTM, '%Y-%m-%d') AS "frstRegisterPnttm" - ,xb.NTCE_BEGIN_DE AS "ntceBgnde" - ,xb.NTCE_END_DE AS "ntceEndde" - ,xb.RDCNT AS "inqireCo" - ,xb.USE_AT AS "useAt" - ,xb.ATCH_FILE_ID AS "atchFileId" - ,xb.BBS_ID AS "bbsId" - ,xb.NTT_ID AS "nttId" - ,xb.PARNTS_SNTNC_NO AS "parnts" - ,xb.ANSWER_AT AS "replyAt" - ,xb.ANSWER_LC AS "replyLc" - ,xb.SORT_ORDR AS "sortOrdr" - ,C.BBS_TY_CODE AS "bbsTyCode" - ,C.BBS_ATTRB_CODE AS "bbsAttrbCode" - ,C.REPLY_POSBL_AT AS "replyPosblAt" - ,C.FILE_ATCH_POSBL_AT AS "fileAtchPosblAt" - ,C.ATCH_POSBL_FILE_NUMBER AS "posblAtchFileNumber" - ,C.BBS_NM AS "bbsNm" - FROM XIT_BBS xb - LEFT OUTER JOIN XIT_VW_USER_MASTR xvum ON xb.FRST_REGISTER_ID = B.ESNTL_ID - LEFT OUTER JOIN XIT_BBS_MASTR C ON xb.BBS_ID = C.BBS_ID + + , xbm.bbs_ty_code + , xbm.bbs_attrb_code + , xbm.reply_posbl_at + , xbm.file_atch_posbl_at + , xbm.atch_posbl_file_number + , xbm.bbs_nm + + + + SELECT xb.ntt_sj + , xb.ntcr_id + , xb.ntcr_nm + , xb.ntt_no + , xb.ntt_cn + , xb.password + , xb.frst_register_id + , IFNULL (xvum.user_nm, xb.ntcr_nm) AS "frstRegisterNm" + , xb.frst_regist_pnttm + , xb.ntce_begin_de + , xb.ntce_end_de + , xb.rdcnt AS "inqireco" + , xb.use_at + , xb.atch_file_id + , xb.bbs_id + , xb.ntt_id + , xb.parnts_sntnc_no AS "parnts" + , xb.answer_at AS "replyat" + , xb.answer_lc AS "replylc" + , xb.sort_ordr + + FROM xit_bbs xb + LEFT OUTER JOIN xit_vw_user_mastr xvum + ON xb.frst_register_id = xvum.esntl_id + LEFT OUTER JOIN xit_bbs_mastr xbm + ON xb.bbs_id = xbm.bbs_id + + + + + + + + + + + - /* board-mastr-mysql-mapper|insertBoardBasic-BBS 마스터(생성) 정보 등록|julim */ + /* board-mastr-mysql-mapper|insertBoardBasic-BBS 기본(생성) 정보 등록|sjh88 */ + + SELECT + (/** 게시물ID 채번 */ + SELECT CAST(IFNULL(MAX(CAST(ntt_id AS DECIMAL)),0)+1 AS CHAR) + FROM xit_bbs + WHERE bbs_id = #{bbsId} + ) AS "nttId", + (/** 게시물번호 채번 */ + SELECT CAST(IFNULL(MAX(ntt_no),0)+1 AS DOUBLE) + FROM xit_bbs + WHERE bbs_id = #{bbsId} + AND parnts_sntnc_no = #{parntsSntncNo} + ) AS "nttNo" + FROM DUAL + INSERT - INTO xit_bbs_mastr ( - bbs_id - , bbs_nm - , bbs_intrcn - , bbs_ty_code - , bbs_attrb_code - , atch_posbl_file_number - , atch_posbl_file_size - , tmplat_id - , use_at - , frst_regist_pnttm - , frst_register_id + INTO xit_bbs ( + ntt_id + , bbs_id + , ntt_no + , ntt_sj + , ntt_cn + , answer_at + , parnts_sntnc_no + , answer_lc + , sort_ordr + , rdcnt + , ntce_begin_de + , ntce_end_de + , ntcr_id + , ntcr_nm + , password + , atch_file_id + , frst_regist_pnttm + , frst_register_id ) VALUES ( - #{bbsId} - , #{bbsNm} - , #{bbsIntrcn} - , #{bbsTyCode} - , #{bbsAttrbCode} - , #{atchPosblFileNumber} - , #{atchPosblFileSize} - , #{tmplatId} - , #{useAt} - , NOW() - , #{frstRegisterId} + #{nttId} + , #{bbsId} + , #{nttNo} + , #{nttSj} + , #{nttCn} + , #{answerAt} + , #{parntsSntncNo} + , #{answerLc} + , #{sortOrdr} + , 0 + , #{ntceBeginDe} + , #{ntceEndDe} + , #{ntcrId} + , #{ntcrNm} + , #{password} + , #{atchFileId} + , NOW() + , #{frstRegisterId} ) - /* board-mastr-mysql-mapper|updateBoardBasic-BBS 마스터(생성) 정보 변경|julim */ - UPDATE xit_bbs_mastr - SET bbs_nm = IF(bbs_nm = #{bbsNm}, bbs_nm, #{bbsNm}) - , bbs_intrcn = IF(bbs_intrcn = #{bbsIntrcn}, bbs_intrcn, #{bbsIntrcn}) - , bbs_ty_code = IF(bbs_ty_code = #{bbsTyCode}, bbs_ty_code, #{bbsTyCode}) - , bbs_attrb_code = IF(bbs_attrb_code = #{bbsAttrbCode}, bbs_attrb_code, #{bbsAttrbCode}) - , atch_posbl_file_number = IF(atch_posbl_file_number = #{atchPosblFileNumber}, atch_posbl_file_number, #{atchPosblFileNumber}) - , atch_posbl_file_size = IF(atch_posbl_file_size = #{atchPosblFileSize}, atch_posbl_file_size, #{atchPosblFileSize}) - , tmplat_id = IF(tmplat_id = #{tmplatId}, tmplat_id, #{tmplatId}) - , use_at = IF(use_at = #{useAt}, use_at, #{useAt}) - , last_updt_pnttm = NOW() - , last_updusr_id = #{lastUpdusrId} - WHERE bbs_id = #{bbsId} + /* board-mastr-mysql-mapper|updateBoardBasic-BBS 기본(생성) 정보 변경|sjh88 */ + UPDATE xit_bbs + SET ntt_sj = IF(ntt_sj = #{nttSj}, ntt_sj, #{nttSj}) + , ntt_cn = IF(ntt_cn = #{nttCn}, ntt_cn, #{nttCn}) + , sort_ordr = IF(sort_ordr = #{sortOrdr}, sort_ordr, #{sortOrdr}) + , ntce_begin_de = IF(ntce_begin_de = #{ntceBeginDe}, ntce_begin_de, #{ntceBeginDe}) + , ntce_end_de = IF(ntce_end_de = #{ntceEndDe}, ntce_end_de, #{ntceEndDe}) + , ntcr_id = IF(ntcr_id = #{ntcrId}, ntcr_id, #{ntcrId}) + , ntcr_nm = IF(ntcr_nm = #{ntcrNm}, ntcr_nm, #{ntcrNm}) + , password = IF(password = #{password}, password, #{password}) + , atch_file_id = IF(atch_file_id = #{atchFileId}, atch_file_id, #{atchFileId}) + , last_updt_pnttm = NOW() + , last_updusr_id = #{lastUpdusrId} + WHERE bbs_id = #{bbsId} + AND ntt_id = #{nttId} - - /* board-mastr-mysql-mapper|deleteBoardBasic-BBS 마스터(생성) 정보 삭제|julim */ - DELETE - FROM xit_bbs_mastr - WHERE bbs_id = #{bbsId} - - diff --git a/src/main/resources/validator/framework/mng/bbs/XitBbsBasicMng.xml b/src/main/resources/validator/framework/mng/bbs/XitBbsBasicMng.xml new file mode 100644 index 00000000..e6bb351a --- /dev/null +++ b/src/main/resources/validator/framework/mng/bbs/XitBbsBasicMng.xml @@ -0,0 +1,30 @@ + + + + + + +
+ + + + + maxlength + 1200 + + + + + + + + + + + +
+
+ +
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/framework/biz/mng/bbs/mngBoardBasicMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/framework/biz/mng/bbs/mngBoardBasicMgtForm.jsp new file mode 100644 index 00000000..33698c54 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/framework/biz/mng/bbs/mngBoardBasicMgtForm.jsp @@ -0,0 +1,226 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ include file="/WEB-INF/jsp/framework/taglibs.jsp" %> +
+ +
+ + +
+ +
전체 ㅣ
+
+ + 등록 + +
+ + + +
+ + + diff --git a/src/main/webapp/WEB-INF/jsp/framework/biz/mng/bbs/mngBoardBasicMgtPopup.jsp b/src/main/webapp/WEB-INF/jsp/framework/biz/mng/bbs/mngBoardBasicMgtPopup.jsp new file mode 100644 index 00000000..04b4962c --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/framework/biz/mng/bbs/mngBoardBasicMgtPopup.jsp @@ -0,0 +1,268 @@ +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ include file="/WEB-INF/jsp/framework/taglibs.jsp" %> +<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> + + + + + + + + + + + diff --git a/src/main/webapp/resources/framework/js/cmm/frwkApiURL.js b/src/main/webapp/resources/framework/js/cmm/frwkApiURL.js index ab9e316f..d6798faa 100644 --- a/src/main/webapp/resources/framework/js/cmm/frwkApiURL.js +++ b/src/main/webapp/resources/framework/js/cmm/frwkApiURL.js @@ -14,4 +14,10 @@ const frwkApiUrl = { /** * framework 업무 API URL */ + //게시판 - 기본 화면 관리(게시판 기본 양식) + ,FIND_BOARD_BASICS: '/framework/biz/mng/bbs/findBoardBasics.do' + ,POPUP_BOARD_BASIC: '/framework/biz/mng/bbs/mngBoardBasicMgtPopup.do' + ,SAVE_BOARD_BASIC: '/framework/biz/mng/bbs/addBoardBasic.do' + ,MODIFY_BOARD_BASIC: '/framework/biz/mng/bbs/modifyBoardBasic.do' + ,REMOVE_BOARD_BASIC: '/framework/biz/mng/bbs/removeBoardBasic.do' }