From 87ee7d283fef938b6e99beab7d67a611509db30d Mon Sep 17 00:00:00 2001 From: Jack <jack.su@pollex.com.tw> Date: 星期二, 28 十二月 2021 15:24:37 +0800 Subject: [PATCH] [BUG] 修正顧問資料修改地址失敗的問題 --- pamapi/src/main/java/com/pollex/pam/repository/AppointmentRepository.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/repository/AppointmentRepository.java b/pamapi/src/main/java/com/pollex/pam/repository/AppointmentRepository.java index 245fde3..a59dbb6 100644 --- a/pamapi/src/main/java/com/pollex/pam/repository/AppointmentRepository.java +++ b/pamapi/src/main/java/com/pollex/pam/repository/AppointmentRepository.java @@ -1,6 +1,7 @@ package com.pollex.pam.repository; import java.util.List; +import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @@ -12,4 +13,7 @@ List<Appointment> findByAgentNo(String agentNo); + List<Appointment> findByAgentNoAndCustomerId(String agentNo, Long customerId); + + Optional<Appointment> findTopByAgentNoAndCustomerIdOrderByAppointmentDateDesc(String agentNo, Long customerId); } -- Gitblit v1.8.0