added purulia and Mughberia to Nabard bank list

This commit is contained in:
2025-08-05 12:26:35 +05:30
parent 6c4249b49b
commit cbaee03e06

View File

@@ -45,7 +45,7 @@ public class RequestResponse {
input1 = Scheduler.class.getClass().getResourceAsStream("/Properties.properties");
prop.load(input1);
if(bc.equals("0005") || bc.equals("0021")) {
if (bc.equals("0005") || bc.equals("0021") || bc.equals("0016") || bc.equals("0018")) {
apiURL = prop.getProperty("APIURL_NABARD");
} else {
apiURL = prop.getProperty("APIURL_UCB");
@@ -105,7 +105,8 @@ public class RequestResponse {
byte[] input = jsonInputString.getBytes("utf-8");
os.write(input, 0, input.length);
} finally {
if (os != null) os.close();
if (os != null)
os.close();
}
} finally {
exception2 = null;
@@ -314,8 +315,7 @@ public class RequestResponse {
connection = Util.getDBConnection();
statement = connection.createStatement();
rs =
statement.executeQuery(
rs = statement.executeQuery(
"select * from rupay_kcc_api_map where status='Y' and API_TYPE='TXN'");
while (rs.next()) {
url = rs.getString(8);
@@ -333,7 +333,8 @@ public class RequestResponse {
} finally {
try {
if (connection != null) connection.close();
if (connection != null)
connection.close();
} catch (SQLException e1) {
log.error(
String.valueOf(e1.getMessage()) + " error in request response class on line no 374");
@@ -362,8 +363,7 @@ public class RequestResponse {
connection = Util.getDBConnection();
statement = connection.createStatement();
rs =
statement.executeQuery(
rs = statement.executeQuery(
"select * from rupay_kcc_api_map where status='Y' and API_TYPE='TXN'");
while (rs.next()) {
url = rs.getString(8);
@@ -381,7 +381,8 @@ public class RequestResponse {
} finally {
try {
if (connection != null) connection.close();
if (connection != null)
connection.close();
} catch (SQLException e1) {
log.error(
String.valueOf(e1.getMessage()) + " error in request response class on line no 383");
@@ -403,15 +404,13 @@ public class RequestResponse {
connection = Util.getDBConnection();
st = connection.createStatement();
rs =
st.executeQuery(
rs = st.executeQuery(
"select l.bankcode,l.jrnl_id,l.tran_date from ach_api_log l where l.tran_date='"
+ date
+ "'");
while (rs.next()) {
String comb =
String.valueOf(rs.getString(1)) + "|" + rs.getString(2) + "|" + rs.getString(3);
String comb = String.valueOf(rs.getString(1)) + "|" + rs.getString(2) + "|" + rs.getString(3);
combination.add(comb);
}
@@ -439,8 +438,7 @@ public class RequestResponse {
continue;
}
query =
"insert into ach_api_log(narration,status,bankcode,jrnl_id, tran_date, cbs_acct,"
query = "insert into ach_api_log(narration,status,bankcode,jrnl_id, tran_date, cbs_acct,"
+ " tran_amt,TXNIND) values ('"
+ d.getNarration()
+ "','"
@@ -454,8 +452,7 @@ public class RequestResponse {
+ "','"
+ d.getAcctno()
+ "',";
query =
String.valueOf(query)
query = String.valueOf(query)
+ "abs("
+ d.getTrnamt()
+ "),(case when to_number("
@@ -478,7 +475,8 @@ public class RequestResponse {
} finally {
try {
if (connection != null) connection.close();
if (connection != null)
connection.close();
} catch (SQLException e1) {
log.error(
String.valueOf(e1.getMessage()) + " error in request response class on line no 358");
@@ -497,8 +495,7 @@ public class RequestResponse {
connection = Util.getDBConnection();
st = connection.createStatement();
query =
"insert into neft_rtgs_dbtl_api_error_log"
query = "insert into neft_rtgs_dbtl_api_error_log"
+ " (bank_code,proc_date,proc_time,api_type,error_msg,error_at) values('"
+ bankcode
+ "','"
@@ -529,7 +526,8 @@ public class RequestResponse {
} finally {
try {
if (connection != null) connection.close();
if (connection != null)
connection.close();
} catch (SQLException e1) {
log.error(
String.valueOf(e1.getMessage()) + " error in request response class on line no 91 ");
@@ -548,8 +546,7 @@ public class RequestResponse {
connection = Util.getDBConnectionforAPI();
st = connection.createStatement();
query =
"insert into neft_rtgs_dbtl_api_error_log"
query = "insert into neft_rtgs_dbtl_api_error_log"
+ " (bank_code,proc_date,proc_time,api_type,error_msg,error_at) values('"
+ bankcode
+ "','"
@@ -580,7 +577,8 @@ public class RequestResponse {
} finally {
try {
if (connection != null) connection.close();
if (connection != null)
connection.close();
} catch (SQLException e1) {
log.error(
String.valueOf(e1.getMessage()) + " error in request response class on line no 527 ");
@@ -601,15 +599,13 @@ public class RequestResponse {
connection = Util.getDBConnectionforAPI();
st = connection.createStatement();
rs =
st.executeQuery(
rs = st.executeQuery(
"select l.bankcode,l.jrnl_id,l.tran_date from ach_api_log l where l.tran_date='"
+ date
+ "'");
while (rs.next()) {
String comb =
String.valueOf(rs.getString(1)) + "|" + rs.getString(2) + "|" + rs.getString(3);
String comb = String.valueOf(rs.getString(1)) + "|" + rs.getString(2) + "|" + rs.getString(3);
combination1.add(comb);
}
@@ -637,8 +633,7 @@ public class RequestResponse {
continue;
}
query =
"insert into ach_api_log(narration,status,bankcode,jrnl_id, tran_date, cbs_acct,"
query = "insert into ach_api_log(narration,status,bankcode,jrnl_id, tran_date, cbs_acct,"
+ " tran_amt,TXNIND) values ('"
+ d.getNarration()
+ "','"
@@ -652,8 +647,7 @@ public class RequestResponse {
+ "','"
+ d.getAcctno()
+ "',";
query =
String.valueOf(query)
query = String.valueOf(query)
+ "abs("
+ d.getTrnamt()
+ "),(case when to_number("
@@ -680,7 +674,8 @@ public class RequestResponse {
} finally {
try {
if (connection != null) connection.close();
if (connection != null)
connection.close();
} catch (SQLException e1) {
log.error(
String.valueOf(e1.getMessage()) + " error in request response class on line no 601 ");