Unverified Commit 1d33ba36 authored by mmudrakola-nisum-com's avatar mmudrakola-nisum-com Committed by GitHub

Update MyTimeUtils.java

parent 3b98b426
...@@ -78,7 +78,7 @@ public class MyTimeUtils { ...@@ -78,7 +78,7 @@ public class MyTimeUtils {
public final static String ABESENT_STATUS_QUERY = "select emp.EmployeeCode,emp.FirstName," public final static String ABESENT_STATUS_QUERY = "select emp.EmployeeCode,emp.FirstName,"
+ "MIN(tr.aDateTime) AS FirstLogin,MAX(tr.aDateTime) AS LastLogin\n" + + "MIN(tr.aDateTime) AS FirstLogin,MAX(tr.aDateTime) AS LastLogin\n" +
"from Transactions as tr,EmployeeMaster as emp\n" + "from Transactions as tr,EmployeeMaster as emp\n" +
"where tr.EmployeemasterID=emp.EmployeeMasterID and EmployeeControllerStatus=1 and \n" + "where tr.EmployeemasterID=emp.EmployeeMasterID and \n" +
"replace(convert(varchar,tr.aDateTime, 111), '/', '-')>= "; "replace(convert(varchar,tr.aDateTime, 111), '/', '-')>= ";
public final static String ABESENT_STATUS_QUERY1 =" and \n" + public final static String ABESENT_STATUS_QUERY1 =" and \n" +
"replace(convert(varchar,tr.aDateTime, 111), '/', '-')<= "; "replace(convert(varchar,tr.aDateTime, 111), '/', '-')<= ";
...@@ -86,14 +86,14 @@ public class MyTimeUtils { ...@@ -86,14 +86,14 @@ public class MyTimeUtils {
public final static String ABESENT_STATUS_QUERY3 =" group by convert(varchar,tr.aDateTime, 111),emp.EmployeeCode,emp.FirstName"; public final static String ABESENT_STATUS_QUERY3 =" group by convert(varchar,tr.aDateTime, 111),emp.EmployeeCode,emp.FirstName";
public final static String ATTENDANCE_PRESENT_REPORT_QUERY ="select distinct emp.EmployeeCode,emp.FirstName,'P' as AttStatus\n" + public final static String ATTENDANCE_PRESENT_REPORT_QUERY ="select distinct emp.EmployeeCode,emp.FirstName,'P' as AttStatus\n" +
" FROM Transactions as tr,EmployeeMaster as emp where tr.EmployeemasterID=emp.EmployeeMasterID and EmployeeControllerStatus=1 and \n" + " FROM Transactions as tr,EmployeeMaster as emp where tr.EmployeemasterID=emp.EmployeeMasterID and \n" +
" replace(convert(varchar,tr.aDateTime, 111), '/', '-')= "; " replace(convert(varchar,tr.aDateTime, 111), '/', '-')= ";
public final static String UNION=" Union "; public final static String UNION=" Union ";
public final static String ATTENDANCE_ABSENT_REPORT_QUERY= "select distinct M.EmployeeCode,M.FirstName,'A' as AttStatus from [smartiSCC].[dbo].[EmployeeMaster] M \n" + public final static String ATTENDANCE_ABSENT_REPORT_QUERY= "select distinct M.EmployeeCode,M.FirstName,'A' as AttStatus from [smartiSCC].[dbo].[EmployeeMaster] M \n" +
"where EmployeeControllerStatus=1 and M.EmployeeCode not in \n" + "where M.EmployeeCode not in \n" +
" (select distinct emp.EmployeeCode \n" + " (select distinct emp.EmployeeCode \n" +
" FROM Transactions as tr,EmployeeMaster as emp \n" + " FROM Transactions as tr,EmployeeMaster as emp \n" +
" where tr.EmployeemasterID=emp.EmployeeMasterID and EmployeeControllerStatus=1 and \n" + " where tr.EmployeemasterID=emp.EmployeeMasterID and \n" +
" replace(convert(varchar,tr.aDateTime, 111), '/', '-')="; " replace(convert(varchar,tr.aDateTime, 111), '/', '-')=";
// Role Mapping Info // Role Mapping Info
......
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