Commit d85a4701 authored by kshinde's avatar kshinde

added condition to check if JV is reversible then check IBCA control

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187270 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 51018833
...@@ -185,6 +185,8 @@ conn = getConnection(); ...@@ -185,6 +185,8 @@ conn = getConnection();
else if(childNodeName.equalsIgnoreCase("site_code__rev")) else if(childNodeName.equalsIgnoreCase("site_code__rev"))
{ {
reverSible = genericUtility.getColumnValue("reversible", dom);
System.out.println("Reversible flag["+reverSible+"]");
siteCodeRev = genericUtility.getColumnValue("site_code__rev", dom); siteCodeRev = genericUtility.getColumnValue("site_code__rev", dom);
siteCode = genericUtility.getColumnValue("site_code", dom); siteCode = genericUtility.getColumnValue("site_code", dom);
if(siteCodeRev == null || (siteCodeRev.length() == 0)) if(siteCodeRev == null || (siteCodeRev.length() == 0))
...@@ -229,6 +231,9 @@ conn = getConnection(); ...@@ -229,6 +231,9 @@ conn = getConnection();
} }
else if((siteCodeRev != null) && (siteCode != null) && (!siteCode.trim().equalsIgnoreCase(siteCodeRev.trim()))) else if((siteCodeRev != null) && (siteCode != null) && (!siteCode.trim().equalsIgnoreCase(siteCodeRev.trim())))
{
//added by kunal on 5/7/2018 to check IBCA control only if reversible is Y
if("Y".equalsIgnoreCase(reverSible))
{ {
sql = "SELECT COUNT(*) FROM IBCA_PAY_CTRL WHERE SITE_CODE__FROM = ? AND SITE_CODE__TO = ?" ; sql = "SELECT COUNT(*) FROM IBCA_PAY_CTRL WHERE SITE_CODE__FROM = ? AND SITE_CODE__TO = ?" ;
System.out.println("sql [" + sql + "]"); System.out.println("sql [" + sql + "]");
...@@ -252,6 +257,7 @@ conn = getConnection(); ...@@ -252,6 +257,7 @@ conn = getConnection();
{ {
pstmt.close(); pstmt.close();
} }
}
} }
} }
......
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