Commit 205fb129 authored by agaikwad's avatar agaikwad

set resultset object in itemser sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101804 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7f6fc72e
......@@ -8852,7 +8852,8 @@ public class FinCommon
pstmt.setString(8,acctCode);
}
String cctrCode = (String)glTran.get("cctr_code");
if(cctrCode == null || cctrCode.trim().length() == 0){
if(cctrCode == null || cctrCode.trim().length() == 0)
{
pstmt.setNull(9,Types.VARCHAR);
}else{
pstmt.setString(9,cctrCode);
......@@ -10848,7 +10849,9 @@ public class FinCommon
sql="select item_ser from item where item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,siteCodeFrom);
if(rs.next()){
rs=pstmt.executeQuery();
if(rs.next())
{
itemSer=rs.getString(1) ==null ? "" :rs.getString(1).trim();
}
rs.close();
......
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