Commit 273661ad authored by msharma's avatar msharma

sql syntax corrected for workorder_bill updation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97801 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c011e935
...@@ -633,7 +633,7 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo ...@@ -633,7 +633,7 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
upd =0; upd =0;
sql ="update workorder_bill set iss_qty = quantity + nvl(potency_adj,0) , " sql ="update workorder_bill set iss_qty = quantity + nvl(potency_adj,0) , "
+" iss_date = ? where work_order ='"+workOrder+"' and operation ="+operation +" iss_date = ? where work_order ='"+workOrder+"' and operation ="+operation
+"and exp_lev ='"+expLev+"'"; +" and exp_lev ='"+expLev+"'";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1,new Timestamp(System.currentTimeMillis())); pstmt.setTimestamp(1,new Timestamp(System.currentTimeMillis()));
upd = pstmt.executeUpdate(); upd = pstmt.executeUpdate();
...@@ -645,7 +645,7 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo ...@@ -645,7 +645,7 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
upd =0; upd =0;
sql ="update workorder_bill set iss_qty = case when iss_qty is null then 0 else iss_qty end + " + quantity sql ="update workorder_bill set iss_qty = case when iss_qty is null then 0 else iss_qty end + " + quantity
+", iss_date = ? where work_order ='"+workOrder+"' and operation ="+operation +", iss_date = ? where work_order ='"+workOrder+"' and operation ="+operation
+"and exp_lev ='"+expLev+"'"; +" and exp_lev ='"+expLev+"'";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1,new Timestamp(System.currentTimeMillis())); pstmt.setTimestamp(1,new Timestamp(System.currentTimeMillis()));
upd = pstmt.executeUpdate(); upd = pstmt.executeUpdate();
......
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