Commit a74a9406 authored by wansari's avatar wansari

W16ASUN024 update if rs.next for checking in swms_to_awms table.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101389 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ee0c4308
...@@ -785,7 +785,7 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -785,7 +785,7 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
rs.close();rs = null; rs.close();rs = null;
pstmt.close();pstmt = null; pstmt.close();pstmt = null;
System.out.println("INV_HOLD_REL["+refId+"] CONFIRMED["+confirmed+"] HOLD_STATUS["+holdStatus+"]"); System.out.println("INV_HOLD_ID["+refId+"] CONFIRMED["+confirmed+"]");
if("Y".equalsIgnoreCase(confirmed)) if("Y".equalsIgnoreCase(confirmed))
{ {
...@@ -805,7 +805,8 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -805,7 +805,8 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
if(refNo != null && refNo.length() > 0) if(refNo != null && refNo.length() > 0)
{ {
sql = "SELECT COUNT(*) FROM SWMS_TO_AWMS WHERE REF_ID = ?"; //sql = "SELECT COUNT(*) FROM SWMS_TO_AWMS WHERE REF_ID = ?";
sql = "SELECT REF_ID FROM SWMS_TO_AWMS WHERE REF_ID = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refNo); pstmt.setString(1, refNo);
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