회원정보변경 메뉴에서 기업회원 기업정보 변경 요청 후 반려되었을 경우 회원 정보 변경 및 취소 할 수 있도록 항목 변경 및 기능 추가
추가
@670b1527ff193c71a2435fa163c12349ad175560
--- src/main/java/itn/let/uat/uia/service/impl/EgovMberManageServiceImpl.java
+++ src/main/java/itn/let/uat/uia/service/impl/EgovMberManageServiceImpl.java
... | ... | @@ -584,4 +584,23 @@ |
| 584 | 584 |
mberManageDAO.insertCertInfoLog(certVO); |
| 585 | 585 |
|
| 586 | 586 |
} |
| 587 |
+ |
|
| 588 |
+ @Override |
|
| 589 |
+ //기업회원 기업정보 변경신청 취소 처리 |
|
| 590 |
+ public int updateCmpUserInfoCancel(MberManageVO mberManageVO) throws Exception{
|
|
| 591 |
+ |
|
| 592 |
+ int resultCnt = 0; |
|
| 593 |
+ |
|
| 594 |
+ try {
|
|
| 595 |
+ |
|
| 596 |
+ resultCnt = mberManageDAO.updateCmpUserInfoCancel(mberManageVO); |
|
| 597 |
+ |
|
| 598 |
+ } catch (Exception e) {
|
|
| 599 |
+ System.out.println("updateCmpUserInfoCancel Service Imple Error!!!" + e);
|
|
| 600 |
+ } |
|
| 601 |
+ |
|
| 602 |
+ return resultCnt; |
|
| 603 |
+ } |
|
| 604 |
+ |
|
| 605 |
+ |
|
| 587 | 606 |
}(No newline at end of file) |
--- src/main/java/itn/let/uat/uia/service/impl/MberManageDAO.java
+++ src/main/java/itn/let/uat/uia/service/impl/MberManageDAO.java
... | ... | @@ -313,4 +313,20 @@ |
| 313 | 313 |
return (List<String>) list("mberManageDAO.selectMemberLoginIpList", mberId);
|
| 314 | 314 |
} |
| 315 | 315 |
|
| 316 |
+ //기업회원 기업정보 변경신청 취소 처리 |
|
| 317 |
+ public int updateCmpUserInfoCancel(MberManageVO mberManageVO) throws Exception{
|
|
| 318 |
+ |
|
| 319 |
+ int resultCnt = 0; |
|
| 320 |
+ |
|
| 321 |
+ try {
|
|
| 322 |
+ |
|
| 323 |
+ resultCnt = update("mberManageDAO.updateCmpUserInfoCancel", mberManageVO);
|
|
| 324 |
+ |
|
| 325 |
+ } catch (Exception e) {
|
|
| 326 |
+ System.out.println("updateCmpUserInfoCancel DAO Error!!!" + e);
|
|
| 327 |
+ } |
|
| 328 |
+ |
|
| 329 |
+ return resultCnt; |
|
| 330 |
+ } |
|
| 331 |
+ |
|
| 316 | 332 |
}(No newline at end of file) |
--- src/main/java/itn/let/uat/uia/web/EgovMypageController.java
+++ src/main/java/itn/let/uat/uia/web/EgovMypageController.java
... | ... | @@ -988,6 +988,50 @@ |
| 988 | 988 |
} |
| 989 | 989 |
return modelAndView; |
| 990 | 990 |
} |
| 991 |
+ |
|
| 992 |
+ |
|
| 993 |
+ /** |
|
| 994 |
+ * 마이페이지 기업정보 변경 취소 처리 |
|
| 995 |
+ */ |
|
| 996 |
+ @RequestMapping(value="/web/user/updateCmpUserInfoCancelAjax.do") |
|
| 997 |
+ public ModelAndView updateCmpUserInfoCancelAjax(@ModelAttribute MberManageVO mberManageVO |
|
| 998 |
+ , HttpServletRequest request |
|
| 999 |
+ , HttpServletResponse response) throws Exception {
|
|
| 1000 |
+ ModelAndView modelAndView = new ModelAndView(); |
|
| 1001 |
+ modelAndView.setViewName("jsonView");
|
|
| 1002 |
+ |
|
| 1003 |
+ LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null; |
|
| 1004 |
+ |
|
| 1005 |
+ if(loginVO == null) {
|
|
| 1006 |
+ |
|
| 1007 |
+ modelAndView.addObject("result", "loginFail");
|
|
| 1008 |
+ |
|
| 1009 |
+ return modelAndView; |
|
| 1010 |
+ } |
|
| 1011 |
+ |
|
| 1012 |
+ try {
|
|
| 1013 |
+ |
|
| 1014 |
+ //취소 회원 아이디 셋팅 |
|
| 1015 |
+ mberManageVO.setLastUpdusrId(loginVO.getId()); |
|
| 1016 |
+ |
|
| 1017 |
+ //기업회원 변경 취소 Update 처리 hstType = 05, hstSttus = 04로 변경 |
|
| 1018 |
+ mberManageService.updateCmpUserInfoCancel(mberManageVO); |
|
| 1019 |
+ |
|
| 1020 |
+ modelAndView.addObject("result", "success");
|
|
| 1021 |
+ |
|
| 1022 |
+ } catch (Exception e) {
|
|
| 1023 |
+ |
|
| 1024 |
+ System.out.println("updateCmpUserInfoCancelAjax Controller Error!!!! " + e);
|
|
| 1025 |
+ |
|
| 1026 |
+ modelAndView.addObject("message", "기업회원 정보변경 취소요청 처리 중 오류가 발생하였습니다.");
|
|
| 1027 |
+ modelAndView.addObject("result", "fail");
|
|
| 1028 |
+ return modelAndView; |
|
| 1029 |
+ } |
|
| 1030 |
+ |
|
| 1031 |
+ return modelAndView; |
|
| 1032 |
+ } |
|
| 1033 |
+ |
|
| 1034 |
+ |
|
| 991 | 1035 |
/* *//** |
| 992 | 1036 |
* 마이페이지 기업정보 변경 |
| 993 | 1037 |
*//* |
--- src/main/java/itn/let/uss/umt/service/EgovMberManageService.java
+++ src/main/java/itn/let/uss/umt/service/EgovMberManageService.java
... | ... | @@ -238,4 +238,7 @@ |
| 238 | 238 |
|
| 239 | 239 |
// 이용정지회원 금일, 금년 잔액 합계 |
| 240 | 240 |
public MberManageVO selectMberStopCashSum(MberManageVO mberManageVO) throws Exception; |
| 241 |
+ |
|
| 242 |
+ //기업회원 기업정보 변경신청 취소 처리 |
|
| 243 |
+ public int updateCmpUserInfoCancel(MberManageVO mberManageVO) throws Exception; |
|
| 241 | 244 |
}(No newline at end of file) |
--- src/main/resources/egovframework/sqlmap/let/uss/umt/EgovMberManage_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/uss/umt/EgovMberManage_SQL_Mysql.xml
... | ... | @@ -1964,4 +1964,15 @@ |
| 1964 | 1964 |
WHERE LOGIN_ID = #mberId# |
| 1965 | 1965 |
AND LOGIN_YN = 'Y' |
| 1966 | 1966 |
</select> |
| 1967 |
+ |
|
| 1968 |
+ <update id="mberManageDAO.updateCmpUserInfoCancel" parameterClass="mberVO"> |
|
| 1969 |
+ |
|
| 1970 |
+ UPDATE LETTNGNRLMBER_CMPHST SET |
|
| 1971 |
+ HST_TYPE = '05' |
|
| 1972 |
+ ,HST_STTUS = '04' |
|
| 1973 |
+ ,LAST_UPDUSR_ID = #lastUpdusrId# |
|
| 1974 |
+ ,LAST_UPDT_PNTTM = NOW() |
|
| 1975 |
+ WHERE CMPHST_ID = #cmpHstId# |
|
| 1976 |
+ |
|
| 1977 |
+ </update> |
|
| 1967 | 1978 |
</sqlMap> |
--- src/main/webapp/WEB-INF/jsp/web/user/mberCompanyInfoChange.jsp
+++ src/main/webapp/WEB-INF/jsp/web/user/mberCompanyInfoChange.jsp
... | ... | @@ -395,11 +395,13 @@ |
| 395 | 395 |
|
| 396 | 396 |
var form = document.updateCmpUserInfoForm; |
| 397 | 397 |
|
| 398 |
- if($("#atFileBasicWrite").val() == ''){
|
|
| 398 |
+ if($("#atFileBasicWrite").val() == ''){
|
|
| 399 | 399 |
alert("사업자등록증을 첨부해주세요.")
|
| 400 | 400 |
return false; |
| 401 | 401 |
} |
| 402 | 402 |
|
| 403 |
+ form.bizNo.value = $("#bizNo").val().replaceAll('-','');
|
|
| 404 |
+ |
|
| 403 | 405 |
if(doubleSubmitFlag3){
|
| 404 | 406 |
alert("이미 재등록하셨습니다.");
|
| 405 | 407 |
return false; |
... | ... | @@ -435,6 +437,39 @@ |
| 435 | 437 |
} |
| 436 | 438 |
|
| 437 | 439 |
} |
| 440 |
+ |
|
| 441 |
+ |
|
| 442 |
+//기업정보 변경 재등록 취소 처리 |
|
| 443 |
+function updateCmpUserReCancel(cmpHstId){
|
|
| 444 |
+ |
|
| 445 |
+ if(!confirm("기업회원 변경을 취소하시겠습니까?")){
|
|
| 446 |
+ return false; |
|
| 447 |
+ } |
|
| 448 |
+ |
|
| 449 |
+ $.ajax({
|
|
| 450 |
+ type : 'POST' |
|
| 451 |
+ ,url : "<c:url value='/web/user/updateCmpUserInfoCancelAjax.do'/>" |
|
| 452 |
+ ,async:false |
|
| 453 |
+ ,data : {"cmpHstId":cmpHstId}
|
|
| 454 |
+ ,dataType:'json' |
|
| 455 |
+ ,success : function(returnData, status){
|
|
| 456 |
+ if(returnData.result == "success") {
|
|
| 457 |
+ alert("기업회원 정보변경 재등록 취소 요청이 처리되었습니다.");
|
|
| 458 |
+ location.href='/web/user/mberInfoIndex.do'; //마이페이지로 이동 |
|
| 459 |
+ } else{
|
|
| 460 |
+ alert(returnData.message); |
|
| 461 |
+ return; |
|
| 462 |
+ } |
|
| 463 |
+ } |
|
| 464 |
+ ,error : function(request , status, error){
|
|
| 465 |
+ alert("기업회원 정보변경 취소요청 처리 중 오류가 발생하였습니다.");
|
|
| 466 |
+ console.log("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
|
| 467 |
+ } |
|
| 468 |
+ }); |
|
| 469 |
+ |
|
| 470 |
+} |
|
| 471 |
+ |
|
| 472 |
+ |
|
| 438 | 473 |
//파일다운로드 |
| 439 | 474 |
function fn_egov_downFile(atchFileId, fileSn){
|
| 440 | 475 |
window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
|
... | ... | @@ -495,8 +530,6 @@ |
| 495 | 530 |
|
| 496 | 531 |
<input type="hidden" name="taxMngEmail" id="taxMngEmail" /> |
| 497 | 532 |
|
| 498 |
- |
|
| 499 |
- |
|
| 500 | 533 |
<div id="passwordCheckPage" style="display: block;"> |
| 501 | 534 |
<!-- 비밀번호 확인 --> |
| 502 | 535 |
<div class="heading"> |
... | ... | @@ -534,7 +567,6 @@ |
| 534 | 567 |
</div> |
| 535 | 568 |
<!--// 비밀번호 확인 --> |
| 536 | 569 |
</div> |
| 537 |
- |
|
| 538 | 570 |
|
| 539 | 571 |
<div id="userInfoPage" style="display: none;"> |
| 540 | 572 |
<!-- 회원정보 변경 --> |
... | ... | @@ -696,9 +728,19 @@ |
| 696 | 728 |
</div> |
| 697 | 729 |
<p class="poe_noti">이메일 및 마케팅 수신 동의 변경은 심사 없이 바로 적용 가능합니다.</p> |
| 698 | 730 |
<div class="mem_btnWrap2 justify"> |
| 731 |
+ <%-- <c:choose> |
|
| 732 |
+ <c:when test="${cmpPhoneChangeManageVO.hstSttus eq '03'}">
|
|
| 733 |
+ <button type="button" class="mem_btn3" onclick="updateUserInfo()" >재등록</button> |
|
| 734 |
+ <button type="button" class="mem_btn3" onclick="updateUserInfoCancel()" >기업회원 변경 취소</button> |
|
| 735 |
+ </c:when> |
|
| 736 |
+ <c:otherwise> |
|
| 737 |
+ <button type="button" class="mem_btn3" onclick="updateUserInfo()" >변경</button> |
|
| 738 |
+ </c:otherwise> |
|
| 739 |
+ </c:choose> --%> |
|
| 740 |
+ |
|
| 699 | 741 |
<button type="button" class="mem_btn3" onclick="updateUserInfo()" > |
| 700 | 742 |
<c:if test="${cmpPhoneChangeManageVO.hstSttus eq '03'}">
|
| 701 |
- 재등록 |
|
| 743 |
+ |
|
| 702 | 744 |
</c:if> |
| 703 | 745 |
<c:if test="${cmpPhoneChangeManageVO.hstSttus ne '03'}">
|
| 704 | 746 |
변경 |
... | ... | @@ -780,10 +822,10 @@ |
| 780 | 822 |
</div> |
| 781 | 823 |
</c:when> |
| 782 | 824 |
<c:when test="${cmpInfoChangeManageVO.hstSttus eq '03'}"><!-- 기업정보 변경 반려상태 -->
|
| 783 |
- <input type="hidden" name="bizType" value="${cmpInfoChangeManageVO.bizType}"/>
|
|
| 825 |
+ <%-- <input type="hidden" name="bizType" value="${cmpInfoChangeManageVO.bizType}"/>
|
|
| 784 | 826 |
<input type="hidden" name="mberNm" value="${cmpInfoChangeManageVO.mberNm}"/>
|
| 785 | 827 |
<input type="hidden" name="ceoNm" value="${cmpInfoChangeManageVO.ceoNm}"/>
|
| 786 |
- <input type="hidden" name="bizNo" value="${cmpInfoChangeManageVO.bizNo}"/>
|
|
| 828 |
+ <input type="hidden" name="bizNo" value="${cmpInfoChangeManageVO.bizNo}"/> --%>
|
|
| 787 | 829 |
<input type="hidden" name="zip" value="${cmpInfoChangeManageVO.zip}"/>
|
| 788 | 830 |
<input type="hidden" name="adres" value="${cmpInfoChangeManageVO.adres}"/>
|
| 789 | 831 |
<input type="hidden" name="detailAdres" value="${cmpInfoChangeManageVO.detailAdres}"/>
|
... | ... | @@ -801,19 +843,22 @@ |
| 801 | 843 |
<div class="input_list_item"> |
| 802 | 844 |
<div class="input_left">기업유형</div> |
| 803 | 845 |
<div class="input_right"> |
| 804 |
- <ec:code codeId="ITN033" code="${cmpInfoChangeManageVO.bizType}" />
|
|
| 846 |
+ <ec:radio name="bizType" id="" codeId="ITN033" selectedValue="${cmpInfoChangeManageVO.bizType}" />
|
|
| 847 |
+ <%-- <ec:code codeId="ITN033" code="${cmpInfoChangeManageVO.bizType}" /> --%>
|
|
| 805 | 848 |
</div> |
| 806 | 849 |
</div> |
| 807 | 850 |
<div class="input_list_item"> |
| 808 | 851 |
<div class="input_left">회사명</div> |
| 809 | 852 |
<div class="input_right"> |
| 810 |
- <c:out value='${cmpInfoChangeManageVO.mberNm}'/>
|
|
| 853 |
+ <input type="text" class="list_inputType1" name="mberNm" value="${cmpInfoChangeManageVO.mberNm}"/>
|
|
| 854 |
+ <%-- <c:out value='${cmpInfoChangeManageVO.mberNm}'/> --%>
|
|
| 811 | 855 |
</div> |
| 812 | 856 |
</div> |
| 813 | 857 |
<div class="input_list_item"> |
| 814 | 858 |
<div class="input_left">대표</div> |
| 815 | 859 |
<div class="input_right"> |
| 816 |
- <c:out value='${cmpInfoChangeManageVO.ceoNm}'/>
|
|
| 860 |
+ <input type="text" class="list_inputType1" name="ceoNm" value="${cmpInfoChangeManageVO.ceoNm}"/>
|
|
| 861 |
+ <%-- <c:out value='${cmpInfoChangeManageVO.ceoNm}'/> --%>
|
|
| 817 | 862 |
</div> |
| 818 | 863 |
</div> |
| 819 | 864 |
<div class="input_list_item"> |
... | ... | @@ -827,7 +872,12 @@ |
| 827 | 872 |
<div class="input_left">사업자등록번호</div> |
| 828 | 873 |
<div class="input_right"> |
| 829 | 874 |
<label for="" class="label">사업자등록번호 입력</label> |
| 830 |
- <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)}'/>
|
|
| 875 |
+ <%-- <input type="text" class="list_inputType1" name="bizNo" value="${cmpInfoChangeManageVO.bizNo}"/> --%>
|
|
| 876 |
+ <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)}"/>
|
|
| 877 |
+ <%-- <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)}'/> --%>
|
|
| 878 |
+ <div class="list_btn_wrap"> |
|
| 879 |
+ <button type="button" onclick="bizNoCheck(); return false;">사업자등록번호 확인</button> |
|
| 880 |
+ </div> |
|
| 831 | 881 |
</div> |
| 832 | 882 |
</div> |
| 833 | 883 |
<div class="input_list_item"> |
... | ... | @@ -872,8 +922,9 @@ |
| 872 | 922 |
</div> |
| 873 | 923 |
</c:if> |
| 874 | 924 |
|
| 875 |
- <div class="mem_btnWrap2 justify"> |
|
| 876 |
- <button type="button" class="mem_btn3" onclick="updateCmpUserRe()" >재등록</button> |
|
| 925 |
+ <div class="mem_btnWrap3 justify"> |
|
| 926 |
+ <button type="button" class="mem_btn5" onclick="updateCmpUserRe();" >재등록</button> |
|
| 927 |
+ <button type="button" class="mem_btn4" onclick="updateCmpUserReCancel('<c:out value="${cmpInfoChangeManageVO.cmpHstId}"/>');" >재등록 취소</button>
|
|
| 877 | 928 |
</div> |
| 878 | 929 |
</div> |
| 879 | 930 |
</div> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?