|
|
@@ -1,5 +1,7 @@
|
|
|
package com.style24.admin.biz.web;
|
|
|
|
|
|
+import java.net.URLDecoder;
|
|
|
+import java.net.URLEncoder;
|
|
|
import java.util.Collection;
|
|
|
|
|
|
import com.gagaframework.web.parameter.GagaMap;
|
|
|
@@ -42,6 +44,8 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
import com.gagaframework.web.rest.server.GagaResponse;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+
|
|
|
/**
|
|
|
* 영업관리 Controller
|
|
|
*
|
|
|
@@ -865,20 +869,31 @@ public class TsaBusinessController extends TsaBaseController {
|
|
|
* @author jsshin
|
|
|
* @since 2021. 06. 14
|
|
|
*/
|
|
|
- @RequestMapping("/account/check")
|
|
|
+ @PostMapping("/account/check")
|
|
|
@ResponseBody
|
|
|
- public GagaMap getAccountCheck(@RequestBody CustAccount custAccount) {
|
|
|
+ public GagaMap getAccountCheck(@RequestBody CustAccount custAccount, HttpServletRequest request) {
|
|
|
custAccount.setIpAddress(TscSession.getIpAddress());
|
|
|
boolean isValid = false;
|
|
|
+ log.info("characterEncoding ===> {}", request.getCharacterEncoding());
|
|
|
+ String accountNm = "";
|
|
|
+ try {
|
|
|
+// accountNm = URLEncoder.encode(custAccount.getAccountNm(), "UTF-8");
|
|
|
+// accountNm = URLDecoder.decode(custAccount.getAccountNm(), "EUC-KR");
|
|
|
+// accountNm = URLEncoder.encode(custAccount.getAccountNm(), "EUC-KR");
|
|
|
+
|
|
|
+// custAccount.setAccountNm(accountNm);
|
|
|
+ } catch (Exception e) {
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
- log.info("custAccount.getAccountNm() ::: {}",custAccount.getAccountNm());
|
|
|
+ log.info("custAccount.getAccountNm() ::: {}", custAccount.getAccountNm());
|
|
|
log.info("custAccount.getBankCd() ::: {}",custAccount.getBankCd());
|
|
|
log.info("custAccount.getAccountNo() ::: {}",custAccount.getAccountNo());
|
|
|
-
|
|
|
GagaMap result = coreKcpService.checkAccount(custAccount);
|
|
|
if ("0000".equals(result.get("resCd"))) {
|
|
|
isValid = true;
|
|
|
}
|
|
|
+
|
|
|
result.set("isValid", isValid);
|
|
|
return result;
|
|
|
}
|