Skip to content

Commit 31d9d8f

Browse files
authored
Merge pull request #32 from SelimHorri/develop
Develop
2 parents b7636b5 + 9021e05 commit 31d9d8f

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<parent>
88
<groupId>org.springframework.boot</groupId>
99
<artifactId>spring-boot-starter-parent</artifactId>
10-
<version>2.4.5</version>
10+
<version>2.4.7</version>
1111
<relativePath /> <!-- lookup parent from repository -->
1212
</parent>
1313
<groupId>com.pfa</groupId>
1414
<artifactId>project-tracking-system</artifactId>
15-
<version>5.2</version>
15+
<version>9.0</version>
1616
<name>Project-Tracking-System</name>
1717
<description>Manage projects and their status along with managers and employees</description>
1818
<packaging>jar</packaging>

src/main/java/com/pfa/pack/controller/api/AssignmentResource.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ public ResponseEntity<DtoCollection<ProjectCommit>> findByEmployeeIdAndProjectId
8181
return ResponseEntity.ok(new DtoCollection<>(this.assignmentService.findByEmployeeIdAndProjectId(Integer.parseInt(employeeId), Integer.parseInt(projectId))));
8282
}
8383

84+
@GetMapping(value = {"/data/project-commit/{employeeId}/{projectId}/{commitDate}"})
85+
public ResponseEntity<ProjectCommit> findByEmployeeIdAndProjectIdAndCommitDate(@PathVariable("employeeId")final String employeeId, @PathVariable("projectId") String projectId, @PathVariable("commitDate") final String commitDate) {
86+
return ResponseEntity.ok(this.assignmentService.findByEmployeeIdAndProjectIdAndCommitDate(Integer.parseInt(employeeId), Integer.parseInt(projectId), LocalDateTime.parse(commitDate, DateTimeFormatter.ofPattern("dd-MM-yyyyHH:mm:ss"))));
87+
}
88+
8489

8590

8691
}

0 commit comments

Comments
 (0)