Commit b0600984 authored by Phạm Duy Phi's avatar Phạm Duy Phi

no message

parent 748ac42f
...@@ -57,10 +57,10 @@ public class LeaveFormController { ...@@ -57,10 +57,10 @@ public class LeaveFormController {
return ResponseEntity.ok(message); return ResponseEntity.ok(message);
} }
@PostMapping(path = "/update-status", consumes = "application/json", produces = "application/json") @PostMapping(path = "/{employee_Id}/leavetype/{leavetype_Id}/leaveform/{leaveform_Id}/status", consumes = "application/json", produces = "application/json")
public ResponseEntity<String> updateLeaveFormStatus(@RequestBody LeaveFormDTO leaveFormDTO) { public ResponseEntity<String> updateLeaveFormStatus(@PathVariable int employee_Id, @PathVariable int leavetype_Id, @PathVariable int leaveform_Id) {
String message; String message;
message = leaveFormBusiness.updateLeaveFormStatus(leaveFormDTO); message = leaveFormBusiness.updateLeaveFormStatus(employee_Id, leavetype_Id, leaveform_Id);
return ResponseEntity.ok(message); return ResponseEntity.ok(message);
} }
......
...@@ -15,7 +15,7 @@ public interface LeaveFormRepository extends JpaRepository<LeaveForm, Integer> { ...@@ -15,7 +15,7 @@ public interface LeaveFormRepository extends JpaRepository<LeaveForm, Integer> {
LeaveForm findLeaveFormByEmployeeAndId(Employee employee, int id); LeaveForm findLeaveFormByEmployeeAndId(Employee employee, int id);
LeaveForm findLeaveFormById(int i); // LeaveForm findLeaveFormById(int i);
LeaveForm findLeaveFormByEmployeeAndLeaveTypeAndId(Employee employee, LeaveType leaveType, int id); LeaveForm findLeaveFormByEmployeeAndLeaveTypeAndId(Employee employee, LeaveType leaveType, int id);
......
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