Commit d53156ea authored by sbalip's avatar sbalip

changes to get only latest added tagged location[17-Oct-18]

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192094 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3a4a77f0
...@@ -115,6 +115,7 @@ public class VarianceReportMR extends ValidatorEJB implements VarianceReportMRLo ...@@ -115,6 +115,7 @@ public class VarianceReportMR extends ValidatorEJB implements VarianceReportMRLo
"AND sm.event_type ='FW' "+ "AND sm.event_type ='FW' "+
"AND employee.emp_code = sm.sales_pers "+ "AND employee.emp_code = sm.sales_pers "+
"AND sm.strg_type = custype.type "+ "AND sm.strg_type = custype.type "+
"AND pte.CHG_DATE = (SELECT MAX(CHG_DATE) FROM PLACE_TIME_ENT WHERE ENTITY_CODE = sm.strg_code) "+ //Added by Sagar B. to get only latest added tagged location[17-Oct-18]
"ORDER BY sm.event_date"; "ORDER BY sm.event_date";
mStatement = mConnection.prepareStatement(query); mStatement = mConnection.prepareStatement(query);
mStatement.setDate(1, java.sql.Date.valueOf(fromDateStr) ); mStatement.setDate(1, java.sql.Date.valueOf(fromDateStr) );
...@@ -196,6 +197,7 @@ public class VarianceReportMR extends ValidatorEJB implements VarianceReportMRLo ...@@ -196,6 +197,7 @@ public class VarianceReportMR extends ValidatorEJB implements VarianceReportMRLo
" AND sm.event_type ='FW' "+ " AND sm.event_type ='FW' "+
"AND employee.emp_code = sm.sales_pers "+ "AND employee.emp_code = sm.sales_pers "+
"AND sm.strg_type = custype.type "+ "AND sm.strg_type = custype.type "+
"AND pte.CHG_DATE = (SELECT MAX(CHG_DATE) FROM PLACE_TIME_ENT WHERE ENTITY_CODE = sm.strg_code) "+ //Added by Sagar B. to get only latest added tagged location[17-Oct-18]
"ORDER BY sm.event_date"; "ORDER BY sm.event_date";
// String queryIN = "("; // String queryIN = "(";
// for( int i = 0; i < subordinateUsers.size(); i++) // for( int i = 0; i < subordinateUsers.size(); i++)
......
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