Commit 910acd71 authored by wansari's avatar wansari

updated source 2841 to remove unnecessory pstmt set String from sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104066 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7758fff6
...@@ -2838,17 +2838,18 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -2838,17 +2838,18 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
|| priceList == null) { || priceList == null) {
sql = "select var_value from disparm where prd_code = '999999' and var_name = 'REGULATED_PRICE_LIST'"; sql = "select var_value from disparm where prd_code = '999999' and var_name = 'REGULATED_PRICE_LIST'";
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
pStmt.setString(1, indNo);
rs = pStmt.executeQuery(); rs = pStmt.executeQuery();
if (rs.next()) { if (rs.next()) {
priceList = rs.getString("var_value"); priceList = checkNull(rs.getString("var_value"));
} }
rs.close(); rs.close();
rs = null; rs = null;
pStmt.close(); pStmt.close();
pStmt = null; pStmt = null;
if (priceList.trim().length() > 0) { System.out.println("REGULATED_PRICE_LIST-->PriceList["+priceList+"]");
if (checkNull(priceList).trim().length() > 0) {
} }
errcode = checkrate(dom, conn); errcode = checkrate(dom, conn);
......
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