Harden staff assignment

This commit is contained in:
2026-04-05 12:17:37 -06:00
parent b7d85053bc
commit 0294f078f9
33 changed files with 887 additions and 30 deletions

View File

@@ -8,6 +8,8 @@ public class AdoptionDTO {
private String petName;
private Long customerId;
private String customerName;
private Long employeeId;
private String employeeName;
private String adoptionDate;
private String adoptionStatus;
private BigDecimal adoptionFee;
@@ -16,8 +18,13 @@ public class AdoptionDTO {
// Constructor for create/update requests
public AdoptionDTO(Long petId, Long customerId, String adoptionDate, String adoptionStatus) {
this(petId, customerId, null, adoptionDate, adoptionStatus);
}
public AdoptionDTO(Long petId, Long customerId, Long employeeId, String adoptionDate, String adoptionStatus) {
this.petId = petId;
this.customerId = customerId;
this.employeeId = employeeId;
this.adoptionDate = adoptionDate;
this.adoptionStatus = adoptionStatus;
}
@@ -42,6 +49,14 @@ public class AdoptionDTO {
return customerName;
}
public Long getEmployeeId() {
return employeeId;
}
public String getEmployeeName() {
return employeeName;
}
public String getAdoptionDate() {
return adoptionDate;
}
@@ -65,4 +80,4 @@ public class AdoptionDTO {
public String getUpdatedAt() {
return updatedAt;
}
}
}

View File

@@ -12,6 +12,8 @@ public class AppointmentDTO {
private String storeName;
private Long serviceId;
private String serviceName;
private Long employeeId;
private String employeeName;
private String appointmentDate;
private String appointmentTime;
private String appointmentStatus;
@@ -25,9 +27,16 @@ public class AppointmentDTO {
public AppointmentDTO(Long customerId, Long storeId, Long serviceId,
String appointmentDate, String appointmentTime,
String appointmentStatus, List<Long> petIds) {
this(customerId, storeId, serviceId, null, appointmentDate, appointmentTime, appointmentStatus, petIds);
}
public AppointmentDTO(Long customerId, Long storeId, Long serviceId, Long employeeId,
String appointmentDate, String appointmentTime,
String appointmentStatus, List<Long> petIds) {
this.customerId = customerId;
this.storeId = storeId;
this.serviceId = serviceId;
this.employeeId = employeeId;
this.appointmentDate = appointmentDate;
this.appointmentTime = appointmentTime;
this.appointmentStatus = appointmentStatus;
@@ -63,6 +72,14 @@ public class AppointmentDTO {
return serviceName;
}
public Long getEmployeeId() {
return employeeId;
}
public String getEmployeeName() {
return employeeName;
}
public String getAppointmentDate() {
return appointmentDate;
}