package com.pollex.pam.repository; import java.util.List; import com.pollex.pam.domain.Appointment; import com.pollex.pam.enums.AppointmentStatusEnum; import com.pollex.pam.enums.ContactStatusEnum; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.pollex.pam.domain.AppointmentCustomerView; @Repository public interface AppointmentCustomerViewRepository extends JpaRepository{ List findByAgentNo(String agentNo); List findByAgentNoAndCustomerId(String agentNo, Long customerId); List findAllByCommunicateStatusAndStatus(ContactStatusEnum contactStatus, AppointmentStatusEnum status); }