Commit 6c76fd8d authored by caluka's avatar caluka

STARCLUB_ELIGIBILITY_WORKING table acct_prd condition added for employe[D16ASUN014]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101397 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 76082c5f
...@@ -127,7 +127,8 @@ public class EmpTravelInfoIC extends ValidatorEJB implements EmpTravelInfoICLoca ...@@ -127,7 +127,8 @@ public class EmpTravelInfoIC extends ValidatorEJB implements EmpTravelInfoICLoca
System.out.println(" emp_code :: received ["+empCode +"]"); System.out.println(" emp_code :: received ["+empCode +"]");
if (empCode != null && empCode.trim().length() > 0) if (empCode != null && empCode.trim().length() > 0)
{ {
sql = " select count(*) from STARCLUB_ELIGIBILITY_WORKING where emp_code = ? and (case when active is null then 'N' else active end = 'Y') "; sql = " select count(*) from STARCLUB_ELIGIBILITY_WORKING where emp_code = ? and (case when active is null then 'N' else active end = 'Y') " +
" and acct_prd in (select max(acct_prd) from STARCLUB_ELIGIBILITY_WORKING) ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode); pstmt.setString(1, empCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -759,6 +760,8 @@ public class EmpTravelInfoIC extends ValidatorEJB implements EmpTravelInfoICLoca ...@@ -759,6 +760,8 @@ public class EmpTravelInfoIC extends ValidatorEJB implements EmpTravelInfoICLoca
valueXmlString.append("<count_name>").append("<![CDATA["+ "INDIA" +"]]>").append("</count_name>"); valueXmlString.append("<count_name>").append("<![CDATA["+ "INDIA" +"]]>").append("</count_name>");
valueXmlString.append("<nationality>").append("<![CDATA["+ "INDIAN" +"]]>").append("</nationality>"); valueXmlString.append("<nationality>").append("<![CDATA["+ "INDIAN" +"]]>").append("</nationality>");
valueXmlString.append("<state_code__pass>").append("<![CDATA["+ stateCodePass +"]]>").append("</state_code__pass>"); valueXmlString.append("<state_code__pass>").append("<![CDATA["+ stateCodePass +"]]>").append("</state_code__pass>");
valueXmlString.append("<status>").append("<![CDATA["+ "O" +"]]>").append("</status>");
valueXmlString.append("<status_date>").append("<![CDATA["+currAppdate+"]]>").append("</status_date>");
} }
if (currentColumn.trim().equalsIgnoreCase("item_ser")) if (currentColumn.trim().equalsIgnoreCase("item_ser"))
{ {
......
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