Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QLNS_N01
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Văn Hiếu
QLNS_N01
Commits
b0600984
Commit
b0600984
authored
Jun 05, 2019
by
Phạm Duy Phi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
748ac42f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/main/java/com/itsol/quantrivanphong/manage/leaveform/controller/LeaveFormController.java
...hong/manage/leaveform/controller/LeaveFormController.java
+3
-3
src/main/java/com/itsol/quantrivanphong/manage/leaveform/repository/LeaveFormRepository.java
...hong/manage/leaveform/repository/LeaveFormRepository.java
+1
-1
No files found.
src/main/java/com/itsol/quantrivanphong/manage/leaveform/controller/LeaveFormController.java
View file @
b0600984
...
...
@@ -57,10 +57,10 @@ public class LeaveFormController {
return
ResponseEntity
.
ok
(
message
);
}
@PostMapping
(
path
=
"/
update-
status"
,
consumes
=
"application/json"
,
produces
=
"application/json"
)
public
ResponseEntity
<
String
>
updateLeaveFormStatus
(
@
RequestBody
LeaveFormDTO
leaveFormDTO
)
{
@PostMapping
(
path
=
"/
{employee_Id}/leavetype/{leavetype_Id}/leaveform/{leaveform_Id}/
status"
,
consumes
=
"application/json"
,
produces
=
"application/json"
)
public
ResponseEntity
<
String
>
updateLeaveFormStatus
(
@
PathVariable
int
employee_Id
,
@PathVariable
int
leavetype_Id
,
@PathVariable
int
leaveform_Id
)
{
String
message
;
message
=
leaveFormBusiness
.
updateLeaveFormStatus
(
leaveFormDTO
);
message
=
leaveFormBusiness
.
updateLeaveFormStatus
(
employee_Id
,
leavetype_Id
,
leaveform_Id
);
return
ResponseEntity
.
ok
(
message
);
}
...
...
src/main/java/com/itsol/quantrivanphong/manage/leaveform/repository/LeaveFormRepository.java
View file @
b0600984
...
...
@@ -15,7 +15,7 @@ public interface LeaveFormRepository extends JpaRepository<LeaveForm, Integer> {
LeaveForm
findLeaveFormByEmployeeAndId
(
Employee
employee
,
int
id
);
LeaveForm
findLeaveFormById
(
int
i
);
//
LeaveForm findLeaveFormById(int i);
LeaveForm
findLeaveFormByEmployeeAndLeaveTypeAndId
(
Employee
employee
,
LeaveType
leaveType
,
int
id
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment