Commit 814a8b4d authored by manohar's avatar manohar

status column in taxenv made within double quote as was giving invalid identifier


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91241 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2f07eb66
...@@ -7505,7 +7505,8 @@ public String getTaxEnv(String stationFrom ,String stationTo, String taxChap, St ...@@ -7505,7 +7505,8 @@ public String getTaxEnv(String stationFrom ,String stationTo, String taxChap, St
// if environment is still not found check on the basis of state code // if environment is still not found check on the basis of state code
if(taxEnv==null || taxEnv.trim().length()==0 ) if(taxEnv==null || taxEnv.trim().length()==0 )
{ {
sql="select state_code from station where stan_code = ? " ; // 03/03/10 manoharan
/*sql="select state_code from station where stan_code = ? " ;
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,stationFrom); pstmt.setString(1,stationFrom);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -7528,7 +7529,8 @@ public String getTaxEnv(String stationFrom ,String stationTo, String taxChap, St ...@@ -7528,7 +7529,8 @@ public String getTaxEnv(String stationFrom ,String stationTo, String taxChap, St
rs.close(); rs.close();
rs=null; rs=null;
pstmt.close(); pstmt.close();
pstmt=null; pstmt=null; */
sql="SELECT tax_env " sql="SELECT tax_env "
+" FROM tenvstan " +" FROM tenvstan "
+" WHERE state_code__fr = ? and " //state code from +" WHERE state_code__fr = ? and " //state code from
...@@ -7669,7 +7671,7 @@ public String getCheckTaxEnvStatus(String taxEnv,Timestamp currDateTs,Connection ...@@ -7669,7 +7671,7 @@ public String getCheckTaxEnvStatus(String taxEnv,Timestamp currDateTs,Connection
{ {
//java.sql.Timestamp fromDateTms = Timestamp.valueOf(genericUtility.getValidDateString(currDateTs.toString(), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); //java.sql.Timestamp fromDateTms = Timestamp.valueOf(genericUtility.getValidDateString(currDateTs.toString(), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
sql="select (case when status is null then 'A' else status end) " sql="select (case when \"STATUS\" is null then 'A' else \"STATUS\" end) "
+" from taxenv " +" from taxenv "
+" where tax_env = ? " +" where tax_env = ? "
+" and status_date <= ? "; +" and status_date <= ? ";
......
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