|
|
|
|
@ -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);
|
|
|
|
|
|