35 changed files with 4616 additions and 3179 deletions
-
5src/main/java/com/gcc/biometric/api/GccBioMetricApi/GccAttendanceApplication.java
-
1416src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nmr/NMRAbsenteesEmpListDataController.java
-
127src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nmr/NMRDesignationEnrolledPunchedRestController.java
-
77src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nmr/NMREnrolledEmpListDataController.java
-
1399src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nmr/NMRPunchedEmpListDataController.java
-
1418src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nulm/NULMAbsenteesEmpListDataController.java
-
127src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nulm/NULMDesignationEnrolledPunchedRestController.java
-
75src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nulm/NULMEnrolledEmpListDataController.java
-
31src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nulm/NULMHeadQuaterZonesEntriesRestController.java
-
1400src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nulm/NULMPunchedEmpListDataController.java
-
8src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nulm/NULMRegionalDeputyCommissionerController.java
-
105src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/perm/PERMAbsenteesEmpListDataController.java
-
126src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/perm/PERMDesignationEnrolledPunchedRestController.java
-
75src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/perm/PERMEnrolledEmpListDataController.java
-
228src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/perm/PERMHeadQuaterZonesEntriesRestController.java
-
86src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/perm/PERMPunchedEmpListDataController.java
-
31src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/perm/PERMZoneDivisionOfficeController.java
-
23src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/AbsenteesEmpListDataRepository.java
-
352src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/DesignationEnrolledPunchedRepository.java
-
20src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/EnrolledEmpListDataRepository.java
-
23src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/HeadQuaterZonesEntriesRepository.java
-
23src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/PunchedEmpListDataRepository.java
-
32src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/ZoneDivisionOfficeRepository.java
-
21src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nmr/NMRAbsenteesEmpListDataRepository.java
-
64src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nmr/NMRDesignationEnrolledPunchedRepository.java
-
21src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nmr/NMREnrolledEmpListDataRepository.java
-
22src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nmr/NMRPunchedEmpListDataRepository.java
-
2src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nmr/NMRRegionalDeputyCommissionerRepository.java
-
22src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nulm/NULMAbsenteesEmpListDataRepository.java
-
65src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nulm/NULMDesignationEnrolledPunchedRepository.java
-
21src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nulm/NULMEnrolledEmpListDataRepository.java
-
307src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nulm/NULMHeadQuaterZonesEntriesRepository.java
-
22src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nulm/NULMPunchedEmpListDataRepository.java
-
19src/main/java/com/gcc/biometric/api/GccBioMetricApi/repo/nulm/NULMRegionalDeputyCommissionerRepository.java
-
2src/main/resources/application.properties
1416
src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nmr/NMRAbsenteesEmpListDataController.java
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,127 @@ |
|||
package com.gcc.biometric.api.GccBioMetricApi.controller.nmr; |
|||
|
|||
import java.text.ParseException; |
|||
import java.text.SimpleDateFormat; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.LinkedHashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.http.ResponseEntity; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import com.gcc.biometric.api.GccBioMetricApi.repo.nmr.NMRDesignationEnrolledPunchedRepository; |
|||
|
|||
@RestController |
|||
@RequestMapping("/gcc.com/NMR") |
|||
public class NMRDesignationEnrolledPunchedRestController { |
|||
|
|||
@Autowired |
|||
private NMRDesignationEnrolledPunchedRepository nMRDesignationEnrolledPunchedRepository; |
|||
|
|||
// inject employee dao |
|||
@Autowired |
|||
public NMRDesignationEnrolledPunchedRestController( |
|||
NMRDesignationEnrolledPunchedRepository theNMRDesignationEnrolledPunchedRepository) { |
|||
nMRDesignationEnrolledPunchedRepository = theNMRDesignationEnrolledPunchedRepository; |
|||
} |
|||
|
|||
ArrayList<Integer> enrolledCounts; |
|||
ArrayList<Integer> punchedCounts; |
|||
|
|||
ArrayList<String> allDesignations; |
|||
ArrayList<String> designationsAsPerDate; |
|||
|
|||
@GetMapping("/DesignationCountPresentAbsentPercentage/{tempDate}") |
|||
public ResponseEntity<List<Map<String, String>>> getHeadQuaterDepartmentOfficeDate(@PathVariable String tempDate) |
|||
{ |
|||
System.out.println("Inside getHeadQuaterDepartmentOfficeDate() method!"); |
|||
|
|||
//Department Office |
|||
|
|||
System.out.println("for HQ Department Office Data"); |
|||
|
|||
Date date = null; |
|||
try { |
|||
date = new SimpleDateFormat("dd-MM-yyyy").parse(tempDate); |
|||
} catch (ParseException e) { |
|||
|
|||
e.printStackTrace(); |
|||
} |
|||
|
|||
System.out.println(date); |
|||
|
|||
|
|||
ArrayList<String> allDesignations; |
|||
ArrayList<String> allDesignationsAsPerDate; |
|||
ArrayList<String> desigEnrolled; |
|||
ArrayList<String> desigPunched; |
|||
|
|||
allDesignations = nMRDesignationEnrolledPunchedRepository.getAllDesignations(); |
|||
allDesignationsAsPerDate = nMRDesignationEnrolledPunchedRepository.getDesignationsAsPerDate(date); |
|||
|
|||
desigPunched = nMRDesignationEnrolledPunchedRepository.getDesigPunched(date); |
|||
|
|||
|
|||
System.out.println("All Designations: "+allDesignations); |
|||
System.out.println("All Designations as per date: "+allDesignationsAsPerDate); |
|||
desigEnrolled = nMRDesignationEnrolledPunchedRepository.getDesigEnrolled(); |
|||
System.out.println("Enrolled: "+desigEnrolled); |
|||
System.out.println("Punched: "+desigPunched); |
|||
|
|||
|
|||
String divAbsent = null; |
|||
String divPercentage = null; |
|||
Integer j = 0; |
|||
|
|||
List<Map<String, String>> listMap = new ArrayList<Map<String, String>>(); |
|||
for (int i = 0; i <allDesignations.size(); i++) { |
|||
|
|||
|
|||
ArrayList<String> myListKey = new ArrayList<>(); |
|||
ArrayList<String> myListValue = new ArrayList<>(); |
|||
myListKey.add("Designation"); myListValue.add(allDesignations.get(i).trim()); |
|||
myListKey.add("Enrolled"); myListValue.add(desigEnrolled.get(i)); |
|||
|
|||
if (allDesignationsAsPerDate.contains(allDesignations.get(i))) |
|||
{ |
|||
myListKey.add("Punched"); myListValue.add(desigPunched.get(j)); |
|||
Integer xDivAbsent = Integer.parseInt(desigEnrolled.get(i)) - Integer.parseInt(desigPunched.get(j)); |
|||
Integer xdivPercentage = ((Integer.parseInt((desigPunched.get(j))) *100)/ Integer.parseInt(desigEnrolled.get(i))); |
|||
divAbsent = xDivAbsent.toString(); |
|||
divPercentage = xdivPercentage.toString(); |
|||
j++; |
|||
} |
|||
|
|||
else |
|||
{ |
|||
myListKey.add("Punched"); myListValue.add("0"); |
|||
divAbsent = desigEnrolled.get(i); |
|||
divPercentage = "0"; |
|||
} |
|||
|
|||
myListKey.add("Absent"); myListValue.add(divAbsent); |
|||
myListKey.add("Percentage"); myListValue.add(divPercentage); |
|||
|
|||
Map<String, String> map = new LinkedHashMap<>(); |
|||
for(int x=0;x<myListKey.size();x++) |
|||
{ |
|||
map.put(myListKey.get(x), myListValue.get(x)); |
|||
} |
|||
|
|||
listMap.add(map); |
|||
|
|||
divAbsent=null; |
|||
divPercentage=null; |
|||
} |
|||
|
|||
return ResponseEntity.ok(listMap); |
|||
|
|||
} |
|||
|
|||
} |
|||
1399
src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nmr/NMRPunchedEmpListDataController.java
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1418
src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nulm/NULMAbsenteesEmpListDataController.java
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,127 @@ |
|||
package com.gcc.biometric.api.GccBioMetricApi.controller.nulm; |
|||
|
|||
import java.text.ParseException; |
|||
import java.text.SimpleDateFormat; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.LinkedHashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.http.ResponseEntity; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import com.gcc.biometric.api.GccBioMetricApi.repo.nulm.NULMDesignationEnrolledPunchedRepository; |
|||
|
|||
@RestController |
|||
@RequestMapping("/gcc.com/NULM") |
|||
public class NULMDesignationEnrolledPunchedRestController { |
|||
|
|||
@Autowired |
|||
private NULMDesignationEnrolledPunchedRepository nULMDesignationEnrolledPunchedRepository; |
|||
|
|||
// inject employee dao |
|||
@Autowired |
|||
public NULMDesignationEnrolledPunchedRestController( |
|||
NULMDesignationEnrolledPunchedRepository theNULMDesignationEnrolledPunchedRepository) { |
|||
nULMDesignationEnrolledPunchedRepository = theNULMDesignationEnrolledPunchedRepository; |
|||
} |
|||
|
|||
ArrayList<Integer> enrolledCounts; |
|||
ArrayList<Integer> punchedCounts; |
|||
|
|||
ArrayList<String> allDesignations; |
|||
ArrayList<String> designationsAsPerDate; |
|||
|
|||
@GetMapping("/DesignationCountPresentAbsentPercentage/{tempDate}") |
|||
public ResponseEntity<List<Map<String, String>>> getHeadQuaterDepartmentOfficeDate(@PathVariable String tempDate) |
|||
{ |
|||
System.out.println("Inside getHeadQuaterDepartmentOfficeDate() method!"); |
|||
|
|||
//Department Office |
|||
|
|||
System.out.println("for HQ Department Office Data"); |
|||
|
|||
Date date = null; |
|||
try { |
|||
date = new SimpleDateFormat("dd-MM-yyyy").parse(tempDate); |
|||
} catch (ParseException e) { |
|||
|
|||
e.printStackTrace(); |
|||
} |
|||
|
|||
System.out.println(date); |
|||
|
|||
|
|||
ArrayList<String> allDesignations; |
|||
ArrayList<String> allDesignationsAsPerDate; |
|||
ArrayList<String> desigEnrolled; |
|||
ArrayList<String> desigPunched; |
|||
|
|||
allDesignations = nULMDesignationEnrolledPunchedRepository.getAllDesignations(); |
|||
allDesignationsAsPerDate = nULMDesignationEnrolledPunchedRepository.getDesignationsAsPerDate(date); |
|||
|
|||
desigPunched = nULMDesignationEnrolledPunchedRepository.getDesigPunched(date); |
|||
|
|||
|
|||
System.out.println("All Designations: "+allDesignations); |
|||
System.out.println("All Designations as per date: "+allDesignationsAsPerDate); |
|||
desigEnrolled = nULMDesignationEnrolledPunchedRepository.getDesigEnrolled(); |
|||
System.out.println("Enrolled: "+desigEnrolled); |
|||
System.out.println("Punched: "+desigPunched); |
|||
|
|||
|
|||
String divAbsent = null; |
|||
String divPercentage = null; |
|||
Integer j = 0; |
|||
|
|||
List<Map<String, String>> listMap = new ArrayList<Map<String, String>>(); |
|||
for (int i = 0; i <allDesignations.size(); i++) { |
|||
|
|||
|
|||
ArrayList<String> myListKey = new ArrayList<>(); |
|||
ArrayList<String> myListValue = new ArrayList<>(); |
|||
myListKey.add("Designation"); myListValue.add(allDesignations.get(i).trim()); |
|||
myListKey.add("Enrolled"); myListValue.add(desigEnrolled.get(i)); |
|||
|
|||
if (allDesignationsAsPerDate.contains(allDesignations.get(i))) |
|||
{ |
|||
myListKey.add("Punched"); myListValue.add(desigPunched.get(j)); |
|||
Integer xDivAbsent = Integer.parseInt(desigEnrolled.get(i)) - Integer.parseInt(desigPunched.get(j)); |
|||
Integer xdivPercentage = ((Integer.parseInt((desigPunched.get(j))) *100)/ Integer.parseInt(desigEnrolled.get(i))); |
|||
divAbsent = xDivAbsent.toString(); |
|||
divPercentage = xdivPercentage.toString(); |
|||
j++; |
|||
} |
|||
|
|||
else |
|||
{ |
|||
myListKey.add("Punched"); myListValue.add("0"); |
|||
divAbsent = desigEnrolled.get(i); |
|||
divPercentage = "0"; |
|||
} |
|||
|
|||
myListKey.add("Absent"); myListValue.add(divAbsent); |
|||
myListKey.add("Percentage"); myListValue.add(divPercentage); |
|||
|
|||
Map<String, String> map = new LinkedHashMap<>(); |
|||
for(int x=0;x<myListKey.size();x++) |
|||
{ |
|||
map.put(myListKey.get(x), myListValue.get(x)); |
|||
} |
|||
|
|||
listMap.add(map); |
|||
|
|||
divAbsent=null; |
|||
divPercentage=null; |
|||
} |
|||
|
|||
return ResponseEntity.ok(listMap); |
|||
|
|||
} |
|||
|
|||
} |
|||
1400
src/main/java/com/gcc/biometric/api/GccBioMetricApi/controller/nulm/NULMPunchedEmpListDataController.java
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,126 @@ |
|||
package com.gcc.biometric.api.GccBioMetricApi.controller.perm; |
|||
|
|||
import java.text.ParseException; |
|||
import java.text.SimpleDateFormat; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.LinkedHashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.http.ResponseEntity; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import com.gcc.biometric.api.GccBioMetricApi.repo.DesignationEnrolledPunchedRepository; |
|||
|
|||
@RestController |
|||
@RequestMapping("/gcc.com/PERM") |
|||
public class PERMDesignationEnrolledPunchedRestController { |
|||
|
|||
@Autowired |
|||
private DesignationEnrolledPunchedRepository designationEnrolledPunchedRepository; |
|||
|
|||
// inject employee dao |
|||
@Autowired |
|||
public PERMDesignationEnrolledPunchedRestController( |
|||
DesignationEnrolledPunchedRepository theDesignationEnrolledPunchedRepository) { |
|||
designationEnrolledPunchedRepository = theDesignationEnrolledPunchedRepository; |
|||
} |
|||
|
|||
ArrayList<Integer> enrolledCounts; |
|||
ArrayList<Integer> punchedCounts; |
|||
|
|||
ArrayList<String> allDesignations; |
|||
ArrayList<String> designationsAsPerDate; |
|||
|
|||
@GetMapping("/DesignationCountPresentAbsentPercentage/{tempDate}") |
|||
public ResponseEntity<List<Map<String, String>>> getHeadQuaterDepartmentOfficeDate(@PathVariable String tempDate) |
|||
{ |
|||
System.out.println("Inside getHeadQuaterDepartmentOfficeDate() method!"); |
|||
|
|||
//Department Office |
|||
|
|||
System.out.println("for HQ Department Office Data"); |
|||
|
|||
Date date = null; |
|||
try { |
|||
date = new SimpleDateFormat("dd-MM-yyyy").parse(tempDate); |
|||
} catch (ParseException e) { |
|||
|
|||
e.printStackTrace(); |
|||
} |
|||
|
|||
System.out.println(date); |
|||
|
|||
|
|||
ArrayList<String> allDesignations; |
|||
ArrayList<String> allDesignationsAsPerDate; |
|||
ArrayList<String> desigEnrolled; |
|||
ArrayList<String> desigPunched; |
|||
|
|||
allDesignations = designationEnrolledPunchedRepository.getAllDesignations(); |
|||
allDesignationsAsPerDate = designationEnrolledPunchedRepository.getDesignationsAsPerDate(date); |
|||
|
|||
desigPunched = designationEnrolledPunchedRepository.getDesigPunched(date); |
|||
|
|||
|
|||
System.out.println("All Designations: "+allDesignations); |
|||
System.out.println("All Designations as per date: "+allDesignationsAsPerDate); |
|||
desigEnrolled = designationEnrolledPunchedRepository.getDesigEnrolled(); |
|||
System.out.println("Enrolled: "+desigEnrolled); |
|||
System.out.println("Punched: "+desigPunched); |
|||
|
|||
|
|||
String divAbsent = null; |
|||
String divPercentage = null; |
|||
Integer j = 0; |
|||
|
|||
List<Map<String, String>> listMap = new ArrayList<Map<String, String>>(); |
|||
for (int i = 0; i <allDesignations.size(); i++) { |
|||
|
|||
|
|||
ArrayList<String> myListKey = new ArrayList<>(); |
|||
ArrayList<String> myListValue = new ArrayList<>(); |
|||
myListKey.add("Designation"); myListValue.add(allDesignations.get(i).trim()); |
|||
myListKey.add("Enrolled"); myListValue.add(desigEnrolled.get(i)); |
|||
|
|||
if (allDesignationsAsPerDate.contains(allDesignations.get(i))) |
|||
{ |
|||
myListKey.add("Punched"); myListValue.add(desigPunched.get(j)); |
|||
Integer xDivAbsent = Integer.parseInt(desigEnrolled.get(i)) - Integer.parseInt(desigPunched.get(j)); |
|||
Integer xdivPercentage = ((Integer.parseInt((desigPunched.get(j))) *100)/ Integer.parseInt(desigEnrolled.get(i))); |
|||
divAbsent = xDivAbsent.toString(); |
|||
divPercentage = xdivPercentage.toString(); |
|||
j++; |
|||
} |
|||
|
|||
else |
|||
{ |
|||
myListKey.add("Punched"); myListValue.add("0"); |
|||
divAbsent = desigEnrolled.get(i); |
|||
divPercentage = "0"; |
|||
} |
|||
|
|||
myListKey.add("Absent"); myListValue.add(divAbsent); |
|||
myListKey.add("Percentage"); myListValue.add(divPercentage); |
|||
|
|||
Map<String, String> map = new LinkedHashMap<>(); |
|||
for(int x=0;x<myListKey.size();x++) |
|||
{ |
|||
map.put(myListKey.get(x), myListValue.get(x)); |
|||
} |
|||
|
|||
listMap.add(map); |
|||
|
|||
divAbsent=null; |
|||
divPercentage=null; |
|||
} |
|||
|
|||
return ResponseEntity.ok(listMap); |
|||
|
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,352 @@ |
|||
package com.gcc.biometric.api.GccBioMetricApi.repo; |
|||
|
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
|
|||
import org.springframework.data.jpa.repository.JpaRepository; |
|||
import org.springframework.data.jpa.repository.Query; |
|||
|
|||
import com.gcc.biometric.api.GccBioMetricApi.entity.HeadQuaterEntries; |
|||
|
|||
public interface DesignationEnrolledPunchedRepository extends JpaRepository<HeadQuaterEntries, Integer> { |
|||
|
|||
@Query("select upper(c.designation) \r\n" + |
|||
"from RealTimeUserInfo a, Employee c,\r\n" + |
|||
"DeviceStatus b, \r\n" + |
|||
"ZoneDivMaster d \r\n" + |
|||
"where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" + |
|||
"and c.payCode=a.userId\r\n" + |
|||
"and a.userId not like '%1100%' and a.userId not like '%1200%'\r\n" + |
|||
"and d.devname=b.deviceName\r\n" + |
|||
"group by c.designation\r\n" + |
|||
"order by c.designation asc") |
|||
ArrayList<String> getAllDesignations(); |
|||
|
|||
@Query("select count(a.userId) as Enrolled \r\n" + |
|||
"from RealTimeUserInfo a, Employee c,\r\n" + |
|||
"DeviceStatus b, \r\n" + |
|||
"ZoneDivMaster d \r\n" + |
|||
"where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" + |
|||
"and c.payCode=a.userId\r\n" + |
|||
"and a.userId not like '%1100%' and a.userId not like '%1200%'\r\n" + |
|||
"and d.devname=b.deviceName\r\n" + |
|||
"group by c.designation\r\n" + |
|||
"order by c.designation asc") |
|||
ArrayList<String> getDesigEnrolled(); |
|||
|
|||
@Query("select COUNT(distinct a.payCode) as punched\r\n" + |
|||
"from MachineRawPunchh a , DeviceStatus b, ZoneDivMaster c,Employee d \r\n" + |
|||
"where \r\n" + |
|||
"c.devname=b.deviceName\r\n" + |
|||
"and a.deviceId=b.deviceId \r\n" + |
|||
"and d.payCode=a.payCode\r\n" + |
|||
"and a.payCode not like '%1100%' and a.payCode not like '%1200%'\r\n" + |
|||
"and cast(a.officePunch as date) =:date\r\n" + |
|||
"group by d.designation\r\n" + |
|||
"order by d.designation") |
|||
ArrayList<String> getDesigPunched(Date date); |
|||
|
|||
@Query("select upper(d.designation)\r\n" + |
|||
"from MachineRawPunchh a , DeviceStatus b, ZoneDivMaster c,Employee d \r\n" + |
|||
"where \r\n" + |
|||
"c.devname=b.deviceName\r\n" + |
|||
"and a.deviceId=b.deviceId \r\n" + |
|||
"and d.payCode=a.payCode\r\n" + |
|||
"and a.payCode not like '%1100%' and a.payCode not like '%1200%'\r\n" + |
|||
"and cast(a.officePunch as date) =:date\r\n" + |
|||
"group by d.designation\r\n" + |
|||
"order by d.designation") |
|||
ArrayList<String> getDesignationsAsPerDate(Date date); |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
// ======================================================================================== |
|||
|
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=1\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_1(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=1\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_1(); |
|||
// |
|||
// |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=2\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_2(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=2\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_2(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=3\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_3(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=3\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_3(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=4\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_4(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=4\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_4(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=5\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_5(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=5\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_5(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=6\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_6(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=6\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_6(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=7\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_7(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=7\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_7(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=8\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_8(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=8\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_8(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=9\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_9(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=9\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_9(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=10\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_10(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=10\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_10(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=11\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_11(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=11\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_11(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=12\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_12(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=12\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_12(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=13\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_13(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=13\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_13(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=14\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_14(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=14\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_14(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=15\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_15(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=15\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_15(); |
|||
// |
|||
// @Query("select count(a.userId)\r\n" |
|||
// + "from RealTimeUserInfo a, Employee c,\r\n" |
|||
// + " DeviceStatus b, ZoneDivMaster d \r\n" |
|||
// + "where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" |
|||
// + "AND a.deviceId=b.deviceId\r\n" |
|||
// + "and d.zone=16\r\n" |
|||
// + "and c.payCode=a.userId\r\n" |
|||
// + "and d.devname=b.deviceName") |
|||
// String getEnroll_ZONE_16(); |
|||
// |
|||
// @Query("select count(distinct a.payCode)\r\n" |
|||
// + "from MachineRawPunch a , DeviceStatus b, ZoneDivMaster c where c.devname=b.deviceName\r\n" |
|||
// + "AND c.zone=16\r\n" |
|||
// + "and a.deviceId=b.deviceId \r\n" |
|||
// + "and cast(a.officePunch as date) ='2022-10-21'") |
|||
// String getPunched_16(); |
|||
// |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,64 @@ |
|||
package com.gcc.biometric.api.GccBioMetricApi.repo.nmr; |
|||
|
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
|
|||
import org.springframework.data.jpa.repository.JpaRepository; |
|||
import org.springframework.data.jpa.repository.Query; |
|||
|
|||
import com.gcc.biometric.api.GccBioMetricApi.entity.HeadQuaterEntries; |
|||
|
|||
public interface NMRDesignationEnrolledPunchedRepository extends JpaRepository<HeadQuaterEntries, Integer> { |
|||
|
|||
@Query("select upper(c.designation) \r\n" + |
|||
"from RealTimeUserInfo a, Employee c,\r\n" + |
|||
"DeviceStatus b, \r\n" + |
|||
"ZoneDivMaster d \r\n" + |
|||
"where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" + |
|||
"and c.payCode=a.userId\r\n" + |
|||
"and a.userId like '%1200%'\r\n" + |
|||
"and d.devname=b.deviceName\r\n" + |
|||
"group by c.designation\r\n" + |
|||
"order by c.designation asc") |
|||
ArrayList<String> getAllDesignations(); |
|||
|
|||
@Query("select count(a.userId) as Enrolled \r\n" + |
|||
"from RealTimeUserInfo a, Employee c,\r\n" + |
|||
"DeviceStatus b, \r\n" + |
|||
"ZoneDivMaster d \r\n" + |
|||
"where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" + |
|||
"and c.payCode=a.userId\r\n" + |
|||
"and a.userId like '%1200%'\r\n" + |
|||
"and d.devname=b.deviceName\r\n" + |
|||
"group by c.designation\r\n" + |
|||
"order by c.designation asc") |
|||
ArrayList<String> getDesigEnrolled(); |
|||
|
|||
@Query("select COUNT(distinct a.payCode) as punched\r\n" + |
|||
"from MachineRawPunchh a , DeviceStatus b, ZoneDivMaster c,Employee d \r\n" + |
|||
"where \r\n" + |
|||
"c.devname=b.deviceName\r\n" + |
|||
"and a.deviceId=b.deviceId \r\n" + |
|||
"and d.payCode=a.payCode\r\n" + |
|||
"and a.payCode like '%1200%'" + |
|||
"and cast(a.officePunch as date) =:date\r\n" + |
|||
"group by d.designation\r\n" + |
|||
"order by d.designation") |
|||
ArrayList<String> getDesigPunched(Date date); |
|||
|
|||
@Query("select upper(d.designation)\r\n" + |
|||
"from MachineRawPunchh a , DeviceStatus b, ZoneDivMaster c,Employee d \r\n" + |
|||
"where \r\n" + |
|||
"c.devname=b.deviceName\r\n" + |
|||
"and a.deviceId=b.deviceId \r\n" + |
|||
"and d.payCode=a.payCode\r\n" + |
|||
"and a.payCode like '%1200%'\r\n" + |
|||
"and cast(a.officePunch as date) =:date\r\n" + |
|||
"group by d.designation\r\n" + |
|||
"order by d.designation") |
|||
ArrayList<String> getDesignationsAsPerDate(Date date); |
|||
|
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,65 @@ |
|||
package com.gcc.biometric.api.GccBioMetricApi.repo.nulm; |
|||
|
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
|
|||
import org.springframework.data.jpa.repository.JpaRepository; |
|||
import org.springframework.data.jpa.repository.Query; |
|||
|
|||
import com.gcc.biometric.api.GccBioMetricApi.entity.HeadQuaterEntries; |
|||
|
|||
public interface NULMDesignationEnrolledPunchedRepository extends JpaRepository<HeadQuaterEntries, Integer> { |
|||
|
|||
@Query("select upper(c.designation) \r\n" + |
|||
"from RealTimeUserInfo a, Employee c,\r\n" + |
|||
"DeviceStatus b, \r\n" + |
|||
"ZoneDivMaster d \r\n" + |
|||
"where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" + |
|||
"and c.payCode=a.userId\r\n" + |
|||
"and a.userId like '%1100%'\r\n" + |
|||
"and d.devname=b.deviceName\r\n" + |
|||
"group by c.designation\r\n" + |
|||
"order by c.designation asc") |
|||
ArrayList<String> getAllDesignations(); |
|||
|
|||
@Query("select count(a.userId) as Enrolled \r\n" + |
|||
"from RealTimeUserInfo a, Employee c,\r\n" + |
|||
"DeviceStatus b, \r\n" + |
|||
"ZoneDivMaster d \r\n" + |
|||
"where a.deviceId=b.deviceId and a.userId <>1 and a.userId <> 2 and a.userId <> 3\r\n" + |
|||
"and c.payCode=a.userId\r\n" + |
|||
"and a.userId like '%1100%'\r\n" + |
|||
"and d.devname=b.deviceName\r\n" + |
|||
"group by c.designation\r\n" + |
|||
"order by c.designation asc") |
|||
ArrayList<String> getDesigEnrolled(); |
|||
|
|||
@Query("select COUNT(distinct a.payCode) as punched\r\n" + |
|||
"from MachineRawPunchh a , DeviceStatus b, ZoneDivMaster c,Employee d \r\n" + |
|||
"where \r\n" + |
|||
"c.devname=b.deviceName\r\n" + |
|||
"and a.deviceId=b.deviceId \r\n" + |
|||
"and d.payCode=a.payCode\r\n" + |
|||
"and a.payCode like '%1100%'\r\n" + |
|||
"and cast(a.officePunch as date) =:date\r\n" + |
|||
"group by d.designation\r\n" + |
|||
"order by d.designation") |
|||
ArrayList<String> getDesigPunched(Date date); |
|||
|
|||
@Query("select upper(d.designation)\r\n" + |
|||
"from MachineRawPunchh a , DeviceStatus b, ZoneDivMaster c,Employee d \r\n" + |
|||
"where \r\n" + |
|||
"c.devname=b.deviceName\r\n" + |
|||
"and a.deviceId=b.deviceId \r\n" + |
|||
"and d.payCode=a.payCode\r\n" + |
|||
"and a.payCode like '%1100%'\r\n" + |
|||
"and cast(a.officePunch as date) =:date\r\n" + |
|||
"group by d.designation\r\n" + |
|||
"order by d.designation") |
|||
ArrayList<String> getDesignationsAsPerDate(Date date); |
|||
|
|||
|
|||
|
|||
|
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue