Commit 4f4cf4e0 authored by kmandhre's avatar kmandhre

sun source merge mail by rohan b


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92976 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0c7a427d
......@@ -397,19 +397,25 @@ public class PorcpProcessEJB extends ProcessEJB implements PorcpProcessLocal,Por
System.out.println("*************=siteCode"+siteCode);
}
}
updateSql= " UPDATE PORCP SET TRAN_TYPE = ? WHERE TRAN_ID= ? AND SITE_CODE = ? ";
/* updateSql= " UPDATE PORCP SET TRAN_TYPE = ? WHERE TRAN_ID= ? AND SITE_CODE = ? ";
pstmt = conn.prepareStatement(updateSql);
pstmt.setString(1,tranType);
pstmt.setString(2,tranId);
pstmt.setString(3,siteCode);
count = pstmt.executeUpdate();
conn.commit();
conn.commit(); */
}
tcnt++;
updateSql= " UPDATE PORCP SET TRAN_TYPE = ? WHERE TRAN_ID= ? AND SITE_CODE = ? ";
pstmt = conn.prepareStatement(updateSql);
pstmt.setString(1,tranType);
pstmt.setString(2,tranId);
pstmt.setString(3,siteCode);
count = pstmt.executeUpdate();
conn.commit();
}
if(tcnt > 0)
if(count > 0)
{
System.out.println("******Updated Rows Count="+tcnt);
System.out.println("******Updated Rows Count="+count);
errCode = "PRCESSFUL";
errString = itmDBAccessEJB.getErrorString("","PRCESSFUL",userId);
}
......
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