added Purulia and Mughberia Bank codes in Nabard List

This commit is contained in:
2025-08-05 12:48:46 +05:30
parent 097dd238a1
commit 21d5948df0

View File

@@ -30,10 +30,10 @@ public class RequestResponse {
public static ArrayList<DataBean> get_response(String jsonInputString, String date) public static ArrayList<DataBean> get_response(String jsonInputString, String date)
throws IOException { throws IOException {
// String urlFromDatabase = "https://IPKS.cedgenetbanking.in/IPKSTRAN"; // String urlFromDatabase = "https://IPKS.cedgenetbanking.in/IPKSTRAN";
String urlFromDatabase = ""; String urlFromDatabase = "";
String bc = new JSONObject(jsonInputString).getString("bankcode"); String bc = new JSONObject(jsonInputString).getString("bankcode");
if(bc.equals("0005") || bc.equals("0021")) { if (bc.equals("0005") || bc.equals("0021") || bc.equals("0016") || bc.equals("0018")) {
urlFromDatabase = "https://NABARDIPKS.cedgeapiservices.in/IPKSTRAN"; urlFromDatabase = "https://NABARDIPKS.cedgeapiservices.in/IPKSTRAN";
} else { } else {
urlFromDatabase = "https://UCBIPKS.cedgeapiservices.in/IPKSTRAN"; urlFromDatabase = "https://UCBIPKS.cedgeapiservices.in/IPKSTRAN";
@@ -156,8 +156,7 @@ public class RequestResponse {
connection = Util.getDBConnection(); connection = Util.getDBConnection();
statement = connection.createStatement(); statement = connection.createStatement();
rs = rs = statement.executeQuery(
statement.executeQuery(
"select * from rupay_kcc_api_map where status='Y' and API_TYPE='TXN'"); "select * from rupay_kcc_api_map where status='Y' and API_TYPE='TXN'");
while (rs.next()) { while (rs.next()) {
url = rs.getString(7); url = rs.getString(7);
@@ -172,7 +171,8 @@ public class RequestResponse {
} finally { } finally {
try { try {
if (connection != null) connection.close(); if (connection != null)
connection.close();
} catch (SQLException e1) { } catch (SQLException e1) {
e1.printStackTrace(); e1.printStackTrace();
} }
@@ -193,8 +193,7 @@ public class RequestResponse {
try { try {
connection = Util.getDBConnection(); connection = Util.getDBConnection();
st = connection.createStatement(); st = connection.createStatement();
rs = rs = st.executeQuery(
st.executeQuery(
"select l.bankcode,l.jrnl_id,l.txn_date from sweep_api_log l where l.txn_date='" "select l.bankcode,l.jrnl_id,l.txn_date from sweep_api_log l where l.txn_date='"
+ date + date
+ "'"); + "'");
@@ -228,8 +227,7 @@ public class RequestResponse {
continue; continue;
} }
query = query = "insert into sweep_api_log (bankcode, cbsacctno, txncode, txnamt, txnind, narration,"
"insert into sweep_api_log (bankcode, cbsacctno, txncode, txnamt, txnind, narration,"
+ " jrnl_id, txn_date, post_flag, success_flag, errorlog) values ('" + " jrnl_id, txn_date, post_flag, success_flag, errorlog) values ('"
+ d.getBankcode() + d.getBankcode()
+ "','" + "','"
@@ -239,8 +237,7 @@ public class RequestResponse {
+ "',abs(" + "',abs("
+ d.getTxnAmt() + d.getTxnAmt()
+ "),'"; + "),'";
query = query = query
query
+ d.getTxnInd() + d.getTxnInd()
+ "','" + "','"
+ d.getNarration() + d.getNarration()
@@ -275,7 +272,8 @@ public class RequestResponse {
} finally { } finally {
try { try {
if (connection != null) connection.close(); if (connection != null)
connection.close();
} catch (SQLException e1) { } catch (SQLException e1) {
e1.printStackTrace(); e1.printStackTrace();
} }