Commit ba99818d authored by akhokar's avatar akhokar

Changes done due to database log not generating in IT Confirmation and Perk Claim without adjust.

HRLogWriter.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@212939 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4f447e2f
...@@ -425,15 +425,46 @@ public class HRLogWriter ...@@ -425,15 +425,46 @@ public class HRLogWriter
System.out.println("File does not exist"); System.out.println("File does not exist");
setLogLocationType("N"); setLogLocationType("N");
} }
//Modified by Azhar K. on[29-11-19][Changes done due to log not generating in IT Confirmation][Start]
if(argStrJobId != null && argStrJobId.trim().length() > 0) if(argStrJobId != null && argStrJobId.trim().length() > 0)
{ {
setLogLocationType("D"); sql = "select count(job_id) as count from background_job where job_id = ?";
pstmt = logConn.prepareStatement(sql);
pstmt.setString(1, argStrJobId);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt("count");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
setLogLocationType("D");
setJobID(argStrJobId);
}
else
{
argStrJobId = "";
}
} }
else /*else
{ {*/
//Modified by Azhar K. on[29-11-19][Changes done due to log not generating in IT Confirmation][End]
System.out.println("getLogLocationType::: ["+getLogLocationType()+"] "); System.out.println("getLogLocationType::: ["+getLogLocationType()+"] ");
if("D".equalsIgnoreCase(getLogLocationType())) //Modified by Azhar K. on[29-11-19][Changes done due to log not generating in IT Confirmation][Start]
//if("D".equalsIgnoreCase(getLogLocationType()))
if("D".equalsIgnoreCase(getLogLocationType()) && (argStrJobId == null || argStrJobId.trim().length() == 0))
//Modified by Azhar K. on[29-11-19][Changes done due to log not generating in IT Confirmation][End]
{ {
System.out.println("Calling createHrJobId()"); System.out.println("Calling createHrJobId()");
argStrJobId = createHrJobId(logConn); argStrJobId = createHrJobId(logConn);
...@@ -466,7 +497,7 @@ public class HRLogWriter ...@@ -466,7 +497,7 @@ public class HRLogWriter
} }
System.out.println("Created Job Id is :: ["+getJobID()+"]"); System.out.println("Created Job Id is :: ["+getJobID()+"]");
} }
} //}// Modified by Azhar K. on[29-11-19][Changes done due to log not generating in IT Confirmation]
if("N".equalsIgnoreCase(getLogLocationType())) if("N".equalsIgnoreCase(getLogLocationType()))
{ {
......
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