Commit fffab3bb authored by vkadam's avatar vkadam

Resolve point :- [If no batch found for any win_name, system is giving error ].


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102789 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 36515872
...@@ -46,7 +46,8 @@ public class BatchLoadIdSpecificSch implements Schedule ...@@ -46,7 +46,8 @@ public class BatchLoadIdSpecificSch implements Schedule
E12GenericUtility genericUtility= new E12GenericUtility(); E12GenericUtility genericUtility= new E12GenericUtility();
System.out.println("scheduleParamXML-----"+scheduleParamXML); System.out.println("scheduleParamXML-----"+scheduleParamXML);
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
Document dom=genericUtility.parseString(scheduleParamXML); Document dom=genericUtility.parseString(scheduleParamXML);
//Condition Added By Manoj 25/01/2013 to load batch Win Name wise. //Condition Added By Manoj 25/01/2013 to load batch Win Name wise.
objName=genericUtility.getColumnValue("ACTUALPARAMETER",dom); objName=genericUtility.getColumnValue("ACTUALPARAMETER",dom);
...@@ -234,6 +235,8 @@ public class BatchLoadIdSpecificSch implements Schedule ...@@ -234,6 +235,8 @@ public class BatchLoadIdSpecificSch implements Schedule
/*Change win_name w_dist_order_mid by Nikhil on dated 15-Jul-16*/ /*Change win_name w_dist_order_mid by Nikhil on dated 15-Jul-16*/
System.out.println("Dist_order map size :- ["+batchIdHashMap.size()+"]"); System.out.println("Dist_order map size :- ["+batchIdHashMap.size()+"]");
batchIdList=batchIdHashMap.get("w_dist_order_mid"); batchIdList=batchIdHashMap.get("w_dist_order_mid");
if(batchIdList!=null)
{
System.out.println("Dist_order batch id list size :- ["+batchIdList.size()+"]"); System.out.println("Dist_order batch id list size :- ["+batchIdList.size()+"]");
/** /**
* Get batch_id from * Get batch_id from
...@@ -273,11 +276,14 @@ public class BatchLoadIdSpecificSch implements Schedule ...@@ -273,11 +276,14 @@ public class BatchLoadIdSpecificSch implements Schedule
} }
} }
batchIdList.clear(); batchIdList.clear();
}
/** /**
* Get batch_id list * Get batch_id list
* according win_name 'w_adj_rcp' * according win_name 'w_adj_rcp'
* */ * */
batchIdList=batchIdHashMap.get("w_adj_rcp"); batchIdList=batchIdHashMap.get("w_adj_rcp");
if(batchIdList!=null)
{
System.out.println("Adj_rcp batch id list size :- ["+batchIdList.size()+"]"); System.out.println("Adj_rcp batch id list size :- ["+batchIdList.size()+"]");
/** /**
* Get batch_id from * Get batch_id from
...@@ -316,11 +322,15 @@ public class BatchLoadIdSpecificSch implements Schedule ...@@ -316,11 +322,15 @@ public class BatchLoadIdSpecificSch implements Schedule
} }
} }
batchIdList.clear(); batchIdList.clear();
}
/** /**
* Get batch_id list * Get batch_id list
* according win_name 'w_dist_issue' * according win_name 'w_dist_issue'
* */ * */
batchIdList=batchIdHashMap.get("w_dist_issue"); batchIdList=batchIdHashMap.get("w_dist_issue");
if(batchIdList!=null)
{
System.out.println("Dist_issue batch id list size :- ["+batchIdList.size()+"]"); System.out.println("Dist_issue batch id list size :- ["+batchIdList.size()+"]");
/** /**
* Get batch_id from * Get batch_id from
...@@ -361,6 +371,7 @@ public class BatchLoadIdSpecificSch implements Schedule ...@@ -361,6 +371,7 @@ public class BatchLoadIdSpecificSch implements Schedule
batchIdList.clear(); batchIdList.clear();
} }
} }
}
catch(Exception e) catch(Exception e)
......
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