Bläddra i källkod

다시 수정

jsshin 5 år sedan
förälder
incheckning
23ef70f816

+ 14 - 1
src/main/java/com/style24/front/biz/service/TsfCustomerService.java

@@ -653,5 +653,18 @@ public class TsfCustomerService {
 		}
 	}
 
-
+	/**
+	 * 휴면해제
+	 *
+	 * @param customer - 고객정보
+	 * @return GagaMap - 결과
+	 * @author jsshin
+	 * @since 2021. 03. 08
+	 */
+	public GagaMap releaseDormantCustomer(Customer customer) {
+		GagaMap result = new GagaMap();
+		boolean isRelase = coreCustomerService.saveDormantCustomerRelease(customer);
+		result.setBoolean("isRelase", isRelase);
+		return result;
+	}
 }

+ 18 - 3
src/main/java/com/style24/front/biz/web/TsfCustomerController.java

@@ -382,7 +382,7 @@ public class TsfCustomerController extends TsfBaseController {
 		ModelAndView mav = new ModelAndView();
 		GagaMap result = niceCertify.certifyCellPhone();
 
-		if (TscConstants.FrontGb.MOBIEL.value().equals(TsfSession.getFrontGb())) {
+		if (TscConstants.FrontGb.MOB.value().equals(TsfSession.getFrontGb())) {
 			mav.addObject("redirectUrl", redirectUrl); // 모바일만 사용
 		}
 
@@ -404,7 +404,7 @@ public class TsfCustomerController extends TsfBaseController {
 		ModelAndView mav = new ModelAndView();
 		GagaMap result = niceCertify.certifyIpin();
 
-		if (TscConstants.FrontGb.MOBIEL.value().equals(TsfSession.getFrontGb())) {
+		if (TscConstants.FrontGb.MOB.value().equals(TsfSession.getFrontGb())) {
 			mav.addObject("redirectUrl", redirectUrl); // 모바일만 사용
 		}
 
@@ -439,7 +439,7 @@ public class TsfCustomerController extends TsfBaseController {
 			authMethod = TscConstants.AuthMethod.IPIN.value();
 		}
 
-		if (TscConstants.FrontGb.MOBIEL.value().equals(TsfSession.getFrontGb())) {
+		if (TscConstants.FrontGb.MOB.value().equals(TsfSession.getFrontGb())) {
 			mav.addObject("redirectUrl", redirectUrl);
 		}
 
@@ -678,5 +678,20 @@ public class TsfCustomerController extends TsfBaseController {
 		return mav;
 	}
 
+	/**
+	 * 휴면해제
+	 *
+	 * @return GagaMap - 결과
+	 * @author jsshin
+	 * @since 2021. 03. 08
+	 */
+	@PostMapping("/dormant/release")
+	public GagaMap releaseDormantCustomer(@RequestBody Customer customer) {
+
+		return customerService.releaseDormantCustomer(customer);
+	}
+
+
+
 
 }

+ 15 - 3
src/main/webapp/WEB-INF/views/web/customer/DormantCertifyFormWeb.html

@@ -38,10 +38,14 @@
 					<div class="btn_group_block">
 						<div class="ui_row">
 							<div class="ui_col_6">
-								<button class="btn btn_default btn_block"><span><i class="ico ico_phone"></i>휴대폰인증</span></button>
+								<button type="button" class="btn btn_default btn_block" onclick="cfnOpenCellphoneCertify();">
+									<span><i class="ico ico_phone"></i>휴대폰인증</span>
+								</button>
 							</div>
 							<div class="ui_col_6">
-								<button class="btn btn_default btn_block"><span><i class="ico ico_ipin"></i>아이핀인증</span></button>
+								<button type="button" class="btn btn_default btn_block" onclick="cfnOpenIpinCertify();">
+									<span><i class="ico ico_ipin"></i>아이핀인증</span>
+								</button>
 							</div>
 						</div>
 					</div>
@@ -59,7 +63,15 @@
 
 <script th:inline="javascript">
 /*<![CDATA[*/
-
+// 나이스 본인인증 후 콜백
+	var fnNiceCallBack = function(encData) {
+		if (!gagajf.isNull(encData)) {
+			let custInfo = {};
+			custInfo.encData = encData;
+			let jsonData = JSON.stringify(custInfo);
+			gagajf.ajaxJsonSubmit('/customer/dormnat/release', jsonData, fnInfoConfirmCallBack);
+		}
+	};
 /*]]>*/
 </script>
 

+ 1 - 1
src/main/webapp/WEB-INF/views/web/customer/DormantCertifyResultFormWeb.html

@@ -37,7 +37,7 @@
 					</div>
 					<div class="btn_group_block btn_group_md ui_row">
 						<div class="ui_col_12">
-							<button class="btn btn_dark btn_block"><span>로그인</span></button>
+							<button type="button" class="btn btn_dark btn_block" onclick="cfnGoToPage(_PAGE_LOGIN);"><span>로그인</span></button>
 						</div>
 					</div>
 				</div>