Commit 30e461df authored by ajadhav's avatar ajadhav

Comment VTPROCUS error and add new error code suitable to logic

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185478 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 91763eb2
...@@ -159,7 +159,8 @@ conn = getConnection(); ...@@ -159,7 +159,8 @@ conn = getConnection();
if (rowsDelete == 0) if (rowsDelete == 0)
{ {
conn.rollback(); conn.rollback();
errCode = "VTPROCUS"; // errCode = "VTPROCUS"; Commented by Ajay on 22/05/18
errCode = "VTDELF";//Add by ajay on 22/05/18
break; break;
} }
stmt1.close();//Gulzar 06/01/07 stmt1.close();//Gulzar 06/01/07
...@@ -176,7 +177,8 @@ conn = getConnection(); ...@@ -176,7 +177,8 @@ conn = getConnection();
else else
{ {
conn.rollback(); conn.rollback();
errCode = "VTPROCUS"; //errCode = "VTPROCUS"; Commented by Ajay on 23/05/18
errCode = "VTRECNF"; //Add by Ajay on 23/05/18
break; break;
} }
stmt1.close();//Gulzar 06/01/07 stmt1.close();//Gulzar 06/01/07
...@@ -233,6 +235,15 @@ conn = getConnection(); ...@@ -233,6 +235,15 @@ conn = getConnection();
stmt1 = null; //Gulzar 06/01/07 stmt1 = null; //Gulzar 06/01/07
System.out.println("Delete Sql ::"+sql2); System.out.println("Delete Sql ::"+sql2);
System.out.println("Rows Deleted ::"+rowsUpdate); System.out.println("Rows Deleted ::"+rowsUpdate);
//Add by Ajay on 24/05/18:START
if (rowsUpdate == 0)
{
conn.rollback();
errCode = "VTFAILD";
break;
}
//Add by Ajay on 24/05/18:END
} }
else else
{ {
...@@ -246,19 +257,30 @@ conn = getConnection(); ...@@ -246,19 +257,30 @@ conn = getConnection();
pstmt = null; //Gulzar 06/01/07 pstmt = null; //Gulzar 06/01/07
System.out.println("The sql of Update Query:"+sql2); System.out.println("The sql of Update Query:"+sql2);
System.out.println("Rows Updated ::"+rowsUpdate); System.out.println("Rows Updated ::"+rowsUpdate);
//Add by Ajay on 24/05/18:START
if (rowsUpdate == 0)
{
conn.rollback();
errCode = "VTUPFAIL";//VTDELF VTPRCSUCNT
break;
} }
//Add by Ajay on 24/05/18:END
} }
if (rowsUpdate == 0) }
//Commented by Ajay on 24/05/18:START
/* if (rowsUpdate == 0)
{ {
conn.rollback(); conn.rollback();
errCode = "VTPROCUS"; errCode = "VTPROCUS";
break; break;
} }*/
//Commented by Ajay on 24/05/18:END
}while (rs.next()); }while (rs.next());
} }
else else
{ {
errCode = "VTPROCUS"; //errCode = "VTPROCUS";Commented by Ajay on 23/05/18
errCode = "VTSUCC1"; //Add by Ajay on 23/05/18
} }
stmt.close(); stmt.close();
stmt = null; stmt = null;
...@@ -274,7 +296,8 @@ conn = getConnection(); ...@@ -274,7 +296,8 @@ conn = getConnection();
if (rows == 0) if (rows == 0)
{ {
conn.rollback(); conn.rollback();
errCode = "VTPROCUS"; //errCode = "VTPROCUS"; Commented by Ajay on 23/05/18
errCode = "VTUPDFAL";//Add by Ajay on 23/05/18
} }
else else
{ {
...@@ -285,7 +308,8 @@ conn = getConnection(); ...@@ -285,7 +308,8 @@ conn = getConnection();
} }
else else
{ {
errCode = "VTPROCUS"; //errCode = "VTPROCUS"; Commented by Ajay on 22/05/18
errCode = "VTBCONF"; //Add by Ajay on 22/05/18
} }
System.out.println("errCode: "+errCode); System.out.println("errCode: "+errCode);
if (errCode != null && errCode.trim().length() > 0) if (errCode != null && errCode.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