Commit aea480d8 authored by dpingle's avatar dpingle

* Changes done in IT Ret Adjustment on [11/10/19]

it_ret_adj_proc11.xml
d_itax_ret_adj_proc11.srd
ItRetAdjProcPrc.java
w_it_ret_adj_proc-2019-10-11.sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@209337 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 054d4bd0
ALTER TABLE IT_RETURN_ADJ_TRACE ADD EMP_CODE CHAR(10);
......@@ -96,6 +96,30 @@ public class ItRetAdjProcPrc extends ProcessEJB implements ItRetAdjProcPrcLoca
e.printStackTrace();
throw new ITMException(e);
}
// 11/10/2019.Start
finally
{
System.out.println("Releasing Resources....");
try
{
if(logConn != null)
{
logConn.close();
logConn = null;
}
if(conn != null)
{
conn.close();
conn = null;
}
}
catch(Exception e)
{
errString = e.getMessage();
e.printStackTrace();
}
// 11/10/2019.End
}
return retStr;
}//END OF PROCESS (1)
......@@ -242,7 +266,10 @@ public class ItRetAdjProcPrc extends ProcessEJB implements ItRetAdjProcPrcLoca
pstmtUpdTrace = conn.prepareStatement(sqlStr);
System.out.println("sqlStr5::::"+sqlStr);
sqlStr = "INSERT INTO IT_RETURN_ADJ_TRACE(TRAN_ID, LINE_NO, PRD_CODE__ADJ, AMOUNT_ADJ, TRAN_ID__REF) VALUES (?, ?, ?, ?, ?)";
// 11/10/2019.Start
// sqlStr = "INSERT INTO IT_RETURN_ADJ_TRACE(TRAN_ID, LINE_NO, PRD_CODE__ADJ, AMOUNT_ADJ, TRAN_ID__REF) VALUES (?, ?, ?, ?, ?)";
sqlStr = "INSERT INTO IT_RETURN_ADJ_TRACE(TRAN_ID, LINE_NO, PRD_CODE__ADJ, AMOUNT_ADJ, TRAN_ID__REF, EMP_CODE) VALUES (?, ?, ?, ?, ?, ?)";
// 11/10/2019.End
pstmtInsTrace = conn.prepareStatement(sqlStr);
System.out.println("sqlStr6::::"+sqlStr);
......@@ -413,6 +440,9 @@ public class ItRetAdjProcPrc extends ProcessEJB implements ItRetAdjProcPrcLoca
pstmtInsTrace.setString(3, prdCodeAdj);
pstmtInsTrace.setDouble(4, accessAmt);
pstmtInsTrace.setString(5, tranIdRef);
// 11/10/2019.Start
pstmtInsTrace.setString(6, empCode);
// 11/10/2019.End
int updCnt = pstmtInsTrace.executeUpdate();
pstmtInsTrace.clearParameters();
if(updCnt == 0)
......@@ -503,6 +533,26 @@ public class ItRetAdjProcPrc extends ProcessEJB implements ItRetAdjProcPrcLoca
}
finally
{
// 11/10/2019.Start
System.out.println("Releasing Resources....");
try
{
closeResources(pstmt , rs);
closeResources(pstmt1 , rs1);
closeResources(pstmt2 , rs2);
closeResources(pstmt3 , rs3);
closeResources(pstmt4 , rs4);
closeResources(pstmt5 , rs5);
closeResources(pstmtUpdTrace , null);
closeResources(pstmtInsTrace , null);
closeResources(pstmtUpdAdj , null);
}
catch(Exception e)
{
errString = e.getMessage();
e.printStackTrace();
}
/*
System.out.println("Closing Connection....");
try
{
......@@ -517,6 +567,8 @@ public class ItRetAdjProcPrc extends ProcessEJB implements ItRetAdjProcPrcLoca
errString = e.getMessage();
e.printStackTrace();
}
*/
// 11/10/2019.End
}
if(errString == null || errString.trim().length() == 0)
{
......
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