Browse Source

Changes in query

master
Hariprasath S 4 months ago
parent
commit
32dc790948
  1. 8
      pom.xml
  2. 2
      src/main/java/com/attendance/callcenter/report/service/AttendanceService.java
  3. 13
      src/test/java/attendance/callcenter/report/ReportApplicationTests.java

8
pom.xml

@ -9,8 +9,8 @@
<relativePath/> <!-- lookup parent from repository --> <relativePath/> <!-- lookup parent from repository -->
</parent> </parent>
<groupId>attendance.callcenter</groupId> <groupId>attendance.callcenter</groupId>
<artifactId>report</artifactId>
<version>0.0.1-SNAPSHOT</version>
<artifactId>attendanceAPI</artifactId>
<version>0.0.1</version>
<name>report</name> <name>report</name>
<description>callcenter attendance report</description> <description>callcenter attendance report</description>
<url/> <url/>
@ -56,11 +56,11 @@
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency>
<!--<dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency>
</dependency>-->
</dependencies> </dependencies>
<build> <build>

2
src/main/java/com/attendance/callcenter/report/service/AttendanceService.java

@ -85,7 +85,7 @@ public class AttendanceService {
+ " tbldepartment f ON e.departmentcode = f.departmentcode\r\n" + " tbldepartment f ON e.departmentcode = f.departmentcode\r\n"
+ "WHERE \r\n" + "WHERE \r\n"
+ " CAST(a.officepunch AS DATE) BETWEEN ? AND ?\r\n" + " CAST(a.officepunch AS DATE) BETWEEN ? AND ?\r\n"
+ " AND a.paycode LIKE '%19130%'\r\n"
+ " AND e.designation LIKE '%TELE CALLERS%'\r\n"
+ "GROUP BY \r\n" + "GROUP BY \r\n"
+ " d.zone, d.division, b.user_id, b.user_name, f.departmentname, e.designation, c.device_name, FORMAT(a.officepunch, 'dd-MM-yyyy')\r\n" + " d.zone, d.division, b.user_id, b.user_name, f.departmentname, e.designation, c.device_name, FORMAT(a.officepunch, 'dd-MM-yyyy')\r\n"
+ "ORDER BY \r\n" + "ORDER BY \r\n"

13
src/test/java/attendance/callcenter/report/ReportApplicationTests.java

@ -1,13 +0,0 @@
package attendance.callcenter.report;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class ReportApplicationTests {
@Test
void contextLoads() {
}
}
Loading…
Cancel
Save