Commit 02864f55 authored by agaikwad's avatar agaikwad

Remove Where keyword is repeated in Sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104767 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 67175348
...@@ -2967,7 +2967,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por ...@@ -2967,7 +2967,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
{ {
sql = " select (case when udf_str1 is null then '' else udf_str1 end)," + sql = " select (case when udf_str1 is null then '' else udf_str1 end)," +
" (case when udf_str2 is null then '' else udf_str2 end) " + " (case when udf_str2 is null then '' else udf_str2 end) " +
" from gencodes where where fld_name = 'ORDER_TYPE' and mod_name = 'W_SORDER' and fld_value = ?"; " from gencodes where fld_name = 'ORDER_TYPE' and mod_name = 'W_SORDER' and fld_value = ?";
pstmt= conn.prepareStatement(sql); pstmt= conn.prepareStatement(sql);
pstmt.setString(1,orderType ); pstmt.setString(1,orderType );
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -3202,7 +3202,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por ...@@ -3202,7 +3202,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
try try
{ {
sql = "select price_list from site_customer where where cust_code = ?"; sql = "select price_list from site_customer where cust_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,custCode); pstmt.setString(1,custCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -3215,7 +3215,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por ...@@ -3215,7 +3215,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
if(priceList == null || priceList.trim().length() == 0) if(priceList == null || priceList.trim().length() == 0)
{ {
sql = "select price_list from customer where where cust_code = ?"; sql = "select price_list from customer where cust_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,custCode); pstmt.setString(1,custCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
......
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