|
@@ -110,6 +110,131 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 비밀번호 찾기 화면
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return ModelAndView
|
|
|
|
|
+ * @author jsshin
|
|
|
|
|
+ * @since 2021. 02. 05
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/pwd/find/form")
|
|
|
|
|
+ public ModelAndView pwdFindForm() {
|
|
|
|
|
+ ModelAndView mav = new ModelAndView();
|
|
|
|
|
+
|
|
|
|
|
+ mav.setViewName(super.getDeviceViewName("customer/FindPwdForm"));
|
|
|
|
|
+
|
|
|
|
|
+ return mav;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 아이디 찾기
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return ModelAndView
|
|
|
|
|
+ * @author jsshin
|
|
|
|
|
+ * @since 2021. 02. 08
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/pwd/find")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public GagaMap getPwdFind(@RequestBody Customer customer) {
|
|
|
|
|
+ GagaMap result = new GagaMap();
|
|
|
|
|
+ boolean isFind = false;
|
|
|
|
|
+
|
|
|
|
|
+ if (StringUtils.isBlank(customer.getAuthMethod())) {
|
|
|
|
|
+ throw new IllegalStateException("인증방법이 없습니다. <br>관리자에게 문의하시기 바랍니다.");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Customer params = new Customer();
|
|
|
|
|
+ // 인증방법
|
|
|
|
|
+ GagaMap authInfo = null;
|
|
|
|
|
+ if (TscConstants.AuthMethod.CUSTINFO.value().equals(customer.getAuthMethod())) {
|
|
|
|
|
+ // 기본정보
|
|
|
|
|
+ params.setCustId(customer.getCustId());
|
|
|
|
|
+ params.setCustNm(customer.getCustNm());
|
|
|
|
|
+ params.setEmail(customer.getEmail());
|
|
|
|
|
+ } else if (TscConstants.AuthMethod.MOBILE.value().equals(customer.getAuthMethod())) {
|
|
|
|
|
+ // 핸드폰 인증
|
|
|
|
|
+ authInfo = niceCertify.getCertifyCellPhoneResultInfo(customer);
|
|
|
|
|
+ params.setCi(authInfo.getString("sCi"));
|
|
|
|
|
+ } else if (TscConstants.AuthMethod.IPIN.value().equals(customer.getAuthMethod())) {
|
|
|
|
|
+ // 아이핀
|
|
|
|
|
+ authInfo = niceCertify.getCertifyIpinResultInfo(customer);
|
|
|
|
|
+ params.setCi(authInfo.getString("sConnInfo"));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 고객정보 찾기
|
|
|
|
|
+ Customer custInfo = customerService.getCustomerFindId(params);
|
|
|
|
|
+ if (custInfo != null) {
|
|
|
|
|
+ isFind = true;
|
|
|
|
|
+ result.setString("email", custInfo.getEmail());
|
|
|
|
|
+ TscSession.setAttribute("custNo", String.valueOf(custInfo.getCustNo()));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ result.setString("authMethod", customer.getAuthMethod()); // 인증방법
|
|
|
|
|
+ result.setBoolean("isFind", isFind);
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 비밀번호 찾기 화면 - 아이디 확인
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param customer - custId
|
|
|
|
|
+ * @return GagaMap - 결과정보
|
|
|
|
|
+ * @author jsshin
|
|
|
|
|
+ * @since 2021. 02. 10
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/id/check")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public GagaMap getIdCheck(@RequestBody Customer customer) {
|
|
|
|
|
+ GagaMap result = new GagaMap();
|
|
|
|
|
+ boolean isFind = false;
|
|
|
|
|
+
|
|
|
|
|
+ if(StringUtils.isBlank(customer.getCustId())) {
|
|
|
|
|
+ throw new IllegalStateException("확인 할 아이디가 없습니다.");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Customer custInfo = customerService.getCustomerFindId(customer);
|
|
|
|
|
+ if (custInfo != null) {
|
|
|
|
|
+ isFind = true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ result.setBoolean("isFind", isFind);
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 비밀번호 찾기 결과 화면
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param confirmYn - 인증여부
|
|
|
|
|
+ * @return ModelAndView
|
|
|
|
|
+ * @author jsshin
|
|
|
|
|
+ * @since 2021. 02. 05
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/pwd/find/result/form")
|
|
|
|
|
+ public ModelAndView pwdFindResult(@RequestParam(required = false) String confirmYn) {
|
|
|
|
|
+ ModelAndView mav = new ModelAndView();
|
|
|
|
|
+
|
|
|
|
|
+ mav.setViewName(super.getDeviceViewName("customer/FindPwdResultForm"));
|
|
|
|
|
+ return mav;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 회원정보 입력 화면
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return ModelAndView
|
|
|
|
|
+ * @author jsshin
|
|
|
|
|
+ * @since 2021. 02. 05
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/join/form")
|
|
|
|
|
+ public ModelAndView getJoinForm() {
|
|
|
|
|
+ ModelAndView mav = new ModelAndView();
|
|
|
|
|
+
|
|
|
|
|
+ mav.setViewName(super.getDeviceViewName("customer/JoinForm"));
|
|
|
|
|
+ return mav;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 휴대폰 인증 화면
|
|
* 휴대폰 인증 화면
|
|
|
* @param redirectUrl - 모바일사용
|
|
* @param redirectUrl - 모바일사용
|
|
@@ -124,7 +249,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
ModelAndView mav = new ModelAndView();
|
|
|
GagaMap result = niceCertify.certifyCellPhone();
|
|
GagaMap result = niceCertify.certifyCellPhone();
|
|
|
|
|
|
|
|
- if ("M".equals(TsfSession.getFrontGb())) {
|
|
|
|
|
|
|
+ if (TscConstants.FrontGb.MOBIEL.vale().equals(TsfSession.getFrontGb())) {
|
|
|
mav.addObject("redirectUrl", redirectUrl); // 모바일만 사용
|
|
mav.addObject("redirectUrl", redirectUrl); // 모바일만 사용
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -146,8 +271,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
ModelAndView mav = new ModelAndView();
|
|
|
GagaMap result = niceCertify.certifyIpin();
|
|
GagaMap result = niceCertify.certifyIpin();
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- if ("M".equals(TsfSession.getFrontGb())) {
|
|
|
|
|
|
|
+ if (TscConstants.FrontGb.MOBIEL.vale().equals(TsfSession.getFrontGb())) {
|
|
|
mav.addObject("redirectUrl", redirectUrl); // 모바일만 사용
|
|
mav.addObject("redirectUrl", redirectUrl); // 모바일만 사용
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -182,7 +306,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
authMethod = TscConstants.AuthMethod.IPIN.value();
|
|
authMethod = TscConstants.AuthMethod.IPIN.value();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if ("M".equals(TsfSession.getFrontGb())) {
|
|
|
|
|
|
|
+ if (TscConstants.FrontGb.MOBIEL.vale().equals(TsfSession.getFrontGb())) {
|
|
|
mav.addObject("redirectUrl", redirectUrl);
|
|
mav.addObject("redirectUrl", redirectUrl);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -193,54 +317,4 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 비밀번호 찾기 화면
|
|
|
|
|
- *
|
|
|
|
|
- * @return ModelAndView
|
|
|
|
|
- * @author jsshin
|
|
|
|
|
- * @since 2021. 02. 05
|
|
|
|
|
- */
|
|
|
|
|
- @RequestMapping("/pwd/find/form")
|
|
|
|
|
- public ModelAndView pwdFindForm() {
|
|
|
|
|
- ModelAndView mav = new ModelAndView();
|
|
|
|
|
-
|
|
|
|
|
- mav.setViewName(super.getDeviceViewName("customer/FindPwdForm"));
|
|
|
|
|
-
|
|
|
|
|
- return mav;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 비밀번호 찾기 결과 화면
|
|
|
|
|
- *
|
|
|
|
|
- * @param confirmYn - 인증여부
|
|
|
|
|
- * @return ModelAndView
|
|
|
|
|
- * @author jsshin
|
|
|
|
|
- * @since 2021. 02. 05
|
|
|
|
|
- */
|
|
|
|
|
- @GetMapping("/pwd/find/result/form")
|
|
|
|
|
- public ModelAndView pwdFindResult(@RequestParam(required = false) String confirmYn) {
|
|
|
|
|
- ModelAndView mav = new ModelAndView();
|
|
|
|
|
-
|
|
|
|
|
- mav.setViewName(super.getDeviceViewName("customer/FindPwdResultForm"));
|
|
|
|
|
- return mav;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 회원정보 입력 화면
|
|
|
|
|
- *
|
|
|
|
|
- * @return ModelAndView
|
|
|
|
|
- * @author jsshin
|
|
|
|
|
- * @since 2021. 02. 05
|
|
|
|
|
- */
|
|
|
|
|
- @GetMapping("/join/form")
|
|
|
|
|
- public ModelAndView getJoinForm() {
|
|
|
|
|
- ModelAndView mav = new ModelAndView();
|
|
|
|
|
-
|
|
|
|
|
- mav.setViewName(super.getDeviceViewName("customer/JoinForm"));
|
|
|
|
|
- return mav;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|