Commit c1255347 authored by vdhoble's avatar vdhoble

Changes in select query for wf_status for D15CSUN014


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98208 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c6a1b445
......@@ -46,11 +46,9 @@ public class POrderMilestone extends ValidatorEJB {
PreparedStatement pstmt = null,pstmt1 = null,pstmt2 = null;
ResultSet rs=null,rs2=null;
int ctr=0;
int currentFormNo=0;
int childNodeListLength;
String childNodeName = null,sqlMax = "",tranIdPending = "";
Timestamp dueDateHeader = null,reschDate = null;
ConnDriver connDriver = new ConnDriver();
Timestamp complDateNew = null,dueDateOrg = null;
String retString = "SUCCESS";
String sqlResch ="";
......@@ -116,7 +114,7 @@ public class POrderMilestone extends ValidatorEJB {
/**selecting pending tasks from header table **inserting records after rescheduling due dates in detail table***/
sqlResch = "Insert into pur_milstn_resch (TRAN_ID,LINE_NO,DELAY_DAYS,TASK_CODE__DELAY,DUE_DATE_ORG,DUE_DATE_RESCH) values (?,?,?,?,?,?)";
sql = "select task_code,due_date,tran_id from pur_milstn where purc_order in(select purc_order from pur_milstn where tran_id = ?) and task_status = 'P'";
sql = "select task_code,due_date,tran_id from pur_milstn where purc_order in(select purc_order from pur_milstn where tran_id = ?) and wf_status <> 'C'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);
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