회원정보변경 메뉴에서 기업회원 기업정보 변경 요청 후 반려되었을 경우 회원 정보 변경 및 취소 할 수 있도록 항목 변경 및 기능
추가
This commit is contained in:
parent
5b843d66b5
commit
670b1527ff
@ -584,4 +584,23 @@ public class EgovMberManageServiceImpl extends EgovAbstractServiceImpl implement
|
|||||||
mberManageDAO.insertCertInfoLog(certVO);
|
mberManageDAO.insertCertInfoLog(certVO);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
//기업회원 기업정보 변경신청 취소 처리
|
||||||
|
public int updateCmpUserInfoCancel(MberManageVO mberManageVO) throws Exception{
|
||||||
|
|
||||||
|
int resultCnt = 0;
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
resultCnt = mberManageDAO.updateCmpUserInfoCancel(mberManageVO);
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println("updateCmpUserInfoCancel Service Imple Error!!!" + e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return resultCnt;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -313,4 +313,20 @@ public class MberManageDAO extends EgovComAbstractDAO{
|
|||||||
return (List<String>) list("mberManageDAO.selectMemberLoginIpList", mberId);
|
return (List<String>) list("mberManageDAO.selectMemberLoginIpList", mberId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//기업회원 기업정보 변경신청 취소 처리
|
||||||
|
public int updateCmpUserInfoCancel(MberManageVO mberManageVO) throws Exception{
|
||||||
|
|
||||||
|
int resultCnt = 0;
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
resultCnt = update("mberManageDAO.updateCmpUserInfoCancel", mberManageVO);
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println("updateCmpUserInfoCancel DAO Error!!!" + e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return resultCnt;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -988,6 +988,50 @@ public class EgovMypageController {
|
|||||||
}
|
}
|
||||||
return modelAndView;
|
return modelAndView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 마이페이지 기업정보 변경 취소 처리
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="/web/user/updateCmpUserInfoCancelAjax.do")
|
||||||
|
public ModelAndView updateCmpUserInfoCancelAjax(@ModelAttribute MberManageVO mberManageVO
|
||||||
|
, HttpServletRequest request
|
||||||
|
, HttpServletResponse response) throws Exception {
|
||||||
|
ModelAndView modelAndView = new ModelAndView();
|
||||||
|
modelAndView.setViewName("jsonView");
|
||||||
|
|
||||||
|
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
||||||
|
|
||||||
|
if(loginVO == null) {
|
||||||
|
|
||||||
|
modelAndView.addObject("result", "loginFail");
|
||||||
|
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
//취소 회원 아이디 셋팅
|
||||||
|
mberManageVO.setLastUpdusrId(loginVO.getId());
|
||||||
|
|
||||||
|
//기업회원 변경 취소 Update 처리 hstType = 05, hstSttus = 04로 변경
|
||||||
|
mberManageService.updateCmpUserInfoCancel(mberManageVO);
|
||||||
|
|
||||||
|
modelAndView.addObject("result", "success");
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
|
||||||
|
System.out.println("updateCmpUserInfoCancelAjax Controller Error!!!! " + e);
|
||||||
|
|
||||||
|
modelAndView.addObject("message", "기업회원 정보변경 취소요청 처리 중 오류가 발생하였습니다.");
|
||||||
|
modelAndView.addObject("result", "fail");
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
|
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* *//**
|
/* *//**
|
||||||
* 마이페이지 기업정보 변경
|
* 마이페이지 기업정보 변경
|
||||||
*//*
|
*//*
|
||||||
|
|||||||
@ -238,4 +238,7 @@ public interface EgovMberManageService {
|
|||||||
|
|
||||||
// 이용정지회원 금일, 금년 잔액 합계
|
// 이용정지회원 금일, 금년 잔액 합계
|
||||||
public MberManageVO selectMberStopCashSum(MberManageVO mberManageVO) throws Exception;
|
public MberManageVO selectMberStopCashSum(MberManageVO mberManageVO) throws Exception;
|
||||||
|
|
||||||
|
//기업회원 기업정보 변경신청 취소 처리
|
||||||
|
public int updateCmpUserInfoCancel(MberManageVO mberManageVO) throws Exception;
|
||||||
}
|
}
|
||||||
@ -1964,4 +1964,15 @@
|
|||||||
WHERE LOGIN_ID = #mberId#
|
WHERE LOGIN_ID = #mberId#
|
||||||
AND LOGIN_YN = 'Y'
|
AND LOGIN_YN = 'Y'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<update id="mberManageDAO.updateCmpUserInfoCancel" parameterClass="mberVO">
|
||||||
|
|
||||||
|
UPDATE LETTNGNRLMBER_CMPHST SET
|
||||||
|
HST_TYPE = '05'
|
||||||
|
,HST_STTUS = '04'
|
||||||
|
,LAST_UPDUSR_ID = #lastUpdusrId#
|
||||||
|
,LAST_UPDT_PNTTM = NOW()
|
||||||
|
WHERE CMPHST_ID = #cmpHstId#
|
||||||
|
|
||||||
|
</update>
|
||||||
</sqlMap>
|
</sqlMap>
|
||||||
|
|||||||
@ -395,11 +395,13 @@ function updateCmpUserRe(){
|
|||||||
|
|
||||||
var form = document.updateCmpUserInfoForm;
|
var form = document.updateCmpUserInfoForm;
|
||||||
|
|
||||||
if($("#atFileBasicWrite").val() == ''){
|
if($("#atFileBasicWrite").val() == ''){
|
||||||
alert("사업자등록증을 첨부해주세요.")
|
alert("사업자등록증을 첨부해주세요.")
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
form.bizNo.value = $("#bizNo").val().replaceAll('-','');
|
||||||
|
|
||||||
if(doubleSubmitFlag3){
|
if(doubleSubmitFlag3){
|
||||||
alert("이미 재등록하셨습니다.");
|
alert("이미 재등록하셨습니다.");
|
||||||
return false;
|
return false;
|
||||||
@ -435,6 +437,39 @@ function updateCmpUserRe(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//기업정보 변경 재등록 취소 처리
|
||||||
|
function updateCmpUserReCancel(cmpHstId){
|
||||||
|
|
||||||
|
if(!confirm("기업회원 변경을 취소하시겠습니까?")){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type : 'POST'
|
||||||
|
,url : "<c:url value='/web/user/updateCmpUserInfoCancelAjax.do'/>"
|
||||||
|
,async:false
|
||||||
|
,data : {"cmpHstId":cmpHstId}
|
||||||
|
,dataType:'json'
|
||||||
|
,success : function(returnData, status){
|
||||||
|
if(returnData.result == "success") {
|
||||||
|
alert("기업회원 정보변경 재등록 취소 요청이 처리되었습니다.");
|
||||||
|
location.href='/web/user/mberInfoIndex.do'; //마이페이지로 이동
|
||||||
|
} else{
|
||||||
|
alert(returnData.message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
,error : function(request , status, error){
|
||||||
|
alert("기업회원 정보변경 취소요청 처리 중 오류가 발생하였습니다.");
|
||||||
|
console.log("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//파일다운로드
|
//파일다운로드
|
||||||
function fn_egov_downFile(atchFileId, fileSn){
|
function fn_egov_downFile(atchFileId, fileSn){
|
||||||
window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
|
window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
|
||||||
@ -495,8 +530,6 @@ function changeValueWork(obj){
|
|||||||
|
|
||||||
<input type="hidden" name="taxMngEmail" id="taxMngEmail" />
|
<input type="hidden" name="taxMngEmail" id="taxMngEmail" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="passwordCheckPage" style="display: block;">
|
<div id="passwordCheckPage" style="display: block;">
|
||||||
<!-- 비밀번호 확인 -->
|
<!-- 비밀번호 확인 -->
|
||||||
<div class="heading">
|
<div class="heading">
|
||||||
@ -535,7 +568,6 @@ function changeValueWork(obj){
|
|||||||
<!--// 비밀번호 확인 -->
|
<!--// 비밀번호 확인 -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="userInfoPage" style="display: none;">
|
<div id="userInfoPage" style="display: none;">
|
||||||
<!-- 회원정보 변경 -->
|
<!-- 회원정보 변경 -->
|
||||||
<div class="heading">
|
<div class="heading">
|
||||||
@ -696,9 +728,19 @@ function changeValueWork(obj){
|
|||||||
</div>
|
</div>
|
||||||
<p class="poe_noti">이메일 및 마케팅 수신 동의 변경은 심사 없이 바로 적용 가능합니다.</p>
|
<p class="poe_noti">이메일 및 마케팅 수신 동의 변경은 심사 없이 바로 적용 가능합니다.</p>
|
||||||
<div class="mem_btnWrap2 justify">
|
<div class="mem_btnWrap2 justify">
|
||||||
|
<%-- <c:choose>
|
||||||
|
<c:when test="${cmpPhoneChangeManageVO.hstSttus eq '03'}">
|
||||||
|
<button type="button" class="mem_btn3" onclick="updateUserInfo()" >재등록</button>
|
||||||
|
<button type="button" class="mem_btn3" onclick="updateUserInfoCancel()" >기업회원 변경 취소</button>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<button type="button" class="mem_btn3" onclick="updateUserInfo()" >변경</button>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose> --%>
|
||||||
|
|
||||||
<button type="button" class="mem_btn3" onclick="updateUserInfo()" >
|
<button type="button" class="mem_btn3" onclick="updateUserInfo()" >
|
||||||
<c:if test="${cmpPhoneChangeManageVO.hstSttus eq '03'}">
|
<c:if test="${cmpPhoneChangeManageVO.hstSttus eq '03'}">
|
||||||
재등록
|
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${cmpPhoneChangeManageVO.hstSttus ne '03'}">
|
<c:if test="${cmpPhoneChangeManageVO.hstSttus ne '03'}">
|
||||||
변경
|
변경
|
||||||
@ -780,10 +822,10 @@ function changeValueWork(obj){
|
|||||||
</div>
|
</div>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:when test="${cmpInfoChangeManageVO.hstSttus eq '03'}"><!-- 기업정보 변경 반려상태 -->
|
<c:when test="${cmpInfoChangeManageVO.hstSttus eq '03'}"><!-- 기업정보 변경 반려상태 -->
|
||||||
<input type="hidden" name="bizType" value="${cmpInfoChangeManageVO.bizType}"/>
|
<%-- <input type="hidden" name="bizType" value="${cmpInfoChangeManageVO.bizType}"/>
|
||||||
<input type="hidden" name="mberNm" value="${cmpInfoChangeManageVO.mberNm}"/>
|
<input type="hidden" name="mberNm" value="${cmpInfoChangeManageVO.mberNm}"/>
|
||||||
<input type="hidden" name="ceoNm" value="${cmpInfoChangeManageVO.ceoNm}"/>
|
<input type="hidden" name="ceoNm" value="${cmpInfoChangeManageVO.ceoNm}"/>
|
||||||
<input type="hidden" name="bizNo" value="${cmpInfoChangeManageVO.bizNo}"/>
|
<input type="hidden" name="bizNo" value="${cmpInfoChangeManageVO.bizNo}"/> --%>
|
||||||
<input type="hidden" name="zip" value="${cmpInfoChangeManageVO.zip}"/>
|
<input type="hidden" name="zip" value="${cmpInfoChangeManageVO.zip}"/>
|
||||||
<input type="hidden" name="adres" value="${cmpInfoChangeManageVO.adres}"/>
|
<input type="hidden" name="adres" value="${cmpInfoChangeManageVO.adres}"/>
|
||||||
<input type="hidden" name="detailAdres" value="${cmpInfoChangeManageVO.detailAdres}"/>
|
<input type="hidden" name="detailAdres" value="${cmpInfoChangeManageVO.detailAdres}"/>
|
||||||
@ -801,19 +843,22 @@ function changeValueWork(obj){
|
|||||||
<div class="input_list_item">
|
<div class="input_list_item">
|
||||||
<div class="input_left">기업유형</div>
|
<div class="input_left">기업유형</div>
|
||||||
<div class="input_right">
|
<div class="input_right">
|
||||||
<ec:code codeId="ITN033" code="${cmpInfoChangeManageVO.bizType}" />
|
<ec:radio name="bizType" id="" codeId="ITN033" selectedValue="${cmpInfoChangeManageVO.bizType}" />
|
||||||
|
<%-- <ec:code codeId="ITN033" code="${cmpInfoChangeManageVO.bizType}" /> --%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input_list_item">
|
<div class="input_list_item">
|
||||||
<div class="input_left">회사명</div>
|
<div class="input_left">회사명</div>
|
||||||
<div class="input_right">
|
<div class="input_right">
|
||||||
<c:out value='${cmpInfoChangeManageVO.mberNm}'/>
|
<input type="text" class="list_inputType1" name="mberNm" value="${cmpInfoChangeManageVO.mberNm}"/>
|
||||||
|
<%-- <c:out value='${cmpInfoChangeManageVO.mberNm}'/> --%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input_list_item">
|
<div class="input_list_item">
|
||||||
<div class="input_left">대표</div>
|
<div class="input_left">대표</div>
|
||||||
<div class="input_right">
|
<div class="input_right">
|
||||||
<c:out value='${cmpInfoChangeManageVO.ceoNm}'/>
|
<input type="text" class="list_inputType1" name="ceoNm" value="${cmpInfoChangeManageVO.ceoNm}"/>
|
||||||
|
<%-- <c:out value='${cmpInfoChangeManageVO.ceoNm}'/> --%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input_list_item">
|
<div class="input_list_item">
|
||||||
@ -827,7 +872,12 @@ function changeValueWork(obj){
|
|||||||
<div class="input_left">사업자등록번호</div>
|
<div class="input_left">사업자등록번호</div>
|
||||||
<div class="input_right">
|
<div class="input_right">
|
||||||
<label for="" class="label">사업자등록번호 입력</label>
|
<label for="" class="label">사업자등록번호 입력</label>
|
||||||
<c:out value='${fn:substring(cmpInfoChangeManageVO.bizNo, 0, 3)}'/>-<c:out value='${fn:substring(cmpInfoChangeManageVO.bizNo, 3, 5)}'/>-<c:out value='${fn:substring(cmpInfoChangeManageVO.bizNo, 5, 10)}'/>
|
<%-- <input type="text" class="list_inputType1" name="bizNo" value="${cmpInfoChangeManageVO.bizNo}"/> --%>
|
||||||
|
<input type="text" class="list_inputType1" name="bizNo" id="bizNo" maxlength="12" value="${fn:substring(cmpInfoChangeManageVO.bizNo, 0, 3)}-${fn:substring(cmpInfoChangeManageVO.bizNo, 3, 5)}-${fn:substring(cmpInfoChangeManageVO.bizNo, 5, 10)}"/>
|
||||||
|
<%-- <c:out value='${fn:substring(cmpInfoChangeManageVO.bizNo, 0, 3)}'/>-<c:out value='${fn:substring(cmpInfoChangeManageVO.bizNo, 3, 5)}'/>-<c:out value='${fn:substring(cmpInfoChangeManageVO.bizNo, 5, 10)}'/> --%>
|
||||||
|
<div class="list_btn_wrap">
|
||||||
|
<button type="button" onclick="bizNoCheck(); return false;">사업자등록번호 확인</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input_list_item">
|
<div class="input_list_item">
|
||||||
@ -872,8 +922,9 @@ function changeValueWork(obj){
|
|||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
<div class="mem_btnWrap2 justify">
|
<div class="mem_btnWrap3 justify">
|
||||||
<button type="button" class="mem_btn3" onclick="updateCmpUserRe()" >재등록</button>
|
<button type="button" class="mem_btn5" onclick="updateCmpUserRe();" >재등록</button>
|
||||||
|
<button type="button" class="mem_btn4" onclick="updateCmpUserReCancel('<c:out value="${cmpInfoChangeManageVO.cmpHstId}"/>');" >재등록 취소</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user