added Purulia and Mughberia Bank codes in Nabard List
This commit is contained in:
@@ -33,7 +33,7 @@ public class RequestResponse {
|
||||
// String urlFromDatabase = "https://IPKS.cedgenetbanking.in/IPKSTRAN";
|
||||
String urlFromDatabase = "";
|
||||
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";
|
||||
} else {
|
||||
urlFromDatabase = "https://UCBIPKS.cedgeapiservices.in/IPKSTRAN";
|
||||
@@ -156,8 +156,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(7);
|
||||
@@ -172,7 +171,8 @@ public class RequestResponse {
|
||||
} finally {
|
||||
|
||||
try {
|
||||
if (connection != null) connection.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
} catch (SQLException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
@@ -193,8 +193,7 @@ public class RequestResponse {
|
||||
try {
|
||||
connection = Util.getDBConnection();
|
||||
st = connection.createStatement();
|
||||
rs =
|
||||
st.executeQuery(
|
||||
rs = st.executeQuery(
|
||||
"select l.bankcode,l.jrnl_id,l.txn_date from sweep_api_log l where l.txn_date='"
|
||||
+ date
|
||||
+ "'");
|
||||
@@ -228,8 +227,7 @@ public class RequestResponse {
|
||||
continue;
|
||||
}
|
||||
|
||||
query =
|
||||
"insert into sweep_api_log (bankcode, cbsacctno, txncode, txnamt, txnind, narration,"
|
||||
query = "insert into sweep_api_log (bankcode, cbsacctno, txncode, txnamt, txnind, narration,"
|
||||
+ " jrnl_id, txn_date, post_flag, success_flag, errorlog) values ('"
|
||||
+ d.getBankcode()
|
||||
+ "','"
|
||||
@@ -239,8 +237,7 @@ public class RequestResponse {
|
||||
+ "',abs("
|
||||
+ d.getTxnAmt()
|
||||
+ "),'";
|
||||
query =
|
||||
query
|
||||
query = query
|
||||
+ d.getTxnInd()
|
||||
+ "','"
|
||||
+ d.getNarration()
|
||||
@@ -275,7 +272,8 @@ public class RequestResponse {
|
||||
} finally {
|
||||
|
||||
try {
|
||||
if (connection != null) connection.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
} catch (SQLException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
|
Reference in New Issue
Block a user