Replace CustomerExtrenalInfo.jsp

parent bae16324
......@@ -32,11 +32,15 @@
</head>
<body>
<%
BaseLogger.log("3", null, null, "Customer External Info ");
System.out.println("...@@@@@@@ In CustExtInfo.jsp @@@@@@@@...");
String custCode = request.getParameter("CUST_CODE");
if (custCode == null || custCode.isEmpty()) {
custCode = (String) session.getAttribute("CUST_CODE");
} else {
session.setAttribute("CUST_CODE", custCode);
}
String selectedOption = request.getParameter("idType");
BaseLogger.log("3", null, null, "CustCode [" + custCode + "]");
BaseLogger.log("3", null, null, "Selected Option [" + selectedOption + "]");
......@@ -49,14 +53,12 @@
if ("pan".equals(selectedOption)) {
panNumber = dbAccess.getDBColumnValue("CUSTOMER", "PAN_NO", "CUST_CODE = '" + custCode + "'", userInfo.getTransDB());
BaseLogger.log("3", null, null, "PanNumber:: " + panNumber);
if (panNumber != null && !panNumber.isEmpty()) {
panVerificationResponse = dbAccess.getDBColumnValue("CUST_EXT_INFO", "INFO_RESPONSE", "CUST_CODE = '" + custCode + "' AND INFO_TYPE = 'Pan Verification'", userInfo.getTransDB());
BaseLogger.log("3", null, null, "INFO_RESPONSE Against the Pan:: " + panVerificationResponse);
if (panVerificationResponse == null) {
// Call the API if panVerificationResponse is nullpanVerificationResponse
// Call the API if panVerificationResponse is null
try {
String apiUrl = "https://sandboxapi.atlas.vayana.com/AtlasApi/v1.0/aadhaar/udyam/verification";
URL url = new URL(apiUrl);
......@@ -133,7 +135,7 @@
<% if ("pan".equals(selectedOption)) { %>
<h2>PAN Number</h2>
<p><%= panNumber != null ? panNumber : "No PAN number found for the given customer code." %></p>
<% if (panVerificationResponse != null && !panVerificationResponse.isEmpty()) { %>
<h2>Pan Verification Info Response</h2>
<table id="jsonData">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment