Skip to content

Commit

Permalink
update GetEmployeeDto (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksym-Lenets authored Jul 5, 2023
1 parent 02d2305 commit cf1aad8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class GetEmployeeDto {
private String phoneNumber;
private String email;
private String image;
private String employeeStatus;
private List<PositionDto> employeePositions;
private List<GetTariffInfoForEmployeeDto> tariffs;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ protected GetEmployeeDto convert(EmployeeFilterView employeeFilterView) {
.phoneNumber(employeeFilterView.getPhoneNumber())
.email(employeeFilterView.getEmail())
.image(employeeFilterView.getImage())
.employeeStatus(employeeFilterView.getEmployeeStatus())
.build();
}
}
2 changes: 2 additions & 0 deletions service/src/test/java/greencity/ModelUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ public static EmployeeFilterView getEmployeeFilterViewWithPassedIds(
.lastName("Last Name")
.phoneNumber("Phone Number")
.email("[email protected]")
.employeeStatus("ACTIVE")
.image("Image")
.regionId(15L)
.regionNameEn("Kyiv region")
Expand Down Expand Up @@ -287,6 +288,7 @@ public static GetEmployeeDto getEmployeeDto() {
.lastName("Last Name")
.phoneNumber("Phone Number")
.email("[email protected]")
.employeeStatus("ACTIVE")
.image("Image")
.build();
}
Expand Down

0 comments on commit cf1aad8

Please sign in to comment.