[사이트관리 > 게시판생성관리] 롬복 생성자 기반 종속성 주입 (#58)

* [사이트관리 > 게시판생성관리] 롬복 생성자 기반 종속성 주입

* EgovComAbstractDAO 를 EgovAbstractMapper 로 수정 후 EgovComAbstractDAO 제거
main
이백행 1 year ago committed by GitHub
parent 6baff2d418
commit 1a35999173
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2,6 +2,7 @@ package egovframework.com.cmm.service.impl;
import java.util.List;
import org.egovframe.rte.psl.dataaccess.EgovAbstractMapper;
import org.springframework.stereotype.Repository;
import egovframework.com.cmm.ComDefaultCodeVO;
@ -15,8 +16,9 @@ import egovframework.com.cmm.service.CmmnDetailCode;
* <pre>
*
* ------- ------- -------------------
* 2009. 3. 11.
* 2009.03.11
* 2024.08.12 (Problems)
* 2024.08.28
* </pre>
*
* @author
@ -25,8 +27,8 @@ import egovframework.com.cmm.service.CmmnDetailCode;
* @see
*
*/
@Repository("cmmUseDAO")
public class CmmUseDAO extends EgovComAbstractDAO {
@Repository
public class CmmUseDAO extends EgovAbstractMapper {
/**
* .

@ -5,36 +5,37 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
import org.springframework.stereotype.Service;
import egovframework.com.cmm.ComDefaultCodeVO;
import egovframework.com.cmm.service.CmmnDetailCode;
import egovframework.com.cmm.service.EgovCmmUseService;
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;
/**
* @Class Name : EgovCmmUseServiceImpl.java
* @Description :
* @Modification Information
*
*
* <pre>
*
* ------- ------- -------------------
* 2009. 3. 11.
*
* 2009.03.11
* 2024.08.28
* </pre>
*
* @author
* @since 2009. 3. 11.
* @version
* @see
*
*/
@Service("EgovCmmUseService")
@Service
@RequiredArgsConstructor
public class EgovCmmUseServiceImpl extends EgovAbstractServiceImpl implements EgovCmmUseService {
@Resource(name = "cmmUseDAO")
private CmmUseDAO cmmUseDAO;
private final CmmUseDAO cmmUseDAO;
/**
* .

@ -1,33 +0,0 @@
package egovframework.com.cmm.service.impl;
import javax.annotation.Resource;
import org.apache.ibatis.session.SqlSessionFactory;
import org.egovframe.rte.psl.dataaccess.EgovAbstractMapper;
/**
* EgovComAbstractDAO.java
*
* @author
* @since 2011. 9. 23.
* @version 1.0
* @see
*
* <pre>
* << (Modification Information) >>
*
*
* ------- ------------- ----------------------
* 2011. 9. 23.
* </pre>
*/
public abstract class EgovComAbstractDAO extends EgovAbstractMapper {
@Override
@Resource(name = "egov.sqlSession")
public void setSqlSessionFactory(SqlSessionFactory sqlSession) {
super.setSqlSessionFactory(sqlSession);
}
}

@ -3,6 +3,7 @@ package egovframework.com.cmm.service.impl;
import java.util.Iterator;
import java.util.List;
import org.egovframe.rte.psl.dataaccess.EgovAbstractMapper;
import org.springframework.stereotype.Repository;
import egovframework.com.cmm.service.FileVO;
@ -15,8 +16,9 @@ import egovframework.com.cmm.service.FileVO;
* <pre>
*
* ------- ------- -------------------
* 2009. 3. 25.
* 2024.08.12 (Problems)
* 2009.03.25
* 2024.08.12 (Problems)
* 2024.09.05 EgovComAbstractDAO EgovAbstractMapper EgovComAbstractDAO
* </pre>
*
* @author
@ -26,7 +28,7 @@ import egovframework.com.cmm.service.FileVO;
*
*/
@Repository("FileManageDAO")
public class FileManageDAO extends EgovComAbstractDAO {
public class FileManageDAO extends EgovAbstractMapper {
/**
* ( ) .

@ -21,13 +21,14 @@ import egovframework.let.cop.bbs.service.BoardMasterVO;
*
*
* ------- -------- ---------------------------
* 2009.03.12
* 2011.08.31 JJY 릿
* 2009.03.12
* 2011.08.31 JJY 릿
* 2024.08.12 (Problems)
* 2024.08.28
*
* </pre>
*/
@Repository("BBSAttributeManageDAO")
@Repository
public class BBSAttributeManageDAO extends EgovAbstractMapper {
/**

@ -1,11 +1,10 @@
package egovframework.let.cop.bbs.service.impl;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.egovframe.rte.fdl.property.EgovPropertyService;
@ -18,272 +17,283 @@ import egovframework.let.cop.com.service.BoardUseInf;
import egovframework.let.cop.com.service.EgovUserInfManageService;
import egovframework.let.cop.com.service.UserInfVO;
import egovframework.let.cop.com.service.impl.BBSUseInfoManageDAO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
/**
*
*
* @author
* @since 2009.03.24
* @version 1.0
* @see
*
* <pre>
* <pre>
* << (Modification Information) >>
*
*
* ------- -------- ---------------------------
* 2009.03.24
* 2009.06.26 2 (, )
* 2011.08.31 JJY 릿
* 2009.03.24
* 2009.06.26 2 (, )
* 2011.08.31 JJY 릿
* 2024.08.28
*
* </pre>
* </pre>
*/
@Slf4j
@Service("EgovBBSAttributeManageService")
public class EgovBBSAttributeManageServiceImpl extends EgovAbstractServiceImpl implements EgovBBSAttributeManageService {
@Service
@RequiredArgsConstructor
public class EgovBBSAttributeManageServiceImpl extends EgovAbstractServiceImpl
implements EgovBBSAttributeManageService {
@Resource(name = "BBSAttributeManageDAO")
private BBSAttributeManageDAO attrbMngDAO;
private final BBSAttributeManageDAO bbsAttributeManageDAO;
@Resource(name = "BBSUseInfoManageDAO")
private BBSUseInfoManageDAO bbsUseDAO;
private final BBSUseInfoManageDAO bbsUseInfoManageDAO;
@Resource(name = "EgovUserInfManageService")
private EgovUserInfManageService userService;
private final EgovUserInfManageService egovUserInfManageService;
@Resource(name = "egovBBSMstrIdGnrService")
private EgovIdGnrService idgenService;
private final EgovIdGnrService egovBBSMstrIdGnrService;
@Resource(name = "propertiesService")
protected EgovPropertyService propertyService;
private final EgovPropertyService egovPropertyService;
//---------------------------------
// 2009.06.26 : 2단계 기능 추가
//---------------------------------
@Resource(name = "BBSAddedOptionsDAO")
private BBSAddedOptionsDAO addedOptionsDAO;
////-------------------------------
/**
* <pre>
* 2 (, )
* 2009.06.26 : 2
* </pre>
*/
private final BBSAddedOptionsDAO addedOptionsDAO;
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#deleteBBSMasterInf(egovframework.let.cop.bbs.brd.service.BoardMaster)
*/
public void deleteBBSMasterInf(BoardMaster boardMaster) throws Exception {
attrbMngDAO.deleteBBSMasterInf(boardMaster);
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#deleteBBSMasterInf(egovframework.let.cop.bbs.brd.service.BoardMaster)
*/
@Override
public void deleteBBSMasterInf(BoardMaster boardMaster) throws Exception {
bbsAttributeManageDAO.deleteBBSMasterInf(boardMaster);
BoardUseInf bdUseInf = new BoardUseInf();
BoardUseInf bdUseInf = new BoardUseInf();
bdUseInf.setBbsId(boardMaster.getBbsId());
bdUseInf.setLastUpdusrId(boardMaster.getLastUpdusrId());
bdUseInf.setBbsId(boardMaster.getBbsId());
bdUseInf.setLastUpdusrId(boardMaster.getLastUpdusrId());
bbsUseDAO.deleteBBSUseInfByBoardId(bdUseInf);
}
bbsUseInfoManageDAO.deleteBBSUseInfByBoardId(bdUseInf);
}
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#insertBBSMastetInf(egovframework.let.cop.bbs.brd.service.BoardMaster)
*/
public String insertBBSMastetInf(BoardMaster boardMaster) throws Exception {
String bbsId = idgenService.getNextStringId();
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#insertBBSMastetInf(egovframework.let.cop.bbs.brd.service.BoardMaster)
*/
@Override
public String insertBBSMastetInf(BoardMaster boardMaster) throws Exception {
String bbsId = egovBBSMstrIdGnrService.getNextStringId();
boardMaster.setBbsId(bbsId);
boardMaster.setBbsId(bbsId);
attrbMngDAO.insertBBSMasterInf(boardMaster);
bbsAttributeManageDAO.insertBBSMasterInf(boardMaster);
//---------------------------------
// 2009.06.26 : 2단계 기능 추가
//---------------------------------
if (boardMaster.getOption().equals("comment") || boardMaster.getOption().equals("stsfdg")) {
addedOptionsDAO.insertAddedOptionsInf(boardMaster);
// ---------------------------------
// 2009.06.26 : 2단계 기능 추가
// ---------------------------------
if (boardMaster.getOption().equals("comment") || boardMaster.getOption().equals("stsfdg")) {
addedOptionsDAO.insertAddedOptionsInf(boardMaster);
}
//// -------------------------------
if ("Y".equals(boardMaster.getBbsUseFlag())) {
BoardUseInf bdUseInf = new BoardUseInf();
bdUseInf.setBbsId(bbsId);
bdUseInf.setTrgetId(boardMaster.getTrgetId());
bdUseInf.setRegistSeCode(boardMaster.getRegistSeCode());
bdUseInf.setFrstRegisterId(boardMaster.getFrstRegisterId());
bdUseInf.setUseAt("Y");
bbsUseInfoManageDAO.insertBBSUseInf(bdUseInf);
UserInfVO userVO = new UserInfVO();
userVO.setTrgetId(boardMaster.getTrgetId());
List<UserInfVO> tmpList = null;
Iterator<UserInfVO> iter = null;
if ("REGC05".equals(boardMaster.getRegistSeCode())) {
tmpList = egovUserInfManageService.selectAllClubUser(userVO);
iter = tmpList.iterator();
while (iter.hasNext()) {
bdUseInf = new BoardUseInf();
bdUseInf.setBbsId(bbsId);
bdUseInf.setTrgetId(iter.next().getUniqId());
bdUseInf.setRegistSeCode("REGC07");
bdUseInf.setUseAt("Y");
bdUseInf.setFrstRegisterId(boardMaster.getFrstRegisterId());
bbsUseInfoManageDAO.insertBBSUseInf(bdUseInf);
}
} else if ("REGC06".equals(boardMaster.getRegistSeCode())) {
tmpList = egovUserInfManageService.selectAllCmmntyUser(userVO);
iter = tmpList.iterator();
while (iter.hasNext()) {
bdUseInf = new BoardUseInf();
bdUseInf.setBbsId(bbsId);
bdUseInf.setTrgetId(iter.next().getUniqId());
bdUseInf.setRegistSeCode("REGC07");
bdUseInf.setUseAt("Y");
bdUseInf.setFrstRegisterId(boardMaster.getFrstRegisterId());
bbsUseInfoManageDAO.insertBBSUseInf(bdUseInf);
}
}
}
return bbsId;
}
////-------------------------------
if ("Y".equals(boardMaster.getBbsUseFlag())) {
BoardUseInf bdUseInf = new BoardUseInf();
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#selectAllBBSMasteInf(egovframework.let.cop.bbs.brd.service.BoardMasterVO)
*/
@Override
public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception {
return bbsAttributeManageDAO.selectAllBBSMasteInf(vo);
}
bdUseInf.setBbsId(bbsId);
bdUseInf.setTrgetId(boardMaster.getTrgetId());
bdUseInf.setRegistSeCode(boardMaster.getRegistSeCode());
bdUseInf.setFrstRegisterId(boardMaster.getFrstRegisterId());
bdUseInf.setUseAt("Y");
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#selectBBSMasterInf(egovframework.let.cop.bbs.brd.service.BoardMasterVO)
*/
@Override
public BoardMasterVO selectBBSMasterInf(BoardMaster searchVO) throws Exception {
// ---------------------------------
// 2009.06.26 : 2단계 기능 추가
// ---------------------------------
// return attrbMngDAO.selectBBSMasterInf(searchVO);
BoardMasterVO result = bbsAttributeManageDAO.selectBBSMasterInf(searchVO);
String flag = egovPropertyService.getString("Globals.addedOptions");
if (flag != null && flag.trim().equalsIgnoreCase("true")) {
BoardMasterVO options = addedOptionsDAO.selectAddedOptionsInf(searchVO);
if (options != null) {
if (options.getCommentAt().equals("Y")) {
result.setOption("comment");
}
if (options.getStsfdgAt().equals("Y")) {
result.setOption("stsfdg");
}
} else {
result.setOption("na"); // 미지정 상태로 수정 가능 (이미 지정된 경우는 수정 불가로 처리)
}
}
bbsUseDAO.insertBBSUseInf(bdUseInf);
return result;
//// -------------------------------
UserInfVO userVO = new UserInfVO();
userVO.setTrgetId(boardMaster.getTrgetId());
}
List<UserInfVO> tmpList = null;
Iterator<UserInfVO> iter = null;
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#selectBBSMasterInfs(egovframework.let.cop.bbs.brd.service.BoardMasterVO)
*/
@Override
public Map<String, Object> selectBBSMasterInfs(BoardMasterVO searchVO) throws Exception {
List<BoardMasterVO> result = bbsAttributeManageDAO.selectBBSMasterInfs(searchVO);
int cnt = bbsAttributeManageDAO.selectBBSMasterInfsCnt(searchVO);
if ("REGC05".equals(boardMaster.getRegistSeCode())) {
tmpList = userService.selectAllClubUser(userVO);
iter = tmpList.iterator();
while (iter.hasNext()) {
bdUseInf = new BoardUseInf();
Map<String, Object> map = new HashMap<String, Object>();
bdUseInf.setBbsId(bbsId);
bdUseInf.setTrgetId(((UserInfVO)iter.next()).getUniqId());
bdUseInf.setRegistSeCode("REGC07");
bdUseInf.setUseAt("Y");
bdUseInf.setFrstRegisterId(boardMaster.getFrstRegisterId());
map.put("resultList", result);
map.put("resultCnt", Integer.toString(cnt));
bbsUseDAO.insertBBSUseInf(bdUseInf);
}
} else if ("REGC06".equals(boardMaster.getRegistSeCode())) {
tmpList = userService.selectAllCmmntyUser(userVO);
iter = tmpList.iterator();
while (iter.hasNext()) {
bdUseInf = new BoardUseInf();
bdUseInf.setBbsId(bbsId);
bdUseInf.setTrgetId(((UserInfVO)iter.next()).getUniqId());
bdUseInf.setRegistSeCode("REGC07");
bdUseInf.setUseAt("Y");
bdUseInf.setFrstRegisterId(boardMaster.getFrstRegisterId());
bbsUseDAO.insertBBSUseInf(bdUseInf);
}
}
return map;
}
return bbsId;
}
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#selectAllBBSMasteInf(egovframework.let.cop.bbs.brd.service.BoardMasterVO)
*/
public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception {
return attrbMngDAO.selectAllBBSMasteInf(vo);
}
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#selectBBSMasterInf(egovframework.let.cop.bbs.brd.service.BoardMasterVO)
*/
public BoardMasterVO selectBBSMasterInf(BoardMaster searchVO) throws Exception {
//---------------------------------
// 2009.06.26 : 2단계 기능 추가
//---------------------------------
//return attrbMngDAO.selectBBSMasterInf(searchVO);
BoardMasterVO result = attrbMngDAO.selectBBSMasterInf(searchVO);
String flag = propertyService.getString("Globals.addedOptions");
if (flag != null && flag.trim().equalsIgnoreCase("true")) {
BoardMasterVO options = addedOptionsDAO.selectAddedOptionsInf(searchVO);
if (options != null) {
if (options.getCommentAt().equals("Y")) {
result.setOption("comment");
}
if (options.getStsfdgAt().equals("Y")) {
result.setOption("stsfdg");
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#updateBBSMasterInf(egovframework.let.cop.bbs.brd.service.BoardMaster)
*/
@Override
public void updateBBSMasterInf(BoardMaster boardMaster) throws Exception {
bbsAttributeManageDAO.updateBBSMasterInf(boardMaster);
// ---------------------------------
// 2009.06.26 : 2단계 기능 추가
// ---------------------------------
String flag = egovPropertyService.getString("Globals.addedOptions");
if (flag != null && flag.trim().equalsIgnoreCase("true")) {
if (boardMaster.getOption().equals("na")) {
return;
}
BoardMasterVO options = addedOptionsDAO.selectAddedOptionsInf(boardMaster);
if (options == null) {
boardMaster.setFrstRegisterId(boardMaster.getLastUpdusrId());
addedOptionsDAO.insertAddedOptionsInf(boardMaster);
} else {
// 수정 기능 제외 (새롭게 선택사항을 지정한 insert만 처리함)
// addedOptionsDAO.updateAddedOptionsInf(boardMaster);
log.debug("BBS Master update ignored...");
}
}
} else {
result.setOption("na"); // 미지정 상태로 수정 가능 (이미 지정된 경우는 수정 불가로 처리)
}
//// -------------------------------
}
return result;
////-------------------------------
}
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#selectBBSMasterInfs(egovframework.let.cop.bbs.brd.service.BoardMasterVO)
*/
public Map<String, Object> selectBBSMasterInfs(BoardMasterVO searchVO) throws Exception {
List<BoardMasterVO> result = attrbMngDAO.selectBBSMasterInfs(searchVO);
int cnt = attrbMngDAO.selectBBSMasterInfsCnt(searchVO);
Map<String, Object> map = new HashMap<String, Object>();
map.put("resultList", result);
map.put("resultCnt", Integer.toString(cnt));
return map;
}
/**
* .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#updateBBSMasterInf(egovframework.let.cop.bbs.brd.service.BoardMaster)
*/
public void updateBBSMasterInf(BoardMaster boardMaster) throws Exception {
attrbMngDAO.updateBBSMasterInf(boardMaster);
//---------------------------------
// 2009.06.26 : 2단계 기능 추가
//---------------------------------
String flag = propertyService.getString("Globals.addedOptions");
if (flag != null && flag.trim().equalsIgnoreCase("true")) {
if (boardMaster.getOption().equals("na")) {
return;
}
BoardMasterVO options = addedOptionsDAO.selectAddedOptionsInf(boardMaster);
if (options == null) {
boardMaster.setFrstRegisterId(boardMaster.getLastUpdusrId());
addedOptionsDAO.insertAddedOptionsInf(boardMaster);
} else {
//수정 기능 제외 (새롭게 선택사항을 지정한 insert만 처리함)
//addedOptionsDAO.updateAddedOptionsInf(boardMaster);
log.debug("BBS Master update ignored...");
}
/**
* 릿 .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#validateTemplate(egovframework.let.cop.bbs.brd.service.BoardMasterVO)
*/
@Override
public void validateTemplate(BoardMasterVO searchVO) throws Exception {
log.debug("validateTemplate method ignored...");
}
/**
* .
*/
@Override
public Map<String, Object> selectBdMstrListByTrget(BoardMasterVO vo) throws Exception {
List<BoardMasterVO> result = bbsAttributeManageDAO.selectBdMstrListByTrget(vo);
int cnt = bbsAttributeManageDAO.selectBdMstrListCntByTrget(vo);
Map<String, Object> map = new HashMap<String, Object>();
map.put("resultList", result);
map.put("resultCnt", Integer.toString(cnt));
return map;
}
/**
* , .
*/
@Override
public List<BoardMasterVO> selectAllBdMstrByTrget(BoardMasterVO vo) throws Exception {
return bbsAttributeManageDAO.selectAllBdMstrByTrget(vo);
}
/**
* .
*/
@Override
public Map<String, Object> selectNotUsedBdMstrList(BoardMasterVO searchVO) throws Exception {
List<BoardMasterVO> result = bbsAttributeManageDAO.selectNotUsedBdMstrList(searchVO);
int cnt = bbsAttributeManageDAO.selectNotUsedBdMstrListCnt(searchVO);
Map<String, Object> map = new HashMap<String, Object>();
map.put("resultList", result);
map.put("resultCnt", Integer.toString(cnt));
return map;
}
////-------------------------------
}
/**
* 릿 .
*
* @see egovframework.let.cop.bbs.brd.service.EgovBBSAttributeManageService#validateTemplate(egovframework.let.cop.bbs.brd.service.BoardMasterVO)
*/
public void validateTemplate(BoardMasterVO searchVO) throws Exception {
log.debug("validateTemplate method ignored...");
}
/**
* .
*/
public Map<String, Object> selectBdMstrListByTrget(BoardMasterVO vo) throws Exception {
List<BoardMasterVO> result = attrbMngDAO.selectBdMstrListByTrget(vo);
int cnt = attrbMngDAO.selectBdMstrListCntByTrget(vo);
Map<String, Object> map = new HashMap<String, Object>();
map.put("resultList", result);
map.put("resultCnt", Integer.toString(cnt));
return map;
}
/**
* , .
*/
public List<BoardMasterVO> selectAllBdMstrByTrget(BoardMasterVO vo) throws Exception {
return attrbMngDAO.selectAllBdMstrByTrget(vo);
}
/**
* .
*/
public Map<String, Object> selectNotUsedBdMstrList(BoardMasterVO searchVO) throws Exception {
List<BoardMasterVO> result = attrbMngDAO.selectNotUsedBdMstrList(searchVO);
int cnt = attrbMngDAO.selectNotUsedBdMstrListCnt(searchVO);
Map<String, Object> map = new HashMap<String, Object>();
map.put("resultList", result);
map.put("resultCnt", Integer.toString(cnt));
return map;
}
}

@ -4,12 +4,10 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.egovframe.rte.fdl.property.EgovPropertyService;
import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
@ -23,7 +21,6 @@ import org.springframework.web.bind.annotation.RestController;
import org.springmodules.validation.commons.DefaultBeanValidator;
import egovframework.com.cmm.ComDefaultCodeVO;
import egovframework.com.cmm.EgovMessageSource;
import egovframework.com.cmm.LoginVO;
import egovframework.com.cmm.ResponseCode;
import egovframework.com.cmm.service.EgovCmmUseService;
@ -40,49 +37,44 @@ import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
/**
*
*
*
* @author
* @since 2009.03.12
* @version 1.0
* @see
*
* <pre>
* <pre>
* << (Modification Information) >>
*
*
* ------- -------- ---------------------------
* 2009.03.12
* 2009.06.26 2 (, )
* 2011.08.31 JJY 릿
* 2009.03.12
* 2009.06.26 2 (, )
* 2011.08.31 JJY 릿
* 2024.08.28
*
* </pre>
* </pre>
*/
@RestController
@Tag(name="EgovBBSAttributeManageApiController",description = "게시판 속성관리")
@Tag(name = "EgovBBSAttributeManageApiController", description = "게시판 속성관리")
@RequiredArgsConstructor
public class EgovBBSAttributeManageApiController {
/** EgovBBSAttributeManageService */
@Resource(name = "EgovBBSAttributeManageService")
private EgovBBSAttributeManageService bbsAttrbService;
private final EgovBBSAttributeManageService egovBBSAttributeManageService;
/** EgovCmmUseService */
@Resource(name = "EgovCmmUseService")
private EgovCmmUseService cmmUseService;
private final EgovCmmUseService egovCmmUseService;
/** EgovPropertyService */
@Resource(name = "propertiesService")
protected EgovPropertyService propertyService;
private final EgovPropertyService egovPropertyService;
/** DefaultBeanValidator */
@Autowired
private DefaultBeanValidator beanValidator;
/** EgovMessageSource */
@Resource(name = "egovMessageSource")
EgovMessageSource egovMessageSource;
private final DefaultBeanValidator beanValidator;
/**
* .
@ -92,36 +84,23 @@ public class EgovBBSAttributeManageApiController {
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "게시판 마스터 조회",
description = "게시판 마스터 목록을 조회",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovBBSAttributeManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@Operation(summary = "게시판 마스터 조회", description = "게시판 마스터 목록을 조회", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovBBSAttributeManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님") })
@GetMapping(value = "/bbsMaster")
public ResultVO selectBBSMasterInfs(HttpServletRequest request,
@Parameter(
in = ParameterIn.QUERY,
schema = @Schema(type = "object",
additionalProperties = Schema.AdditionalPropertiesValue.TRUE,
ref = "#/components/schemas/searchMap"),
style = ParameterStyle.FORM,
explode = Explode.TRUE
) @RequestParam Map<String, Object> commandMap)
throws Exception {
@Parameter(in = ParameterIn.QUERY, schema = @Schema(type = "object", additionalProperties = Schema.AdditionalPropertiesValue.TRUE, ref = "#/components/schemas/searchMap"), style = ParameterStyle.FORM, explode = Explode.TRUE) @RequestParam Map<String, Object> commandMap)
throws Exception {
ResultVO resultVO = new ResultVO();
BoardMasterVO boardMasterVO = new BoardMasterVO();
boardMasterVO.setSearchCnd((String)commandMap.get("searchCnd"));
boardMasterVO.setSearchWrd((String)commandMap.get("searchWrd"));
boardMasterVO.setPageUnit(propertyService.getInt("Globals.pageUnit"));
boardMasterVO.setPageSize(propertyService.getInt("Globals.pageSize"));
boardMasterVO.setSearchCnd((String) commandMap.get("searchCnd"));
boardMasterVO.setSearchWrd((String) commandMap.get("searchWrd"));
boardMasterVO.setPageUnit(egovPropertyService.getInt("Globals.pageUnit"));
boardMasterVO.setPageSize(egovPropertyService.getInt("Globals.pageSize"));
PaginationInfo paginationInfo = new PaginationInfo();
@ -133,8 +112,8 @@ public class EgovBBSAttributeManageApiController {
boardMasterVO.setLastIndex(paginationInfo.getLastRecordIndex());
boardMasterVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
Map<String, Object> resultMap = bbsAttrbService.selectBBSMasterInfs(boardMasterVO);
int totCnt = Integer.parseInt((String)resultMap.get("resultCnt"));
Map<String, Object> resultMap = egovBBSAttributeManageService.selectBBSMasterInfs(boardMasterVO);
int totCnt = Integer.parseInt((String) resultMap.get("resultCnt"));
paginationInfo.setTotalRecordCount(totCnt);
@ -155,29 +134,22 @@ public class EgovBBSAttributeManageApiController {
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "게시판 마스터 상세 조회",
description = "게시판 마스터 상세내용을 조회",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovBBSAttributeManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@GetMapping(value ="/bbsMaster/{bbsId}")
@Operation(summary = "게시판 마스터 상세 조회", description = "게시판 마스터 상세내용을 조회", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovBBSAttributeManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님") })
@GetMapping(value = "/bbsMaster/{bbsId}")
public ResultVO selectBBSMasterInf(HttpServletRequest request,
@Parameter(name = "bbsId", description = "게시판 Id", in = ParameterIn.PATH, example="BBSMSTR_AAAAAAAAAAAA")
@PathVariable("bbsId") String bbsId)
throws Exception {
@Parameter(name = "bbsId", description = "게시판 Id", in = ParameterIn.PATH, example = "BBSMSTR_AAAAAAAAAAAA") @PathVariable("bbsId") String bbsId)
throws Exception {
ResultVO resultVO = new ResultVO();
BoardMasterVO searchVO = new BoardMasterVO();
searchVO.setBbsId(bbsId);
Map<String, Object> resultMap = new HashMap<String, Object>();
BoardMasterVO vo = bbsAttrbService.selectBBSMasterInf(searchVO);
BoardMasterVO vo = egovBBSAttributeManageService.selectBBSMasterInf(searchVO);
resultMap.put("boardMasterVO", vo);
resultVO.setResult(resultMap);
@ -197,24 +169,15 @@ public class EgovBBSAttributeManageApiController {
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "게시판 마스터 등록",
description = "신규 게시판 마스터 정보를 등록",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovBBSAttributeManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
@Operation(summary = "게시판 마스터 등록", description = "신규 게시판 마스터 정보를 등록", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovBBSAttributeManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님"),
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류")
})
@PostMapping(value ="/bbsMaster")
public ResultVO insertBBSMasterInf(HttpServletRequest request,
BoardMasterVO boardMasterVO,
BindingResult bindingResult,
@Parameter(hidden = true) @AuthenticationPrincipal LoginVO loginVO
)
throws Exception {
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류") })
@PostMapping(value = "/bbsMaster")
public ResultVO insertBBSMasterInf(HttpServletRequest request, BoardMasterVO boardMasterVO,
BindingResult bindingResult, @Parameter(hidden = true) @AuthenticationPrincipal LoginVO loginVO)
throws Exception {
ResultVO resultVO = new ResultVO();
Map<String, Object> resultMap = new HashMap<String, Object>();
@ -225,29 +188,29 @@ public class EgovBBSAttributeManageApiController {
vo.setCodeId("COM004");
List<?> codeResult = cmmUseService.selectCmmCodeDetail(vo);
List<?> codeResult = egovCmmUseService.selectCmmCodeDetail(vo);
resultMap.put("typeList", codeResult);
vo.setCodeId("COM009");
codeResult = cmmUseService.selectCmmCodeDetail(vo);
codeResult = egovCmmUseService.selectCmmCodeDetail(vo);
resultMap.put("attrbList", codeResult);
resultVO.setResult(resultMap);
resultVO.setResultCode(ResponseCode.INPUT_CHECK_ERROR.getCode());
resultVO.setResultMessage(ResponseCode.INPUT_CHECK_ERROR.getMessage());
return resultVO;
}
boardMasterVO.setFrstRegisterId(loginVO.getUniqId());
boardMasterVO.setUseAt("Y");
boardMasterVO.setTrgetId("SYSTEMDEFAULT_REGIST");
boardMasterVO.setPosblAtchFileSize(propertyService.getString("posblAtchFileSize"));
boardMasterVO.setPosblAtchFileSize(egovPropertyService.getString("posblAtchFileSize"));
bbsAttrbService.insertBBSMastetInf(boardMasterVO);
egovBBSAttributeManageService.insertBBSMastetInf(boardMasterVO);
resultVO.setResult(resultMap);
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
@ -266,32 +229,23 @@ public class EgovBBSAttributeManageApiController {
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "게시판 마스터 수정",
description = "게시판 마스터 정보를 수정",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovBBSAttributeManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "수정 성공"),
@Operation(summary = "게시판 마스터 수정", description = "게시판 마스터 정보를 수정", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovBBSAttributeManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "수정 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님"),
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류")
})
@PutMapping(value ="/bbsMaster/{bbsId}")
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류") })
@PutMapping(value = "/bbsMaster/{bbsId}")
public ResultVO updateBBSMasterInf(HttpServletRequest request,
@Parameter(name = "bbsId", description = "게시판 Id", in = ParameterIn.PATH, example="BBSMSTR_AAAAAAAAAAAA")
@PathVariable("bbsId") String bbsId,
@RequestBody BoardMasterVO boardMasterVO,
BindingResult bindingResult,
@Parameter(hidden = true) @AuthenticationPrincipal LoginVO loginVO
) throws Exception {
@Parameter(name = "bbsId", description = "게시판 Id", in = ParameterIn.PATH, example = "BBSMSTR_AAAAAAAAAAAA") @PathVariable("bbsId") String bbsId,
@RequestBody BoardMasterVO boardMasterVO, BindingResult bindingResult,
@Parameter(hidden = true) @AuthenticationPrincipal LoginVO loginVO) throws Exception {
ResultVO resultVO = new ResultVO();
Map<String, Object> resultMap = new HashMap<String, Object>();
beanValidator.validate(boardMasterVO, bindingResult);
if (bindingResult.hasErrors()) {
BoardMasterVO vo = bbsAttrbService.selectBBSMasterInf(boardMasterVO);
BoardMasterVO vo = egovBBSAttributeManageService.selectBBSMasterInf(boardMasterVO);
resultMap.put("BoardMasterVO", vo);
@ -302,8 +256,8 @@ public class EgovBBSAttributeManageApiController {
}
boardMasterVO.setLastUpdusrId(loginVO.getUniqId());
boardMasterVO.setPosblAtchFileSize(propertyService.getString("posblAtchFileSize"));
bbsAttrbService.updateBBSMasterInf(boardMasterVO);
boardMasterVO.setPosblAtchFileSize(egovPropertyService.getString("posblAtchFileSize"));
egovBBSAttributeManageService.updateBBSMasterInf(boardMasterVO);
resultVO.setResult(resultMap);
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
@ -321,37 +275,28 @@ public class EgovBBSAttributeManageApiController {
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "게시판 마스터 삭제",
description = "게시판 마스터 정보를 삭제",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovBBSAttributeManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "삭제 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@PatchMapping(value ="/bbsMaster/{bbsId}")
@Operation(summary = "게시판 마스터 삭제", description = "게시판 마스터 정보를 삭제", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovBBSAttributeManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "삭제 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님") })
@PatchMapping(value = "/bbsMaster/{bbsId}")
public ResultVO deleteBBSMasterInf(HttpServletRequest request,
@Parameter(hidden = true) @AuthenticationPrincipal LoginVO loginVO,
@Parameter(name = "bbsId", description = "게시판 Id", in = ParameterIn.PATH, example="BBSMSTR_AAAAAAAAAAAA")
@PathVariable("bbsId") String bbsId
) throws Exception {
ResultVO resultVO = new ResultVO();
BoardMasterVO boardMasterVO = new BoardMasterVO();
boardMasterVO.setLastUpdusrId(loginVO.getUniqId());
boardMasterVO.setBbsId(bbsId);
bbsAttrbService.deleteBBSMasterInf(boardMasterVO);
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
@Parameter(hidden = true) @AuthenticationPrincipal LoginVO loginVO,
@Parameter(name = "bbsId", description = "게시판 Id", in = ParameterIn.PATH, example = "BBSMSTR_AAAAAAAAAAAA") @PathVariable("bbsId") String bbsId)
throws Exception {
return resultVO;
}
ResultVO resultVO = new ResultVO();
BoardMasterVO boardMasterVO = new BoardMasterVO();
boardMasterVO.setLastUpdusrId(loginVO.getUniqId());
boardMasterVO.setBbsId(bbsId);
egovBBSAttributeManageService.deleteBBSMasterInf(boardMasterVO);
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
return resultVO;
}
}

@ -4,17 +4,37 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.egovframe.rte.fdl.property.EgovPropertyService;
import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springmodules.validation.commons.DefaultBeanValidator;
import egovframework.com.cmm.ComDefaultCodeVO;
import egovframework.com.cmm.EgovMessageSource;
import egovframework.com.cmm.LoginVO;
import egovframework.com.cmm.ResponseCode;
import egovframework.com.cmm.service.CmmnDetailCode;
import egovframework.com.cmm.service.EgovCmmUseService;
import egovframework.com.cmm.service.ResultVO;
import egovframework.com.cmm.util.EgovUserDetailsHelper;
import egovframework.com.jwt.EgovJwtTokenUtil;
import egovframework.let.uss.umt.service.EgovMberManageService;
import egovframework.let.uss.umt.service.MberManageVO;
import egovframework.let.uss.umt.service.UserDefaultVO;
import egovframework.let.utl.fcc.service.EgovStringUtil;
import egovframework.let.utl.sim.service.EgovFileScrty;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.enums.Explode;
@ -25,76 +45,48 @@ import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.egovframe.rte.fdl.property.EgovPropertyService;
import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import egovframework.let.uat.uia.web.EgovLoginApiController;
import egovframework.let.uss.umt.service.EgovMberManageService;
import egovframework.let.uss.umt.service.MberManageVO;
import egovframework.let.uss.umt.service.UserDefaultVO;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springmodules.validation.commons.DefaultBeanValidator;
/**
* Controller
* Controller
*
* @author
* @since 2009.04.10
* @version 1.0
* @see
*
* <pre>
* <pre>
* << (Modification Information) >>
*
*
* ------- -------- ---------------------------
* 2009.04.10
* 2024.07.22 Boot 릿
* 2024.08.28
*
* </pre>
* </pre>
*/
@Slf4j
@RestController
@Tag(name="EgovMberManageApiController",description = "회원 관리")
@Tag(name = "EgovMberManageApiController", description = "회원 관리")
@RequiredArgsConstructor
public class EgovMberManageApiController {
@Autowired
private EgovJwtTokenUtil jwtTokenUtil;
public static final String HEADER_STRING = "Authorization";
private EgovJwtTokenUtil jwtTokenUtil;
public static final String HEADER_STRING = "Authorization";
/** mberManageService */
@Resource(name = "mberManageService")
private EgovMberManageService mberManageService;
/** cmmUseService */
@Resource(name = "EgovCmmUseService")
private EgovCmmUseService cmmUseService;
private final EgovCmmUseService cmmUseService;
/** EgovMessageSource */
@Resource(name="egovMessageSource")
EgovMessageSource egovMessageSource;
@Resource(name = "egovMessageSource")
EgovMessageSource egovMessageSource;
/** EgovPropertyService */
@Resource(name = "propertiesService")
@ -106,41 +98,31 @@ public class EgovMberManageApiController {
/**
* . (pageing)
*
* @param request
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "관리자단에서 회원 목록조회화면",
description = "관리자단에서 회원에 대한 목록을 조회",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@Operation(summary = "관리자단에서 회원 목록조회화면", description = "관리자단에서 회원에 대한 목록을 조회", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님") })
@GetMapping(value = "/members")
public ResultVO selectMberList(
@Parameter(
in = ParameterIn.QUERY,
schema = @Schema(type = "object",
additionalProperties = Schema.AdditionalPropertiesValue.TRUE,
ref = "#/components/schemas/searchMap"),
style = ParameterStyle.FORM,
explode = Explode.TRUE
) @RequestParam Map<String, Object> commandMap,
@Parameter(hidden = true) @AuthenticationPrincipal LoginVO user)
throws Exception {
@Parameter(in = ParameterIn.QUERY, schema = @Schema(type = "object", additionalProperties = Schema.AdditionalPropertiesValue.TRUE, ref = "#/components/schemas/searchMap"), style = ParameterStyle.FORM, explode = Explode.TRUE) @RequestParam Map<String, Object> commandMap,
@Parameter(hidden = true) @AuthenticationPrincipal LoginVO user) throws Exception {
if (log.isDebugEnabled()) {
log.debug("commandMap={}", commandMap);
}
ResultVO resultVO = new ResultVO();
MberManageVO userSearchVO = new MberManageVO();
userSearchVO.setSearchCondition((String)commandMap.get("searchCnd"));
userSearchVO.setSearchKeyword((String)commandMap.get("searchWrd"));
userSearchVO.setSearchCondition((String) commandMap.get("searchCnd"));
userSearchVO.setSearchKeyword((String) commandMap.get("searchWrd"));
/** EgovPropertyService */
userSearchVO.setPageUnit(propertiesService.getInt("Globals.pageUnit"));
userSearchVO.setPageSize(propertiesService.getInt("Globals.pageSize"));
/** pageing */
PaginationInfo paginationInfo = new PaginationInfo();
paginationInfo.setCurrentPageNo(userSearchVO.getPageIndex());
@ -150,31 +132,30 @@ public class EgovMberManageApiController {
userSearchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
userSearchVO.setLastIndex(paginationInfo.getLastRecordIndex());
userSearchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
List<MberManageVO> resultList = mberManageService.selectMberList(userSearchVO);
int totCnt = mberManageService.selectMberListTotCnt(userSearchVO);
paginationInfo.setTotalRecordCount(totCnt);
//회원 상태코드를 코드정보로부터 조회
// 회원 상태코드를 코드정보로부터 조회
ComDefaultCodeVO vo = new ComDefaultCodeVO();
vo.setCodeId("COM013");
//그룹정보를 조회 - GROUP_ID정보(스프링부트에서는 실제로 이 값만 사용한다.)
// 그룹정보를 조회 - GROUP_ID정보(스프링부트에서는 실제로 이 값만 사용한다.)
vo.setTableNm("LETTNORGNZTINFO");
Map<String, Object> resultMap = new HashMap<String, Object>();
resultMap.put("paginationInfo", paginationInfo);
resultMap.put("user", user);
resultMap.put("entrprsMberSttus_result", cmmUseService.selectCmmCodeDetail(vo));
resultMap.put("groupId_result", cmmUseService.selectGroupIdDetail(vo));
/*
List<CmmnDetailCode> groupId_result = cmmUseService.selectGroupIdDetail(vo);
for(CmmnDetailCode result : groupId_result) {
log.debug("===>>> getCode = "+result.getCode());
log.debug("===>>> getCodeNm = "+result.getCodeNm());
}
*/
/*
* List<CmmnDetailCode> groupId_result =
* cmmUseService.selectGroupIdDetail(vo); for(CmmnDetailCode result :
* groupId_result) { log.debug("===>>> getCode = "+result.getCode());
* log.debug("===>>> getCodeNm = "+result.getCodeNm()); }
*/
resultMap.put("resultList", resultList);
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
@ -186,66 +167,55 @@ public class EgovMberManageApiController {
/**
* .
*
* @param userSearchVO
* @param mberManageVO
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "관리자단에서 회원 등록화면",
description = "관리자단에서 회원등록화면에 필요한 값 생성",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@Operation(summary = "관리자단에서 회원 등록화면", description = "관리자단에서 회원등록화면에 필요한 값 생성", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님") })
@GetMapping("/members/insert")
public ResultVO insertMberView(UserDefaultVO userSearchVO, MberManageVO mberManageVO)
throws Exception {
public ResultVO insertMberView(UserDefaultVO userSearchVO, MberManageVO mberManageVO) throws Exception {
ComDefaultCodeVO vo = new ComDefaultCodeVO();
Map<String, Object> resultMap = new HashMap<String, Object>();
//패스워드힌트목록을 코드정보로부터 조회
// 패스워드힌트목록을 코드정보로부터 조회
vo.setCodeId("COM022");
resultMap.put("passwordHint_result", cmmUseService.selectCmmCodeDetail(vo));
//성별구분코드를 코드정보로부터 조회
// 성별구분코드를 코드정보로부터 조회
vo.setCodeId("COM014");
resultMap.put("sexdstnCode_result", cmmUseService.selectCmmCodeDetail(vo));
//사용자상태코드를 코드정보로부터 조회
// 사용자상태코드를 코드정보로부터 조회
vo.setCodeId("COM013");
resultMap.put("mberSttus_result", cmmUseService.selectCmmCodeDetail(vo));
//그룹정보를 조회 - GROUP_ID정보(스프링부트에서는 실제로 이 값만 사용한다.)
// 그룹정보를 조회 - GROUP_ID정보(스프링부트에서는 실제로 이 값만 사용한다.)
vo.setTableNm("LETTNORGNZTINFO");
resultMap.put("groupId_result", cmmUseService.selectGroupIdDetail(vo));
ResultVO resultVO = new ResultVO();
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
resultVO.setResult(resultMap);
return resultVO;
}
/**
*
* @param mberManageVO
*
* @param mberManageVO
* @param bindingResult bindingResult
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "관리자단에서 회원 등록처리",
description = "관리자단에서 회원 등록처리",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "등록 성공"),
@Operation(summary = "관리자단에서 회원 등록처리", description = "관리자단에서 회원 등록처리", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "등록 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님"),
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류")
})
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류") })
@PostMapping("/members/insert")
public ResultVO insertMber(MberManageVO mberManageVO, BindingResult bindingResult) throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>();
@ -254,72 +224,67 @@ public class EgovMberManageApiController {
if (bindingResult.hasErrors()) {
ComDefaultCodeVO vo = new ComDefaultCodeVO();
//패스워드힌트목록을 코드정보로부터 조회
// 패스워드힌트목록을 코드정보로부터 조회
vo.setCodeId("COM022");
resultMap.put("passwordHint_result", cmmUseService.selectCmmCodeDetail(vo));
//성별구분코드를 코드정보로부터 조회
// 성별구분코드를 코드정보로부터 조회
vo.setCodeId("COM014");
resultMap.put("sexdstnCode_result", cmmUseService.selectCmmCodeDetail(vo));
//사용자상태코드를 코드정보로부터 조회
// 사용자상태코드를 코드정보로부터 조회
vo.setCodeId("COM013");
resultMap.put("mberSttus_result", cmmUseService.selectCmmCodeDetail(vo));
//그룹정보를 조회 - GROUP_ID정보
// 그룹정보를 조회 - GROUP_ID정보
vo.setTableNm("LETTNORGNZTINFO");
resultMap.put("groupId_result", cmmUseService.selectGroupIdDetail(vo));
resultMap.put("resultMsg", "fail.common.insert");
resultVO.setResultCode(ResponseCode.SAVE_ERROR.getCode());
resultVO.setResultMessage(ResponseCode.SAVE_ERROR.getMessage());
} else {
mberManageService.insertMber(mberManageVO);
//Exception 없이 진행시 등록 성공메시지
// Exception 없이 진행시 등록 성공메시지
resultMap.put("resultMsg", "success.common.insert");
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
}
resultVO.setResult(resultMap);
return resultVO;
}
/**
* .
* @param uniqId
*
* @param uniqId
* @param userSearchVO
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "관리자단에서 회원정보 수정용 상세조회화면",
description = "관리자단에서 회원정보 수정을 위해 회원정보를 상세조회",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@Operation(summary = "관리자단에서 회원정보 수정용 상세조회화면", description = "관리자단에서 회원정보 수정을 위해 회원정보를 상세조회", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님") })
@GetMapping("/members/update/{uniqId}")
public ResultVO updateMberView(@PathVariable("uniqId") String uniqId, UserDefaultVO userSearchVO) throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>();
ResultVO resultVO = new ResultVO();
ComDefaultCodeVO vo = new ComDefaultCodeVO();
//패스워드힌트목록을 코드정보로부터 조회
// 패스워드힌트목록을 코드정보로부터 조회
vo.setCodeId("COM022");
resultMap.put("passwordHint_result", cmmUseService.selectCmmCodeDetail(vo));
//성별구분코드를 코드정보로부터 조회
// 성별구분코드를 코드정보로부터 조회
vo.setCodeId("COM014");
resultMap.put("sexdstnCode_result", cmmUseService.selectCmmCodeDetail(vo));
//사용자상태코드를 코드정보로부터 조회
// 사용자상태코드를 코드정보로부터 조회
vo.setCodeId("COM013");
resultMap.put("mberSttus_result", cmmUseService.selectCmmCodeDetail(vo));
//그룹정보를 조회 - GROUP_ID정보
// 그룹정보를 조회 - GROUP_ID정보
vo.setTableNm("LETTNORGNZTINFO");
resultMap.put("groupId_result", cmmUseService.selectGroupIdDetail(vo));
@ -330,28 +295,23 @@ public class EgovMberManageApiController {
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
resultVO.setResult(resultMap);
return resultVO;
}
/**
*
* @param mberManageVO
*
* @param mberManageVO
* @param bindingResult bindingResult
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "관리자단에서 회원 수정처리",
description = "관리자단에서 회원 수정처리",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "등록 성공"),
@Operation(summary = "관리자단에서 회원 수정처리", description = "관리자단에서 회원 수정처리", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "등록 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님"),
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류")
})
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류") })
@PutMapping("/members/update")
public ResultVO updateMber(@RequestBody MberManageVO mberManageVO, BindingResult bindingResult) throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>();
@ -361,92 +321,82 @@ public class EgovMberManageApiController {
if (bindingResult.hasErrors()) {
ComDefaultCodeVO vo = new ComDefaultCodeVO();
//패스워드힌트목록을 코드정보로부터 조회
// 패스워드힌트목록을 코드정보로부터 조회
vo.setCodeId("COM022");
resultMap.put("passwordHint_result", cmmUseService.selectCmmCodeDetail(vo));
//성별구분코드를 코드정보로부터 조회
// 성별구분코드를 코드정보로부터 조회
vo.setCodeId("COM014");
resultMap.put("sexdstnCode_result", cmmUseService.selectCmmCodeDetail(vo));
//사용자상태코드를 코드정보로부터 조회
// 사용자상태코드를 코드정보로부터 조회
vo.setCodeId("COM013");
resultMap.put("mberSttus_result", cmmUseService.selectCmmCodeDetail(vo));
//그룹정보를 조회 - GROUP_ID정보
// 그룹정보를 조회 - GROUP_ID정보
vo.setTableNm("LETTNORGNZTINFO");
resultMap.put("groupId_result", cmmUseService.selectGroupIdDetail(vo));
resultMap.put("resultMsg", "fail.common.insert");
resultVO.setResultCode(ResponseCode.SAVE_ERROR.getCode());
resultVO.setResultMessage(ResponseCode.SAVE_ERROR.getMessage());
} else {
mberManageService.updateMber(mberManageVO);
//Exception 없이 진행시 수정성공메시지
// Exception 없이 진행시 수정성공메시지
resultMap.put("resultMsg", "success.common.update");
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
}
resultVO.setResult(resultMap);
return resultVO;
}
/**
* .
*
* @param checkedIdForDel
* @param userSearchVO
* @param userSearchVO
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "관리자단에서 회원 삭제처리",
description = "관리자단에서 회원 삭제처리",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "삭제 성공"),
@Operation(summary = "관리자단에서 회원 삭제처리", description = "관리자단에서 회원 삭제처리", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "삭제 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님"),
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류")
})
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류") })
@PatchMapping("/members/delete/{uniqId}")
public ResultVO deleteMber(@PathVariable("uniqId") String uniqId, UserDefaultVO userSearchVO) throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>();
ResultVO resultVO = new ResultVO();
mberManageService.deleteMber(uniqId);
//Exception 없이 진행시 삭제성공메시지
// Exception 없이 진행시 삭제성공메시지
resultMap.put("resultMsg", "success.common.delete");
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
resultVO.setResult(resultMap);
return resultVO;
}
/**
* .
*
* @param uniqId
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "사용자단에서 회원정보 수정용 상세조회화면",
description = "사용자단에서 회원정보 수정을 위해 회원정보를 상세조회",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@Operation(summary = "사용자단에서 회원정보 수정용 상세조회화면", description = "사용자단에서 회원정보 수정을 위해 회원정보를 상세조회", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님") })
@GetMapping("/mypage/update")
public ResultVO updateMypageView(HttpServletRequest req) throws Exception {
// step 1. request header에서 토큰을 가져온다.
String jwtToken = EgovStringUtil.isNullToString(req.getHeader(HEADER_STRING));
// step 2. 토큰에 내용이 있는지 확인해서 id값을 가져옴
String uniqId = jwtTokenUtil.getInfoFromToken("uniqId",jwtToken);
// step 2. 토큰에 내용이 있는지 확인해서 id값을 가져옴
String uniqId = jwtTokenUtil.getInfoFromToken("uniqId", jwtToken);
Map<String, Object> resultMap = new HashMap<String, Object>();
ResultVO resultVO = new ResultVO();
@ -456,27 +406,23 @@ public class EgovMberManageApiController {
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
resultVO.setResult(resultMap);
return resultVO;
}
/**
*
* @param mberManageVO
*
* @param mberManageVO
* @param bindingResult bindingResult
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "사용자단에서 회원 수정처리",
description = "사용자단에서 회원 수정처리",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "등록 성공"),
@Operation(summary = "사용자단에서 회원 수정처리", description = "사용자단에서 회원 수정처리", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "등록 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님"),
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류")
})
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류") })
@PutMapping("/mypage/update")
public ResultVO updateMypage(@RequestBody MberManageVO mberManageVO, BindingResult bindingResult) throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>();
@ -488,38 +434,35 @@ public class EgovMberManageApiController {
resultVO.setResultCode(ResponseCode.SAVE_ERROR.getCode());
resultVO.setResultMessage(ResponseCode.SAVE_ERROR.getMessage());
} else {
mberManageVO.setMberSttus("P");//회원상태는 로그인가능상태로
mberManageVO.setGroupId("GROUP_00000000000001");//회원 권한그룹은 ROLE_USER상태로
mberManageVO.setMberSttus("P");// 회원상태는 로그인가능상태로
mberManageVO.setGroupId("GROUP_00000000000001");// 회원 권한그룹은 ROLE_USER상태로
mberManageService.updateMber(mberManageVO);
//Exception 없이 진행시 수정성공메시지
// Exception 없이 진행시 수정성공메시지
resultMap.put("resultMsg", "success.common.update");
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
}
resultVO.setResult(resultMap);
return resultVO;
}
/**
*
* @param mberManageVO
*
* @param mberManageVO
* @param bindingResult bindingResult
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "사용자단에서 회원 탈퇴처리",
description = "사용자단에서 회원 탈퇴처리",
security = {@SecurityRequirement(name = "Authorization")},
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "등록 성공"),
@Operation(summary = "사용자단에서 회원 탈퇴처리", description = "사용자단에서 회원 탈퇴처리", security = {
@SecurityRequirement(name = "Authorization") }, tags = { "EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "등록 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님"),
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류")
})
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류") })
@PutMapping("/mypage/delete")
public ResultVO deleteMypage(@RequestBody MberManageVO mberManageVO, BindingResult bindingResult,HttpServletRequest request, HttpServletResponse response) throws Exception {
public ResultVO deleteMypage(@RequestBody MberManageVO mberManageVO, BindingResult bindingResult,
HttpServletRequest request, HttpServletResponse response) throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>();
ResultVO resultVO = new ResultVO();
@ -529,33 +472,29 @@ public class EgovMberManageApiController {
resultVO.setResultCode(ResponseCode.SAVE_ERROR.getCode());
resultVO.setResultMessage(ResponseCode.SAVE_ERROR.getMessage());
} else {
mberManageVO.setMberSttus("D");//회원상태 삭제상태로
mberManageService.updateMber(mberManageVO);//회원상태 탈퇴 처리
new SecurityContextLogoutHandler().logout(request, response, null);//로그인 토큰값 지우기
//Exception 없이 진행시 수정성공메시지
mberManageVO.setMberSttus("D");// 회원상태 삭제상태로
mberManageService.updateMber(mberManageVO);// 회원상태 탈퇴 처리
new SecurityContextLogoutHandler().logout(request, response, null);// 로그인 토큰값 지우기
// Exception 없이 진행시 수정성공메시지
resultMap.put("resultMsg", "success.common.update");
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
}
resultVO.setResult(resultMap);
return resultVO;
}
/**
* .
*
* @param mberManageVO
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "사용자단에서 회원 등록처리",
description = "사용자단에서 회원 등록처리",
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "등록 성공"),
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류")
})
@Operation(summary = "사용자단에서 회원 등록처리", description = "사용자단에서 회원 등록처리", tags = { "EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "등록 성공"),
@ApiResponse(responseCode = "900", description = "입력값 무결성 오류") })
@PostMapping("/etc/member_insert")
public ResultVO sbscrbMber(MberManageVO mberManageVO, BindingResult bindingResult) throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>();
@ -566,118 +505,105 @@ public class EgovMberManageApiController {
resultVO.setResultCode(ResponseCode.SAVE_ERROR.getCode());
resultVO.setResultMessage(ResponseCode.SAVE_ERROR.getMessage());
} else {
mberManageVO.setMberSttus("P");//회원상태는 로그인가능상태로
mberManageVO.setGroupId("GROUP_00000000000001");//회원 권한그룹은 ROLE_USER상태로
//회원가입신청 등록시 회원등록기능을 사용하여 등록한다.
mberManageVO.setMberSttus("P");// 회원상태는 로그인가능상태로
mberManageVO.setGroupId("GROUP_00000000000001");// 회원 권한그룹은 ROLE_USER상태로
// 회원가입신청 등록시 회원등록기능을 사용하여 등록한다.
mberManageService.insertMber(mberManageVO);
//Exception 없이 진행시 수정성공메시지
// Exception 없이 진행시 수정성공메시지
resultMap.put("resultMsg", "success.common.insert");
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
}
resultVO.setResult(resultMap);
return resultVO;
}
/**
* () .
*
* @param userSearchVO
* @param mberManageVO
* @param commandMap commandMap
* @param commandMap commandMap
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "사용자단에서 회원 가입화면",
description = "사용자단에서 회원가입화면에 필요한 값 생성",
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
})
@Operation(summary = "사용자단에서 회원 가입화면", description = "사용자단에서 회원가입화면에 필요한 값 생성", tags = {
"EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "조회 성공"), })
@GetMapping("/etc/member_insert")
public ResultVO sbscrbMberView(UserDefaultVO userSearchVO, MberManageVO mberManageVO,
@RequestParam Map<String, Object> commandMap) throws Exception {
ComDefaultCodeVO vo = new ComDefaultCodeVO();
Map<String, Object> resultMap = new HashMap<String, Object>();
//패스워드힌트목록을 코드정보로부터 조회
// 패스워드힌트목록을 코드정보로부터 조회
vo.setCodeId("COM022");
resultMap.put("passwordHint_result", cmmUseService.selectCmmCodeDetail(vo));
//성별구분코드를 코드정보로부터 조회
// 성별구분코드를 코드정보로부터 조회
vo.setCodeId("COM014");
resultMap.put("sexdstnCode_result", cmmUseService.selectCmmCodeDetail(vo));
if (!"".equals(commandMap.get("realname"))) {
resultMap.put("mberNm", commandMap.get("realname")); //실명인증된 이름 - 주민번호 인증
resultMap.put("ihidnum", commandMap.get("ihidnum")); //실명인증된 주민등록번호 - 주민번호 인증
resultMap.put("mberNm", commandMap.get("realname")); // 실명인증된 이름 - 주민번호 인증
resultMap.put("ihidnum", commandMap.get("ihidnum")); // 실명인증된 주민등록번호 - 주민번호 인증
}
if (!"".equals(commandMap.get("realName"))) {
resultMap.put("mberNm", commandMap.get("realName")); //실명인증된 이름 - ipin인증
resultMap.put("mberNm", commandMap.get("realName")); // 실명인증된 이름 - ipin인증
}
mberManageVO.setGroupId("DEFAULT");
mberManageVO.setMberSttus("DEFAULT");
ResultVO resultVO = new ResultVO();
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
resultVO.setResult(resultMap);
return resultVO;
}
/**
*
*
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "사용자단에서 회원 약관확인",
description = "사용자단에서 회원 약관확인에 필요한 값 생성",
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
})
@Operation(summary = "사용자단에서 회원 약관확인", description = "사용자단에서 회원 약관확인에 필요한 값 생성", tags = {
"EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "조회 성공"), })
@GetMapping("/etc/member_agreement")
public ResultVO sbscrbEntrprsMber() throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>();
ResultVO resultVO = new ResultVO();
//회원용 약관 아이디 설정
// 회원용 약관 아이디 설정
String stplatId = "STPLAT_0000000000001";
//회원가입유형 설정-회원
// 회원가입유형 설정-회원
String sbscrbTy = "USR01";
//약관정보 조회
// 약관정보 조회
resultMap.put("stplatList", mberManageService.selectStplat(stplatId));
resultMap.put("sbscrbTy", sbscrbTy); //회원가입유형 포함
resultMap.put("sbscrbTy", sbscrbTy); // 회원가입유형 포함
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
resultVO.setResult(resultMap);
return resultVO;
}
/**
*
*
* @param commandMap commandMap
* @return resultVO
* @throws Exception
*/
@Operation(
summary = "사용자아이디의 중복여부 체크처리",
description = "사용자아이디의 중복여부 체크처리",
tags = {"EgovMberManageApiController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@Operation(summary = "사용자아이디의 중복여부 체크처리", description = "사용자아이디의 중복여부 체크처리", tags = {
"EgovMberManageApiController" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님") })
@GetMapping("/etc/member_checkid/{checkid}")
public ResultVO checkIdDplct(@PathVariable("checkid") String checkId) throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>();
@ -687,11 +613,11 @@ public class EgovMberManageApiController {
if (checkId == null || checkId.equals("")) {
resultVO.setResultCode(ResponseCode.INPUT_CHECK_ERROR.getCode());
resultVO.setResultMessage(ResponseCode.INPUT_CHECK_ERROR.getMessage());
}else {
} else {
int usedCnt = mberManageService.checkIdDplct(checkId);
resultMap.put("usedCnt", usedCnt);
resultMap.put("checkId", checkId);
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
resultVO.setResult(resultMap);

Loading…
Cancel
Save